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

Function test_fit

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
fitMethod · 0.80

Tested by

no test coverage detected