MCPcopy Index your code
hub / github.com/cfgnunes/numerical-methods-python / df

Function df

main.py:228–229  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

226 return 2 * x ** 3 - math.cos(x + 1) - 3
227
228 def df(x):
229 return 12 * x ** 2 + 1 - math.sin(x)
230
231 x0 = 1.0
232 toler = 0.01

Callers 1

newtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected