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

Method test_integ_coeffs

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

Source from the content-addressed store, hash-verified

260 assert_((p2.coeffs == [6j, 2j]).all())
261
262 def test_integ_coeffs(self):
263 p = np.poly1d([3, 2, 1])
264 p2 = p.integ(3, k=[9, 7, 6])
265 expected = [1 / 4 / 5, 1 / 3 / 4, 1 / 2 / 3, 9 / 1 / 2, 7, 6]
266 assert_((p2.coeffs == expected).all())
267
268 def test_zero_dims(self):
269 try:

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
integMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected