I know very little about maths and physics but I need a formula for a car accelerating.
This is going to be used in a very basic program that I am writing.
These are the variables that will have to be in the forumla.
-Car weight
-Distance
-Time
-Speed
A random number between 14-15 (for example) will be generated by my program, then set as "t".
The car weight will be "w", distance "d" and speed as "s"
The formula should calculate the current speed as it starts from 0, then accelerates at an even pace to drive straight while driving "d" and finishes at the exact time specified by "t".
As I said, I no very very little about this area so I'm not even 100% sure what I'm actually trying to do. Please bare with me.
Cheers
-OBCT
Start Free Trial