there. I am trying to solve a seccond order equation, with 1 boundary condition at the start of the range and another at the end of the range. I've attempted to reduce my problem so that it is non-trivial but still retains the error. Consider the following code:
NDSolve[{M''[x] == -(M[x]/(-x - (M[0])^2)), M'[0] == -(1/M[0]) 0.5 ,
M[1] == 1}, M, {x, 0, 1},
Method -> {"Shooting", "StartingInitialConditions" -> {M[0] == 0.1}}]
There is the correct number of boundary conditions present and the initial guess does not seem like it should cause an infinities. As far as I can see all of the variables match. I did chop away part of this equation so its possible there is no solution but I suspect if that were the case it would give a different error. The current error this gives me is NDSolve::litarg
:
I am able to remove this error by replacing M[0]
that appears inside of the differential equation definition with a scalar value, e.g 3
. However, I don't think I can remove this term. Any suggestions would be welcome.