Skip to main content
1-Visitor
June 12, 2015
Solved

Can the solve block be used with vectors

  • June 12, 2015
  • 11 replies
  • 3572 views

In the attached Mathcad Prime 3.1 worksheet I am attempting to determine the valve of c such that the vectors Fs and C add to zero. This requires the use of vectors in the solve block, is this possible?

Best answer by lwestbrook

Hi Daniel,

Yes, you can use vectors in the solve block. See my attached worksheet. Note a couple of things:

1. You need to put guess values for Fs and C, since they are not defined elsewhere in the worksheet and their values will depend upon c.

2. Your last constraint shows sum(Fs)+C=0. If I understand your initial question, you are only looking for the sum of the vectors to equal a zero vector. As you now have the constraint, the solve block will take the sum of the values in Fs (resulting in a scalar value) and then add that to each value in the vector C. I don't think that's what you want. So I removed the summation operator.

Hopefully that helps!

Luke

11 replies

19-Tanzanite
June 12, 2015

Yes, it's possible, but unfortunately I can't read a Prime 3.1 sheet so I can't tell you why it's not working for you.

dsochor1-VisitorAuthor
1-Visitor
June 12, 2015

I'm sorry Richard, I'll post it in Prime 3.1 and Mathcad 15 in future questions.

24-Ruby IV
June 16, 2015

You can also save your worksheet as a PDF & XPS files for previewing to other.

5-Regular Member
June 12, 2015

Hi Daniel,

Yes, you can use vectors in the solve block. See my attached worksheet. Note a couple of things:

1. You need to put guess values for Fs and C, since they are not defined elsewhere in the worksheet and their values will depend upon c.

2. Your last constraint shows sum(Fs)+C=0. If I understand your initial question, you are only looking for the sum of the vectors to equal a zero vector. As you now have the constraint, the solve block will take the sum of the values in Fs (resulting in a scalar value) and then add that to each value in the vector C. I don't think that's what you want. So I removed the summation operator.

Hopefully that helps!

Luke

dsochor1-VisitorAuthor
1-Visitor
June 12, 2015

Thank you Luke. Might you know why the program doesn't work when an absolute value is added to the definition of Fs?

5-Regular Member
June 12, 2015

Looks to me that by putting absolute value in the equation, none of the values for Fs will be negative. And since C won't have any negative values, either, the addition of the two vectors cannot equal zero, as required by the last parameter.

1-Visitor
June 12, 2015

please tell me about what is matcad