Thanks for pointing those out. I’ll try and amend – yeah, it’s to do with WordPress cutting out angle brackets and certain other symbols that conflict with HTML. It’s a real PITA when trying to cut and paste code into the blog!

]]>There are a couple of errors in the your final example – might be to do with cutting and pasting into your blog.

Final example contains the lines:

else if (v Acceleration )

and

if (v 0 && previous_velocity Acceleration )

and

if ( Math.Abs(v) 0) ? MinVelocity : 0 – MinVelocity;