It looks to me like you have previously defined b to be something else. Try clearing the variables a, b, t before defining the function.
The main clue that this is happening is they the error message uses sin (with lower case ‘s’) so it looks like b was defined as
(sin’[a[t]] a’[t]) and that is substituted into your function definition. Since this is right next to [a_, t_], Mathematica is trying to do an implicit multiplication.
I can enter your function without error on my system (MMa 10.1, OS X) in a fresh notebook.
Dear Henrik
most recently i encountered with another problem in mathematica NDSolve
i had defined some equations “lagrangeo1” ,“lagrangei1”, and “lagrangei2” that are differential equations. but when started to solve:
NDSolve::ndsdtc: The time constraint of 1.` seconds was exceeded trying to solve for derivatives, so the system will be treated as a system of differential-algebraic equations. You can use Method->{“EquationSimplification”->“Solve”} to have the system solved as ordinary differential equations. >>
NDSolve::njnum: The Jacobian is not a matrix of numbers at …
…
General::stop: Further output of NDSolve::njnum will be suppressed during this calculation. >>
NDSolve::icfail: Unable to find initial conditions that satisfy the residual function within specified tolerances. Try giving initial conditions for both values and derivatives of the functions. >>
Dear George
most recently i encountered with another problem in mathematica NDSolve
i had defined some equations “lagrangeo1” ,“lagrangei1”, and “lagrangei2” that are differential equations. but when started to solve:
NDSolve::ndsdtc: The time constraint of 1.` seconds was exceeded trying to solve for derivatives, so the system will be treated as a system of differential-algebraic equations. You can use Method->{“EquationSimplification”->“Solve”} to have the system solved as ordinary differential equations. >>
NDSolve::njnum: The Jacobian is not a matrix of numbers at …
…
General::stop: Further output of NDSolve::njnum will be suppressed during this calculation. >>
NDSolve::icfail: Unable to find initial conditions that satisfy the residual function within specified tolerances. Try giving initial conditions for both values and derivatives of the functions. >>
Dears
most recently i encountered with another problem in mathematica NDSolve
i had defined some equations “lagrangeo1” ,“lagrangei1”, and “lagrangei2” that are differential equations. but when started to solve:
NDSolve::ndsdtc: The time constraint of 1.` seconds was exceeded trying to solve for derivatives, so the system will be treated as a system of differential-algebraic equations. You can use Method->{“EquationSimplification”->“Solve”} to have the system solved as ordinary differential equations. >>
NDSolve::njnum: The Jacobian is not a matrix of numbers at …
…
General::stop: Further output of NDSolve::njnum will be suppressed during this calculation. >>
NDSolve::icfail: Unable to find initial conditions that satisfy the residual function within specified tolerances. Try giving initial conditions for both values and derivatives of the functions. >>