Skip to main content
GameDev.net gamedev.net
🔒 Locked

Integration

Started by Theriomorph Mar 31, 2004 at 6:38 AM 10 replies 800+ views
Original Post
Theriomorph
Theriomorph
I don''t remember some of the terms from calculus but i''ve been reading alot of things mentioning integration lately (i''ve been looking into springs) and I was wondering if this is the same thing or is it something different? ie. 3x^2 integrated becomes x^3 (if thats the right one )
Nervo
Nervo
yes thats correct. To be more precise its really x3 + C where c is a constant. c can also be zero, making it just plain x cubed.
Well, R2D22U2..
Theriomorph
Theriomorph
I remember losing marks for forgetting that on more than one occasion

So whats the difference between Euler Integration and some others (Sorry, I can't remember their names...)?

[edited by - Theriomorph on March 31, 2004 7:53:54 AM]
oliii
oliii
there are lots of things that depends on the method for integration. Stability, accuracy, timesteps size and variability, aliasing effects, simplicity, conservation of enery, convergence, ect...

popular examples : euler, RK4, verlet, leapfrog, combinations of them, and many more... I remember reading a pretty thourough comparision (pros and cons) of the different integration algorithm in the Game Physics book br D.Eberly, there were about 6 or 7 of them.

I''m not a maths specialist, but they are more of less derived from a taylor expansion series, to different degrees. Verlet, for example uses positions and accelerations to calculate the next position. The velocity is ''implicit'', it''s derived from the integration, not used in the integration itself to calculate the next position. It''s apparently good at conserving kinetic energy, and is apparently used in molecular dynamics a lot. However, Verlet is not very good with variable timesteps (from my experience).
Everything is better with Metal.
Promit
Promit
quote:
Original post by Theriomorph
I remember losing marks for forgetting that on more than one occasion



If you''re doing physics work instead of pure math, you simply cheat by integrating from 0 to x
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
oliii
oliii
there are lots of things that depends on the method for integration. Stability, accuracy, timesteps size and variability, aliasing effects, simplicity, conservation of enery, convergence, ect...

popular examples : euler, RK4, verlet, leapfrog, combinations of them, and many more... I remember reading a pretty thourough comparision (pros and cons) of the different integration algorithm in the Game Physics book br D.Eberly, there were about 6 or 7 of them.

I''m not a maths specialist, but they are more of less derived from a taylor expansion series, to different degrees. Verlet, for example uses positions and accelerations to calculate the next position. The velocity is ''implicit'', it''s derived from the integration, not used in the integration itself to calculate the next position. It''s apparently good at conserving kinetic energy, and is apparently used in molecular dynamics a lot. However, Verlet is not very good with variable timesteps (from my experience).
Everything is better with Metal.
Agony
Agony
Integration Methods usually refers to methods of approximating integrals that have no closed solution. Obviously, if you want to calculate the integral of 3x^2, you just calculate x^3. However, many integrals can''t be solved precisely like that, so approximations are needed.
"We should have a great fewer disputes in the world if words were taken for what they are, the signs of our ideas nly, and not for things themselves." - John Locke o
Doc
Doc
quote:
Original post by Agony
[However, many integrals can''t be solved precisely like that, so approximations are needed.


e^(-(x^2))
O_o
O_o
You can integrate anything you just can''t always get a closed form solution =p
Pragma
Pragma
Actually, you can''t integrate *anything*. A very interesting result from measure theory says that there are some functions which are not even Lebesgue measurable. This means you cannot assign any value to their integrals without resulting in a contradiction.
/Total Math Dork

"Math is hard" -Barbie
"Math is hard" -Barbie

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.