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

Function dy_mid

differentiation.py:58–59  ·  view source on GitHub ↗
(h, y0, y2)

Source from the content-addressed store, hash-verified

56 raise ValueError("'x' and 'y' must have same size.")
57
58 def dy_mid(h, y0, y2):
59 return (1 / (2 * h)) * (y2 - y0)
60
61 def dy_end(h, y0, y1, y2):
62 return (1 / (2 * h)) * (-3 * y0 + 4 * y1 - y2)

Callers 2

three_pointFunction · 0.85
five_pointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected