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

Method test_poly1d_resolution

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

Source from the content-addressed store, hash-verified

35 '-3 x - 2 x - 1')
36
37 def test_poly1d_resolution(self):
38 p = np.poly1d([1., 2, 3])
39 q = np.poly1d([3., 2, 1])
40 assert_equal(p(0), 3.0)
41 assert_equal(p(5), 38.0)
42 assert_equal(q(0), 1.0)
43 assert_equal(q(5), 86.0)
44
45 def test_poly1d_math(self):
46 # here we use some simple coeffs to make calculations easier

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
pFunction · 0.85

Tested by

no test coverage detected