A function to help estimate the point-set solution to an ordinary differential equation.
Because this was easier than doing the WebWork problem by hand.
You can change the inputs in help.js
to specify your own DE, initial values, step size, and explicit solution. Once you've set these inputs, run node help.js
and your data will be printed to the console.
The approximation function can be used by itself by importing index.js
.
Beware of floating point issues. The default settings in help.js
demonstrate a floating point error in the x
value.
MIT