can mathcad programming be used for simultaneous equations?
can mathcad programming be used for simultaneous equations?
(OP)
Hi there
I was wondering if mathcad programming can be used for solving simultaneous equations?
I have "a box" that needs three simultaneous equations (non linear, algebraic) to be solved.
I should end up with two answers, A and B.
I then need to recycle answer B and feed it into the simultaneous equations again to get a new answer for A and B. This needs to continue until A and B remain constant.
Basically an iteration over "the box" with a recycle stream.
Can this be done in mathcad? perhaps with the use of excel?
I know it can be done in Matlab for example but i would like to use Mathcad...
Any ideas?
Thanks
Mark
I was wondering if mathcad programming can be used for solving simultaneous equations?
I have "a box" that needs three simultaneous equations (non linear, algebraic) to be solved.
I should end up with two answers, A and B.
I then need to recycle answer B and feed it into the simultaneous equations again to get a new answer for A and B. This needs to continue until A and B remain constant.
Basically an iteration over "the box" with a recycle stream.
Can this be done in mathcad? perhaps with the use of excel?
I know it can be done in Matlab for example but i would like to use Mathcad...
Any ideas?
Thanks
Mark





RE: can mathcad programming be used for simultaneous equations?
It would probably be easiest to use the for next programming loop if you have an up to date version, failing that devious minds have solved that sort of problem by using one vector to store both variables at each iteration.
i:0;iterationsneeded*2
j:2;iterationsneeded
V[i:0
V[0:Afirstguess
V[1:Bfirstguess
V[j:some horrible equation using something like if(j=odd,workoutB using V[(j-1) and V[(j-2),workoutA)
Excel would be easier than this method.
Cheers
Greg Locock
RE: can mathcad programming be used for simultaneous equations?
RE: can mathcad programming be used for simultaneous equations?
Greg i am assuming you use macros in your excel?
I found this link: http://www.mathcad.com/support/item/02may_id.asp
Not sure if it will work in a programming loop though?
Gearhead what is TK?
RE: can mathcad programming be used for simultaneous equations?
In Mathcad, the straightforward solution uses the Given-Find or Given-Minimize block to define the simultaneous equations and then you input guess values and Mathcad produces a result. These are described in the help and user manuals as well as tons of examples are available in the Mathcad library site or the Mathcad user forums
http://www.mathcad.com/Library/mathcad_files.asp
http://collab.mathsoft.com/~Mathcad2000
TTFN
RE: can mathcad programming be used for simultaneous equations?
The Solve block produces the solution to the constraints given. If you want to apply that to a bunch of differing constraints, then you simply assign the Find() to a function with variables for input.
You can then run range variables into the inputs and the function will output the corresponding results, again, no programming is required.
TTFN
RE: can mathcad programming be used for simultaneous equations?
TTFN
RE: can mathcad programming be used for simultaneous equations?
Bung
Life is non-linear...
RE: can mathcad programming be used for simultaneous equations?
You asked what's TK
TK Solver is the original Equation Solver it's is used by a lot of Chemical Engineers. I believe the Dupont Standards For Chemical Process and Equipment are done in TK.