LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

polynomial in expression node

I would like to enter the following equation into an Expression Node: 
 
1 / ((1.376E-17*x^4) - (0.000000000000026254*x^3) + (0.000000000023901*x^2) + (0.0000000055134*x10) + 0.000000063412)
 
However, each time I try I get block diagram errors.   I've tried removing spaces, parans, etc but have had no luck resolving the problem.  Any suggestions on how to do this or is there a different function in LabView that would be more appropriate?  Thanks.
0 Kudos
Message 1 of 3
(2,965 Views)
Hi JHess,

what about rewriting the formula as:

1 / ( (a*x)+b)*x)+c)*x+d)*x+e )

with a to e your constants from left to right.

It's just a different representation of the same formula. Your formula maybe doesn't work because of the "^" - powers should have to be written as "**".
Using LabView primitives instead of the expression node may speed up your code as well!


Message Edited by GerdW on 02-05-2008 09:51 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,963 Views)
Thanks for your help.  My problem was the carrot.  Changed to ** and it worked. 
0 Kudos
Message 3 of 3
(2,950 Views)