Hi guys,
Having a bit of an issue with one of my inputs on mathematica, i have two equations of motion for a complex system and trying to get a solution out of it. Keep getting the error message: NDSolve::ndnum: Encountered non-numerical value for a derivative at t == 0.`.
But, as far as i’m concerned I have assigned a value to all my variables except the two i’m solving for.
My input is below:
eq1 := ?''[t] - A w^2 l Cos[?[t]] Sin[w t] -
l g Sin[?[t]] + (l ?'[t]^2 Sin[?[t] - ?[t]] + l ?''[t] Cos[?[t] - ?[t]])/? == 0
eq2 := ?''[t] - (g Sin[?[t]] + A w^2 Cos[?[t]] Sin[w t] +
l ?'[t] Sin[?[t] - ?[t]] - l ?''[t] Cos[?[t] - ?[t]])/L == 0
With[{g = 9.81, ? = 20, l = 1, L = 1, A = 1, w = 50},
sol = NDSolve[{eq1, eq2, ?'[0.1] == 5, ?'[0.1] == 1, ?[0] == 0, ?[0] == 0}, {?[t], ?[t]}, {t, 10}]]
NDSolve::ndnum: Encountered non-numerical value for a derivative at t == 0.`.
Thanks.