Baskakov operator: Difference between revisions
en>Helpful Pixie Bot m ISBNs (Build KG) |
en>Mdd m + Link(s) |
||
Line 1: | Line 1: | ||
In [[mathematics]] '''leapfrog integration''' is a simple method for numerically integrating [[differential equation]]s of the form | |||
:<math>\ddot x=F(x)</math>, | |||
or equivalently of the form | |||
:<math>\dot v=F(x),\;\dot x \equiv v</math>, | |||
particularly in the case of a [[dynamical system]] of [[classical mechanics]]. Such problems often take the form | |||
:<math>\ddot x=-\nabla V(x)</math>, | |||
with energy function | |||
:<math>E(x,v)=\tfrac12|v|^2+V(x)</math>, | |||
where ''V'' is the [[potential energy]] of the system. The method is known by different names in different disciplines. In particular, it is similar to the '''Velocity Verlet''' method, which is a variant of [[Verlet integration]]. Leapfrog integration is equivalent to updating positions <math>x(t)</math> and velocities <math>v(t)=\dot x(t)</math> at interleaved time points, staggered in such a way that they 'leapfrog' over each other. For example, the position is updated at integer time steps and the velocity is updated at integer-plus-a-half time steps. | |||
Leapfrog integration is a second order method, in contrast to [[Euler integration]], which is only first order, yet requires the same number of function evaluations per step. Unlike Euler integration, it is stable for oscillatory motion, as long as the time-step <math>\Delta t</math> is constant, and <math>\Delta t \leq 2/\omega</math>.<ref>[C. K. Birdsall and A. B. Langdon, Plasma Physics via Computer Simulations, McGraw-Hill Book Company, 1985, p. 56]</ref> | |||
In leapfrog integration, the equations for updating position and velocity are | |||
:<math>\begin{align} | |||
x_i &= x_{i-1} + v_{i-1/2}\, \Delta t , \\[0.4em] | |||
a_i &= F(x_i) \\[0.4em] | |||
v_{i+1/2} &= v_{i-1/2} + a_{i}\, \Delta t , | |||
\end{align}</math> | |||
where <math>x_i</math> is position at step <math>i</math>, <math>v_{i+1/2\,}</math> is the velocity, or first derivative of <math>x</math>, at step <math>i+1/2\,</math>, <math>a_{i}=F(x_i)</math> is the acceleration, or second derivative of <math>x</math>, at step <math>i</math> and <math>\Delta t</math> is the size of each time step. These equations can be expressed in a form which gives velocity at integer steps as well.<ref>[http://www.artcompsci.org/vol_1/v1_web/node34.html 4.1 Two Ways to Write the Leapfrog]</ref> However, even in this synchronized form, the time-step <math>\Delta t</math> must be constant to maintain stability.<ref>[Skeel, R. D., "Variable Step Size Destabilizes the Stömer/Leapfrog/Verlet Method," BIT Numerical Mathematics, Vol. 33, 1993, pp. 172-175.]</ref> | |||
:<math>\begin{align} | |||
x_{i+1} &= x_i + v_i\, \Delta t + \tfrac{1}{2}\,a_i\, \Delta t^{\,2} , \\[0.4em] | |||
v_{i+1} &= v_i + \tfrac{1}{2}\,(a_i + a_{i+1})\,\Delta t . | |||
\end{align}</math> | |||
One use of this equation is in gravity simulations, since in that case the acceleration depends only on the positions of the gravitating masses, although higher order integrators (such as [[Runge–Kutta methods]]) are more frequently used. | |||
There are two primary strengths to Leapfrog integration when applied to mechanics problems. The first is the [[time-reversibility]] of the Leapfrog method. One can integrate forward ''n'' steps, and then reverse the direction of integration and integrate backwards ''n'' steps to arrive at the same starting position. The second strength of Leapfrog integration is its [[Symplectic integrator|symplectic]] nature, which implies that it conserves the (slightly modified) energy of dynamical systems. This is especially useful when computing orbital dynamics, as many other integration schemes, such as the (order 4) Runge-Kutta method, do not conserve energy and allow the system to drift substantially over time. | |||
Because of its time-reversibility, and because it is a [[symplectic integrator]], leapfrog integration is also used in [[Hybrid Monte Carlo|Hamiltonian Monte Carlo]], a method for drawing random samples from a probability distribution whose overall normalization is unknown.<ref>{{cite book | last=Bishop | first=Christopher | title=Pattern Recognition and Machine Learning | year=2006 | publisher=[[Springer-Verlag]] | location=New York | isbn=978-0-387-31073-2 | pages=548–554}}</ref> | |||
==See also== | |||
*[[Numerical ordinary differential equations]] | |||
*[[Symplectic integrator|Symplectic integration]] | |||
*[[Euler integration]] | |||
*[[Verlet integration]] | |||
*[[Runge–Kutta methods|Runge–Kutta integration]] | |||
==References== | |||
{{Reflist}} | |||
==External links== | |||
*[http://einstein.drexel.edu/courses/Comp_Phys/Integrators/leapfrog/ The Leapfrog Integrator], Drexel University Physics | |||
{{Numerical integrators}} | |||
[[Category:Numerical differential equations]] |
Revision as of 00:31, 10 September 2013
In mathematics leapfrog integration is a simple method for numerically integrating differential equations of the form
or equivalently of the form
particularly in the case of a dynamical system of classical mechanics. Such problems often take the form
with energy function
where V is the potential energy of the system. The method is known by different names in different disciplines. In particular, it is similar to the Velocity Verlet method, which is a variant of Verlet integration. Leapfrog integration is equivalent to updating positions and velocities at interleaved time points, staggered in such a way that they 'leapfrog' over each other. For example, the position is updated at integer time steps and the velocity is updated at integer-plus-a-half time steps.
Leapfrog integration is a second order method, in contrast to Euler integration, which is only first order, yet requires the same number of function evaluations per step. Unlike Euler integration, it is stable for oscillatory motion, as long as the time-step is constant, and .[1]
In leapfrog integration, the equations for updating position and velocity are
where is position at step , is the velocity, or first derivative of , at step , is the acceleration, or second derivative of , at step and is the size of each time step. These equations can be expressed in a form which gives velocity at integer steps as well.[2] However, even in this synchronized form, the time-step must be constant to maintain stability.[3]
One use of this equation is in gravity simulations, since in that case the acceleration depends only on the positions of the gravitating masses, although higher order integrators (such as Runge–Kutta methods) are more frequently used.
There are two primary strengths to Leapfrog integration when applied to mechanics problems. The first is the time-reversibility of the Leapfrog method. One can integrate forward n steps, and then reverse the direction of integration and integrate backwards n steps to arrive at the same starting position. The second strength of Leapfrog integration is its symplectic nature, which implies that it conserves the (slightly modified) energy of dynamical systems. This is especially useful when computing orbital dynamics, as many other integration schemes, such as the (order 4) Runge-Kutta method, do not conserve energy and allow the system to drift substantially over time.
Because of its time-reversibility, and because it is a symplectic integrator, leapfrog integration is also used in Hamiltonian Monte Carlo, a method for drawing random samples from a probability distribution whose overall normalization is unknown.[4]
See also
- Numerical ordinary differential equations
- Symplectic integration
- Euler integration
- Verlet integration
- Runge–Kutta integration
References
43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.
External links
- The Leapfrog Integrator, Drexel University Physics
Template:Numerical integrators
- ↑ [C. K. Birdsall and A. B. Langdon, Plasma Physics via Computer Simulations, McGraw-Hill Book Company, 1985, p. 56]
- ↑ 4.1 Two Ways to Write the Leapfrog
- ↑ [Skeel, R. D., "Variable Step Size Destabilizes the Stömer/Leapfrog/Verlet Method," BIT Numerical Mathematics, Vol. 33, 1993, pp. 172-175.]
- ↑ 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.
My blog: http://www.primaboinca.com/view_profile.php?userid=5889534