I've been having difficulty creating a mathematical model of a pendulum in my code. While there is plenty of info on general equations describing a the motion of a pendulum, I seem to be having difficulty translating those into code, or more specifically cartesian coordinates. These difficulties no doubt stem from my poor math skills, thus, I am looking for help.
My initial thought before even researching the matter was to simply use two independent Sine Wave oscillators. I used a basic equation
y(t) = A*sin(ω*t+φ). I think that its probably worth mentioning here that while I understand what that equation does. I'm not 100% clear one why it behaves periodically. Of course have dealt with trigonometric ratios before, but I don't feel like I have a grasp on the actual concepts behind it. I don't fully appreciate all of its consequences I guess.
Anyways, I initially figured I could determine the x coordinate and the y coordinate using 2 separate sine wave oscillators, while having the period of the y oscillator be half of the value of the x oscillator. This however (possibly obvious to you...) resulted in something closely resembling lissajous curves.
Now I've been reading explanations on the movement of a pendulum, yet while reading I get lost at two points regardless of the source I am reading from.
First of all, everyone refers to a differential equation that I don't understand, probably due to never taking calculus. Here is a link to them all... http://hyperphysics.phy-astr.gsu.edu/hbase/pend.html#c3
And secondly, how can I derive two separate coordinates from one of these equations?