LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

quadratic

I have a quadratic equation. Ax^2 + B*x + C where A, B, and C are known. How can Labview solve for X for me.
Message 1 of 6
(8,703 Views)
Look for "Polynomial Roots" in the "mathematics...polynomial" palette. (not in base package).
0 Kudos
Message 2 of 6
(8,702 Views)
For an example how it is used in a real program ,have a look at my old example posted here:
 
 
 
(You would set the "Desired Y" to zero of course)
 
0 Kudos
Message 3 of 6
(8,697 Views)
You did not specify an equation, only an expression.

If your equation is Ax^2 + B*x + C = 0, then use the quadratic formula to find x. x = [-B +/- sqrt(B^2 - 4*A*C)]/[2*A]

If your equation is Ax^2 + B*x + C = y, then modify the formula like this: x = [-B +/- sqrt(B^2 - 4*A*(C - y)]/[2*A]

Lynn
0 Kudos
Message 4 of 6
(8,677 Views)

Hi, im new in labview

 

i was wondering how i could write a function for the quadratic formula -b+/-root b^2-4ac/2a. I need an output 


Thanks

0 Kudos
Message 5 of 6
(7,775 Views)

Generally it is better to start a new thread rather than adding on to one which was last updated 4 years ago.  Refer to that thread if appropriate.

 

If you are new to LV, the best way to get started is by working throough the on-line tutorials.

 

Next try to implement the formula yourself.  If you have trouble, then post your VI and indicate what does not work and what you expected the result to be.

 

All of the functions you need are in the Numeric palette.  If you cannot find them, use the search button on the palette.

 

Lynn

0 Kudos
Message 6 of 6
(7,761 Views)