MCPcopy Create free account
hub / github.com/numpy/numpy / test_complex

Method test_complex

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

Source from the content-addressed store, hash-verified

223 [1, Decimal(-3), Decimal(2)])
224
225 def test_complex(self):
226 p = np.poly1d([3j, 2j, 1j])
227 p2 = p.integ()
228 assert_((p2.coeffs == [1j, 1j, 1j, 0]).all())
229 p2 = p.deriv()
230 assert_((p2.coeffs == [6j, 2j]).all())
231
232 def test_integ_coeffs(self):
233 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