Skip to main content
Best answer by AlanStevens

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

3 replies

1-Visitor
August 3, 2012

There is typo in the equation in the previous file but still have "this value must be an array" message

19-Tanzanite
August 3, 2012

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

1-Visitor
August 3, 2012

Thanks Alan. Now the model works :-).

Krisnandito