LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get two different results from the same coefficients?

Solved!
Go to solution

I am getting two different results from the Polynomial Evaluation function.

 

For the first one, I am getting the coefficients from a Polynomial Fit function.  I feed the coefficients from the Fit function into the Poly Eval function and get the correct result of 12.8582 when I evaluate 49940.

 

For the second one, I create constant array of the SAME values that were returned from the Polynomial Fit function (i typed them in).  However, I am getting an incorrect result of -120.7913 when I feed the constant array into the Poly Eval function when I evauate 49940.

 

How can this happen when I am using the same array values?

 

Attached is an image of what I am explaining.

0 Kudos
Message 1 of 5
(2,778 Views)
Solution
Accepted by topic author altran

Hi Altran,

 

are you sure about using the "same" coefficients?

Did you compare them? Did you (atleast) set the display properties to 17 significant digits?

 

Please attach a VI instead of a picture...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,768 Views)

Which version of LabVIEW are you using?

0 Kudos
Message 3 of 5
(2,757 Views)

GerdW,

 

Thank you, you are correct.  I set the Significant digits to 30 and it worked.  It just "looked the same" when they were both rounded to 6 sig figs.  Another lesson learned, Thanks again!!!

 

-Andy

0 Kudos
Message 4 of 5
(2,734 Views)

GerdW,

 

Thank you, you are correct.  I set the Significant digits to 30 and it worked.  It just "looked the same" when they were both rounded to 6 sig figs.  Another lesson learned, Thanks again!!!

 

-Andy

0 Kudos
Message 5 of 5
(2,733 Views)