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

Function dy_difference

differentiation.py:24–25  ·  view source on GitHub ↗
(h, y0, y1)

Source from the content-addressed store, hash-verified

22 raise ValueError("'x' and 'y' must have same size.")
23
24 def dy_difference(h, y0, y1):
25 return (y1 - y0) / h
26
27 n = x.size
28 dy = np.zeros(n)

Callers 1

backward_differenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected