It runs fine and there are no syntax errors what-so-ever, but I'm not 100 percent sure the math is right.
Then whip out your calculator and test it.
Pick several cases form short to tall height and a single acceleration, calculate it old-school and see if your program agrees.
Then do the same for various accelerations holding the height constant.
Be sure to also test limits like height=0, acc=0, and the like.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944