Side benefit from Runge-Kutta methods for ODE
|
09-26-2018, 10:45 PM
Post: #4
|
|||
|
|||
RE: Side benefit from Runge-Kutta methods for ODE
.
Hi, Namir: (09-23-2018 07:27 AM)Namir Wrote: [...] you can obtain methods for numerical integration. Sure you do. Quote:The 4th order Runge-Kutta method, in this case, becomes Simpson's rule. Simpson's rule is a 3rd-order method, i.e.: it gives exact results for polynomials up to the 3rd degree. Quote:The interesting windfall here is using the various variants of Runge-Kutta as additional methods for numerical integration. These variant methods are basically a "free bonus" method for numerical integration, which you can explore and use in performing numerical integration. You can but you'd be ill-advised to do that because using Runge-Kutta methods to perform numerical integration of some f(x) is very inefficient, that's why no one uses them for that purpose and that's why no book on numerical analysis would recommend them or even mention the possibility. Why the inefficiency ? Well, taking as an example the 4th order Runge Kutta method you mention, it performs 4 evaluations of f(x) per step, and (being exactly equivalent to Simpson's rule) it's exact for polynomials only up to degree 3. On the other hand, using Gaussian integration, as in this small program here in the General Library: Gaussian integration will perform just 3 evaluations of f(x) and yet it's exact for polynomials up to degree 5, so you get much greater accuracy (5th order vs. 3rd order) while performing 25% less evaluations of f(x) (3 vs. 4), i.e.; also running faster. If in doubt, try the two examples in the linked article with a 4th-order RK implementation and see what precision you do get for 1 subinterval (1 step in RK). The same considerations apply to other RK methods. That's why using Runge-Kutta methods for integration is just wasting time and getting an inferior result. They simply weren't designed and aren't suited for that, there are much, much better and well known methods available, such as the aforementioned Gaussian integration and many others. Regards. V. . All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Side benefit from Runge-Kutta methods for ODE - Namir - 09-23-2018, 07:27 AM
RE: Side benefit from Runge-Kutta methods for ODE - ttw - 09-24-2018, 06:54 AM
RE: Side benefit from Runge-Kutta methods for ODE - Namir - 09-26-2018, 04:43 PM
RE: Side benefit from Runge-Kutta methods for ODE - Valentin Albillo - 09-26-2018 10:45 PM
RE: Side benefit from Runge-Kutta methods for ODE - Thomas Klemm - 09-27-2018, 02:11 AM
RE: Side benefit from Runge-Kutta methods for ODE - Namir - 09-27-2018, 09:03 AM
RE: Side benefit from Runge-Kutta methods for ODE - Namir - 09-27-2018, 10:03 PM
|
User(s) browsing this thread: 2 Guest(s)