05-25-2010 02:04 PM
Hello, I tried to use nD Nonlinear System Single Solution to solve
X+3y+2z = -1
2X+4y+3z = 2
-x+2y+4z = 5
I know the answer to x,y, and z but I wanted Labview to figure it out. Here's my attached vi in LV 2009 and it only tells me that those 3 equations are soluable and reached 3 zeros.. What I really wanted is to find real answer of x,y and z.
Thanks.
Solved! Go to Solution.
05-25-2010 02:07 PM
Oops, I forgot to save those data as default. Here's the vi with default values.
05-25-2010 02:17 PM
you are solving f(x)=0 so you need to move the constants to the LHS of your equations:
x+3y+2z+1=0
2x+4y+3z-2=0
-x+2y+4z-5=0
[0,0,0] works for a starting point and you find the solution is (3,-4,4)
05-25-2010 02:22 PM
05-25-2010 02:47 PM
The VI that you supply has a simple job, take in n values (ie. x,y,z values) and return the n function values in F(X). The variant is there in case you want to pass additional values, such as the coefficients for a more general case. For your case here is a simple example.
05-25-2010 02:51 PM