LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

solve for unknown in math equation

Is there a vi/function that I can use to solve for an unknown in an equation? I am currently using labview 7 express. (haven't opened 8.5 yet)

for example, I have

c as constant or input

c = x^2 + xcos(x)

and it is difficult to solve for x. How can I find what x is given c?

Thanks in advance.
0 Kudos
Message 1 of 7
(6,623 Views)
One problem is that there will be either zero, one or two solutions. Which one do you want? What is the valid range for x? For c?
 
In any case, a quick newton-raphson should find the solution quickly. I just tried and it seems to work fine.
 
What is your LabVIEW version?
0 Kudos
Message 2 of 7
(6,594 Views)
cool thanks

I am using labview 7.0. I found the function. I am having trouble what to put as function. Can you help me out with that?
0 Kudos
Message 3 of 7
(6,577 Views)
Well, you could just use wikipedia and make your own. 😉

Here's a very primitive version, simply add checks for diverging cases and bad estimates, etc.. Seems to find it in 5-8 iterations. You could even add analytical derivatives.



Message Edited by altenbach on 06-11-2008 10:20 AM
Message 4 of 7
(6,566 Views)
thank you
0 Kudos
Message 5 of 7
(6,546 Views)

Altenbach,

 

I love the animated gif image, what a great idea!

 

 

Kameralina

Message 6 of 7
(6,414 Views)

labview 7.0 is good for equations and solving this equation is not a big deal but  i would like to suggest you to visit some good online websites through which you will be able to give and solve best questions . so i am giving you one of the links just go through it .

math equation solver

 

Amit28it

0 Kudos
Message 7 of 7
(5,421 Views)