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

Method test_integ_coeffs

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

Source from the content-addressed store, hash-verified

230 assert_((p2.coeffs == [6j, 2j]).all())
231
232 def test_integ_coeffs(self):
233 p = np.poly1d([3, 2, 1])
234 p2 = p.integ(3, k=[9, 7, 6])
235 assert_(
236 (p2.coeffs == [1/4./5., 1/3./4., 1/2./3., 9/1./2., 7, 6]).all())
237
238 def test_zero_dims(self):
239 try:

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
integMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected