I'm trying to write a program to model a simple pendulum, and I'm having some trouble seeing how I would solve for the position w.r.t. time. I would ultimately like to be able to specify a length of string, acceleration due to gravity, mass (though I know it has no effect on the period) and angle it's pulled back. Any help would be great, thanks! PS: I don't think this qualifies as homework because I'm doing it for fun, but I'm very sorry if I'm wrong!