MCPcopy Index your code
hub / github.com/numpy/numpy / test_complex

Method test_complex

numpy/lib/tests/test_polynomial.py:255–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

253 [1, Decimal(-3), Decimal(2)])
254
255 def test_complex(self):
256 p = np.poly1d([3j, 2j, 1j])
257 p2 = p.integ()
258 assert_((p2.coeffs == [1j, 1j, 1j, 0]).all())
259 p2 = p.deriv()
260 assert_((p2.coeffs == [6j, 2j]).all())
261
262 def test_integ_coeffs(self):
263 p = np.poly1d([3, 2, 1])

Callers

nothing calls this directly

Calls 4

assert_Function · 0.90
integMethod · 0.45
allMethod · 0.45
derivMethod · 0.45

Tested by

no test coverage detected