Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
197
def
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
203
def
test_froomroots():
Callers
nothing calls this directly
Calls
2
assert_equal
Function · 0.90
fit
Method · 0.80
Tested by
no test coverage detected