Skip to main content
1-Visitor
July 13, 2020
Solved

odesolve problem

  • July 13, 2020
  • 2 replies
  • 1765 views

Hi all!

 

I am thinking on a problem for work and I am trying to solve this ODE with odesolver. I am new to Mathcad and have been at it for several hours and cannot figure out what I'm doing wrong. Odesolve gives me this error:

 

"The number of rows returned from the function arguments does not match the number of equations to be solved"

 

If anyone could lend me a hand I would be eternally grateful.

 

Thank you!

Best answer by LucMeekes

If you want to collect an expression into brackets you should NEVER type square brackets "[ ]", but ONLY round brackets "( )".

When you type square brackets, Prime creates an array or matrix..

I'm sure your error occurs due to this.

 

So go in and change the square brackets to round ones. Depending on the nesting of brackets, Prime may show some of them as square brackets, but, as said, you should never type them.

 

Success!
Luc

 

2 replies

LucMeekes23-Emerald IVAnswer
23-Emerald IV
July 13, 2020

If you want to collect an expression into brackets you should NEVER type square brackets "[ ]", but ONLY round brackets "( )".

When you type square brackets, Prime creates an array or matrix..

I'm sure your error occurs due to this.

 

So go in and change the square brackets to round ones. Depending on the nesting of brackets, Prime may show some of them as square brackets, but, as said, you should never type them.

 

Success!
Luc

 

strvalik1-VisitorAuthor
1-Visitor
July 14, 2020

Perfect! Thank you Luc you saved me many hours of headache

25-Diamond I
July 13, 2020

Luc is perfectly right with his assumption.

The square bracket you typed isn't necessary at all (as is the parenthesis around the whole nominator).

Werner_E_1-1594676155310.png