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

Function test_froomroots

numpy/polynomial/tests/test_symbol.py:203–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202
203def test_froomroots():
204 roots = [-2, 2]
205 p = poly.Polynomial.fromroots(roots, symbol='z')
206 assert_equal(p.symbol, 'z')
207
208
209def test_identity():

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
fromrootsMethod · 0.80

Tested by

no test coverage detected