Skip to main content
1-Visitor
December 31, 2013
Solved

Mathcad Prime 3.0 "IF" "Else If" help

  • December 31, 2013
  • 1 reply
  • 43790 views

See attached spreadsheet.

I am trying to set up a simple if-otherwise statement and I am running into some trouble.

1.) I am not sure if it even set up correctly

2.) I am getting an error reffering to scalar vs. matrix.

If Me< (or eqaul to) Myw use first equation. (0.92-.17*Me etc.)

If not, use the second one (1.92-1.17etc.)

Any help or input is greatly appreicatied.

Thank you,

jReck

Best answer by Werner_E

1.) I am not sure if it even set up correctly

No, you didn't.

2.) I am getting an error reffering to scalar vs. matrix.

Because you tried to multiply the first expression with an if-construct.

See attached.

31.12.png

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
December 31, 2013

1.) I am not sure if it even set up correctly

No, you didn't.

2.) I am getting an error reffering to scalar vs. matrix.

Because you tried to multiply the first expression with an if-construct.

See attached.

31.12.png

24-Ruby IV
December 31, 2013

Better use not the operator but the function if.

We can use in this case the free Mathcad Express!

IfFunc.png

Happy New Year!

1-Visitor
January 2, 2014

Thanks for the help guys!