Dear all,
I have to solve a nonlinear system of equations.
y1 = a11*x1 + a12*x2 + x1*x2...
y2 = a21*x1 + a21*x2 + x1*y1... And so on...
So far, so good, solving the system is a piece of cake with Mathcad. But the thing is I want to solve the system for different values of, for instance, a11. I want to solve the system for a11 = 0,1 then store the result in a matrix, then for a11=0,2, store it, then solve it for 0,3 ... Here is where the problem starts since I'm having a bad time trying to use solve block inside a "for" loop (each iteration modifies the value of a11). Is this possible ? Are there any examples out there ? Any other options ? Thanks in advance.
Solved! Go to Solution.
As you found out, you can't use the "find" of a solve block in a program, but you can turn a normal solve block into function dependent on, lets say a11 in your example and call that function in a program loop.
As you found out, you can't use the "find" of a solve block in a program, but you can turn a normal solve block into function dependent on, lets say a11 in your example and call that function in a program loop.
Is there any example of that ?
I have figured it out now.
Here is an example