MCPcopy Create free account
hub / github.com/bgrimstad/splinter / f1

Function f1

python/examples/bspline.py:21–22  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

19
20# Example with one variable
21def f1(x):
22 return -1. + 2*x + 0.1*(x**2) + 10*np.random.rand(1)[0]
23
24x = np.arange(0, 11, 1)
25y = np.zeros((len(x),))

Callers 1

bspline.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected