cancel
Showing results for 
Search instead for 
Did you mean: 

quadratic

HughQuinn
Member

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.
5 REPLIES 5
altenbach
Knight of NI

Re: quadratic

Look for "Polynomial Roots" in the "mathematics...polynomial" palette. (not in base package).
altenbach
Knight of NI

Re: quadratic

Message contains a hyperlink Message contains an image
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)
 
Tags (1)
johnsold
Knight of NI

Re: quadratic

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
apotex
Member

quadratic formula

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

johnsold
Knight of NI

Re: quadratic formula

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