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

Function dy_end

differentiation.py:61–62  ·  view source on GitHub ↗
(h, y0, y1, y2)

Source from the content-addressed store, hash-verified

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)
63
64 hx = x[1] - x[0]
65 n = x.size

Callers 2

three_pointFunction · 0.85
five_pointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected