Re: [Tutor] Math Function and Python

2012-07-02 Thread Alan Gauld
On 02/07/12 05:21, Greg Nielsen wrote: models the acceleration of the object. Y is the acceleration and X is the current speed of the object. Y = -.01X^2 * 1.45X That's not the same as the formula you have implemented. it doesn't work. It's also in bold, so you can see it easily. if

Re: [Tutor] Math Function and Python

2012-07-01 Thread Steven D'Aprano
On Sun, Jul 01, 2012 at 11:21:11PM -0500, Greg Nielsen wrote: > Hello Tutor, > > I'm having some trouble with a mathematical function in my code. I am > attempting to create a realistic acceleration in an object, slower to speed > up at its min and max speeds and fastest in the middle. To kee

[Tutor] Math Function and Python

2012-07-01 Thread Greg Nielsen
Hello Tutor, I'm having some trouble with a mathematical function in my code. I am attempting to create a realistic acceleration in an object, slower to speed up at its min and max speeds and fastest in the middle. To keep the math simpl(er), I just wrote this function for a parabola, which m