brandondube / dygdug

1 stars 5 forks source link

Central Differences Jacobian #10

Open brandondube opened 2 years ago

brandondube commented 2 years ago

As-is, dygdug just has the forward difference method of calculating a derivative,

dydx = (f(x0 + Delta) - f(x0)) / Delta

We should also implement the central differences

dydx = (f(x0 + Delta) -  (fx0 - Delta) / (2*Delta)