Skip to main content
1-Visitor
August 22, 2018
Question

Iterate Simultaneous Equations

  • August 22, 2018
  • 4 replies
  • 5211 views

I'm trying to solve a system of simultaneous equations with a given value that changes. I attached a simplified worksheet to illustrate this. I used the variable 'I' to represent the position in the input matrix. I would like Mathcad to return the values of x0,y0, x1,y1, and x3,yall at one time for each value of Theta. I really don't know where to start on this. Any help would be appreciated.

 

Thanks

4 replies

25-Diamond I
August 22, 2018

You may consider turning the solve block into a function dependent on theta:

B.png

23-Emerald I
August 22, 2018

turn the solve block into a function.  (And be careful not to reassign variables!)

23-Emerald IV
August 22, 2018

Like this?

LM_20180822_Simultaneous.png

 

Success!
Luc

Mike123451-VisitorAuthor
1-Visitor
August 23, 2018

Thanks everyone for your responses. I thought that they were exactly what I needed, however when I went to apply the methods in my actual calculations of 11 equations, it will not solve. It will solve when the input angle is a given number (say 0 and 10 degrees), but fails when it is a vector consisting of the same angles. I attached a file illustrating this. Any idea why this is happening would be greatly appreciated.

23-Emerald I
August 23, 2018

You can't continue naming different things the same.

Mike123451-VisitorAuthor
1-Visitor
August 23, 2018

Sorry, I should've been more clear on what I was doing. I put both angles in there so one could be dragged before or after the other to illustrate the problem I'm having. Ideally, I would only have the vector definition, but in the end I only have one definition of the angle. I need ThetaLT to be a vector that is used in the equations. I noticed the way you redefined it, ThetaLT is used but ThetaLTg is not used in the equations.