POV-Ray : Newsgroups : povray.binaries.images : Euler vs Runge-Kutta4 - euler_vs_rungekutta4.jpg [1/1] : Euler vs Runge-Kutta4 - euler_vs_rungekutta4.jpg [1/1] Server Time
14 Nov 2024 10:17:20 EST (-0500)
  Euler vs Runge-Kutta4 - euler_vs_rungekutta4.jpg [1/1]  
From: Lutz-Peter Hooge
Date: 1 Mar 2004 22:26:26
Message: <4043fee2@news.povray.org>
Just a demonstration for euler vs runge-kutta integration (see thread
"But *how* to do the constant energy solution for particle physics?"
in povray.general).

This shows some orbits for one particle at a time (no interaction
between them). The blue orbits are calculated by 4th order Runge-Kutta,
while the red ones are calculated with Euler.
The time steps for euler are 4 times smaller to make the comparison fair,
since RK4 needs about 3 times more computations per time step.

Lutz-Peter


Post a reply to this message


Attachments:
Download 'euler_vs_rungekutta4.jpg' (34 KB)

Preview of image 'euler_vs_rungekutta4.jpg'
euler_vs_rungekutta4.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.