LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Second-degree equation

I need to graph a simple equation of second degree in labview 6.1. I think that has to do with the XY Graph, but I get the broken wire because they are different data.

For example I need to graph the equation:

-5x^2 + 2x + 10 = 0; which has 2 roots:

x1 = -1.23 and x2 = 1.63

I need to graph the equation as it appears in the attached image, and find the two roots. (I solved the roots with the Formula Node).


Thanks
0 Kudos
Message 1 of 2
(3,880 Views)

I no longer have LabVIEW 6.1, but typically you would create a ramp in the desired x range and then feed it into "polynomial evaulation" together with an array of coefficients [10,2,-5] in your case.

This will graph Y(x) = -5x² + 2x + 10

Just send the output array to a waveform graph.

In addition. there is a "polynomial roots" VI that will find your roots. (not sure if it is available in 6.1)

For an example, see: http://forums.ni.com/ni/board/message?board.id=170&message.id=285250&query.id=34336#M285250

 

0 Kudos
Message 2 of 2
(3,873 Views)