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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Symbolic error message "This value must be a matrix"

belsherj
1-Visitor

Symbolic error message "This value must be a matrix"

I'm using MathCad to create a set of linear equations. Everything works as intended as long as I use integer values for some of the elements, but as soon as I change these values to nonintegers I get a "This value must be an Matrix error." I'm sure that I am missing something obvious. The revelant portion of the worksheet is attached below. Thanks in advance.

ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:belsherj)

It is because you are using the symbol "pi", which is a built in constant. When you enter a floating point number the symbolic processor tries to do a floating point evaluation of the entire expression, which means it tries to evaluate pi[n for each n. That of course is not possible, because pi is not a vector of numbers. Change "pi" to something else.

View solution in original post

2 REPLIES 2
RichardJ
19-Tanzanite
(To:belsherj)

It is because you are using the symbol "pi", which is a built in constant. When you enter a floating point number the symbolic processor tries to do a floating point evaluation of the entire expression, which means it tries to evaluate pi[n for each n. That of course is not possible, because pi is not a vector of numbers. Change "pi" to something else.

That seem embarrassingly obvious. Thanks for the help!

Announcements

Top Tags