12-10-2015 10:29 AM
I've just completed the distance formula in a formula node, and the only problem I'm having now is the fact that the only error is that the formula node is missing a left parathesis. Can someone help me with this? The vi file is attached. Thanks in advanced!
Solved! Go to Solution.
12-10-2015 10:52 AM
You need sqrt(pow(x1-x2,2)+ etc...
12-10-2015 10:55 AM
Thank you very much, this did fix my missing left parathesis problem, but now the program is stating I have "too few arguments"? File is attached once again.
12-10-2015 10:58 AM
Try right clicking the formula node, adding the correct inputs (x1, x2, y1, and y2), and then wiring them. You only need the sqrt... line to make this work.
12-10-2015 11:08 AM
Here is a youtube video on formula nodes. Assign and wire the inputs and outputs.
https://www.youtube.com/watch?v=6sxDkAOGQ7w
12-10-2015 11:08 AM
I actually did something a little different..
I made the x2-x1 and y2-y1 2 different equations, then made the output= (Eq1+Eq2);
Thank you for your help!
File is attached to see what I did differently.
12-10-2015 11:09 AM - edited 12-10-2015 11:10 AM
May I ask why you are trying the formula node, since you already have a working pure g solution?
The formula node is really not that useful and can be difficult to debug. It is pretty pointless and typically just complicates things.
Back to the problem at hand, why not use complex math instead?
12-10-2015 11:22 AM
In my computer programming class, we're required to be knowledgable on both using operators as well as using the formula node, so I was just practicing for my final exam.
12-10-2015 12:01 PM