Sunday, December 5, 2010

Piecewise ODE FTMFW

Believe it or not I am pretty excited about that plot - it is the solution to a piecewise ODE function.
if y <= 10
   yprime = 1
else
   yprime = 2
end
Implication is that I can supply a discontinuous function for my acceleration and braking simulations - for example, an actual bike engine torque curve and gearing.

Of course in college they have you dick around finding closed-form, analytical solutions to differential equations. That's of limited or no value here! Still wish they'd have a course - "MCEN3010 - How to actually use this shit for real world problems."

Might try the torque curve bit later today depending on my mood - which will be predicated on if the Giants beat the Redskins, and how many beers I have.

No comments: