What is the error with the syntax in the attached program? I am attempting to define multiple values of a vector depending on the previously assigned variables. I am expecting the vector to have two rows but only one results.
Solved! Go to Solution.
Daniel Sochor wrote:
What is the error with the syntax in the attached program? I am attempting to define multiple values of a vector depending on the previously assigned variables. I am expecting the vector to have two rows but only one results.
Although the above is in Mathcad 15, the same applies to Prime.
Stuart
Post your sheet. From the picture it's difficult to see what is an index and what is a literal.
Luc
Daniel Sochor wrote:
What is the error with the syntax in the attached program? I am attempting to define multiple values of a vector depending on the previously assigned variables. I am expecting the vector to have two rows but only one results.
Although the above is in Mathcad 15, the same applies to Prime.
Stuart
Found the culprit. The function delivers the last statement as result.
Add a last statement that returns the desired result,
such as:
Note that Mathcad usually starts vectors and matrices at index 0
Another quick question (want to avoid creating another topic). Why does Mathcad not see NaN results? In the attached jpeg, c_ac is NaN but the if statement won't recognize it.
I guess it's one of those.....Prime things. This is what Mathcad say about it:
Success!
Luc
Must be your older version of Mathcad. Here's Mathcad 15:
You have to use the IsNaN function:
Perfect, thank you!