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

Function test_fit

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

Source from the content-addressed store, hash-verified

196
197
198def test_fit():
199 x, y = (range(10),) * 2
200 p = poly.Polynomial.fit(x, y, deg=1, symbol='z')
201 assert_equal(p.symbol, 'z')
202
203
204def test_froomroots():

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
fitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…