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

Function test_basis

numpy/polynomial/tests/test_classes.py:105–111  ·  view source on GitHub ↗
(Poly)

Source from the content-addressed store, hash-verified

103
104
105def test_basis(Poly):
106 d = Poly.domain + random((2,))*.25
107 w = Poly.window + random((2,))*.25
108 p = Poly.basis(5, domain=d, window=w)
109 assert_equal(p.domain, d)
110 assert_equal(p.window, w)
111 assert_equal(p.coef, [0]*5 + [1])
112
113
114def test_fromroots(Poly):

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
basisMethod · 0.80

Tested by

no test coverage detected