[关闭]
@samuelstark 2016-04-19T13:38:57.000000Z 字数 655 阅读 712

HOMEWORK8


1.Abstract

This program computes general form for the equation of motion of harmonic motion with Eular-Cromer method.

2.equation and algorithm

For simple harmonic motion, the general form of the equation of motion is


with . If we modify the parameter , we can get different result.
We use the Eular-Cromer method to find the numerical solution of the equation.



This is the complete code

3.result

I choose , time interval , and , then I draw the two curves in the same coordinate system.

With the parameter increasing, the curve becomes zigzag gradually.And must be integer and odd, unless the method is invalid.

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注