sloisel / numeric

Numerical analysis in Javascript
http://www.numericjs.com/
Other
1.42k stars 176 forks source link

Reevaluate dopri for different events #68

Open tomlarkworthy opened 8 years ago

tomlarkworthy commented 8 years ago

I am trying to bin an intergration. So I have some complicated function that needs to be calulated effeciently. I run dopri on it to some big t. Now I need to slice it according to bins in small delta x. So that would be lots of tiny steps (small t). It seems ineffecient making thousands of tiny dopri stopping criterion. Rather, I would like to use the existing big solution to step from a point, to another based on a criteria. Something like sol.step(<start t>, <criteria>) => [t, x]. Can I do this already? Am I too dense to figure it out?