Jump to content
  • Advertisement
Sign in to follow this  
_Madman_

Numerical methods - derivatives/differentials

This topic is 5037 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been googlin 2nd day allready, but I can't find even algo for those methods, I'm searchin for Euler-Koshi and Runge-Kutt algos... No luck yet... Anyone knows good online res?

Share this post


Link to post
Share on other sites
Advertisement
A simple way to do it is this: so you have some function, y=f(x), and you want the derivative at x=x0. f'(x0) ~= ( f(x0+d) - f(x0-d) ) / (2 * d). Set d to some suitably small value, depending on the 'size' of your equation.

Share this post


Link to post
Share on other sites
But I need to implement exactly these 2 algos, But I dont know how they work, only name. I have derivative functions implemented other ways...

Share this post


Link to post
Share on other sites
well, on the Numerical Recipies site there is a set of nice docs:

link

look for:
16.1 Runge-Kutta Method

and a search for "euler cauchy" will return more results than "Euler-Koshi"
[8^)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!