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

Method test_roots

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

Source from the content-addressed store, hash-verified

119 assert_(np.isrealobj(np.poly(np.concatenate((a, np.conjugate(a))))))
120
121 def test_roots(self):
122 assert_array_equal(np.roots([1, 0, 0]), [0, 0])
123
124 def test_str_leading_zeros(self):
125 p = np.poly1d([4, 3, 2, 1])

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
rootsMethod · 0.45

Tested by

no test coverage detected