3 ms·
Where would you put the accumulated error? Ultimately you end up creating something like the 4th order Runge-Kutta mentioned mentioned above, which in a sense '
by amk_ 11y ago
Where would you put the accumulated error? Ultimately you end up creating something like the 4th order Runge-Kutta mentioned mentioned above, which in a sense 'correct' the Euler solution by including the effects of higher-order terms.
https://en.wikipedia.org/wiki/Numerical_methods_for_ordinary_differential_equations#Generalizations https://en.wikipedia.org/wiki/Numerical_methods_for_ordinary...
- drdeca 11y agoI was thinking that, instead of ensuring that the corrections are in the right direction, that they just be as small as possible such that the total energy remains constant. So, I was thinking that it would make the results worse in some ways, but keep the total energy constant by just constraining the total energy, and using that to e.g. change the angle or rate of rotation of one of the two parts. So, e.g., calculating the values as this does, and then from the initial energy, and all the values except for the rate of rotation of the lower part, calculate the rate of rotation for the lower part (if multiple values for the rate of rotation would give the same KE , choose the one which is closest to the the one calculated at first). It wouldn't really be 'correct' in the differential equations thing, it would just be forcing the total energy to be correct? So, I figure it would make it so it doesn't eventually slow down, but might make the other bits be quite inaccurate?