Jump to content
• Advertisement

# sine test

This topic is 4214 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

what is the easiest way to set up a sine test for my integration methods? im usure where to attatch the sine function to and what to actually input as the sine value? lets say for using basic euler integration where v' = v + a; and x' = x + v'; should a = sin(time)? i just seem to get bland results that do not look correct!

#### Share this post

##### Share on other sites
Advertisement
That looks right except perhaps the equations should be:
    v' = v + a * time;    x' = x + v' * time;
Also, keep in mind that Euler is not particularly accurate. Try smaller time steps.

#### Share this post

##### Share on other sites
yeah i am trying to demonstrate eulers inaccuracies compared with mine.

whne you say a+time do you mean the change in time (delta time)?

#### Share this post

##### Share on other sites
Quote:
 Original post by andy_s_1whne you say a+time do you mean the change in time (delta time)?

Yes, sorry. I misread your post. time is delta time.

#### Share this post

##### Share on other sites

• Advertisement
• Advertisement

• ### Popular Contributors

1. 1
2. 2
Rutin
20
3. 3
4. 4
frob
15
5. 5
• Advertisement

• 10
• 9
• 14
• 9
• 33
• ### Forum Statistics

• Total Topics
632592
• Total Posts
3007295

×

## 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!