The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Hi,again I am trying to solve differential equations with ODE solver. In defining the solver, there is always a message " the value must be an array".
Thanks
Krisnandito
Solved! Go to Solution.
You have a double vector on the LHS of odesolve. Mathcad thinks this is a vector with a single element (which just happens to be a vector). Replace this with a single vector.
However, you then get the same problem you had previously! Are you sure your test for negatives is the right way around this time? Certainly, if you reverse its logic the ODE works.
Alan
There is typo in the equation in the previous file but still have "this value must be an array" message
You have a double vector on the LHS of odesolve. Mathcad thinks this is a vector with a single element (which just happens to be a vector). Replace this with a single vector.
However, you then get the same problem you had previously! Are you sure your test for negatives is the right way around this time? Certainly, if you reverse its logic the ODE works.
Alan
Thanks Alan. Now the model works :-).
Krisnandito