cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Flood calculation - this value must be an array

ptc-4501676
1-Visitor

Flood calculation - this value must be an array

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3

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

Announcements

Top Tags