So basically I have a system of linear equations for springs im trying to solve. stiffSpr is nonlinear and linSpr is linear. But it keeps telling me that its expecting an equation and not true. I can't figure out why.
stiffSpr[k_, a_, x0_] := {x''[t] + k*x[t] + b*Abs[x'[t]]*x'[t] == 0, x[0] == x0, x'[0] == 0}
linSpr[k_, b_, x0_] := {x''[t] + k*x[t] + b*x'[t] == 0, x[0] == x0, x'[0] == 0}
A1 = NDSolve[stiffSpr[2.7, 1.1, 2], x[t], {t, 0, 10}]
B1 = DSolve[linSpr[2.7, 1.1, 2], x[t], t]
b=3;or some other constant before yourstiffSprdefinition will make the error message go away. – Bill Nov 07 '18 at 05:43a_instiffSprshould beb_; 2. One or more variables isn't cleared,Clear[x, Derivative]should resolve the problem, for more information check this post: https://mathematica.stackexchange.com/q/46214/1871 – xzczd Dec 07 '18 at 17:09