From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reciprocal of a formula

Hi everybody 

 

i have a simple question but i can't find a valid solution 😄

i have a formula (as a string type) in this form: y = a0 + a1x1 + a2x2 +.. now i just need to determinate the reciprocal and put it in this form: 

y = 1/(a0 + a1x1 + a2x2 +..) ; i don't need a result, just obtein this form because after i have to implement this function in labview, but all the .vi i find in the Scripts & Formulas palette return a result. 

 

Does anyone have an idea which is a possible solution??

 

Thanks

Nigeltorque
0 Kudos
Message 1 of 3
(2,059 Views)

Well, if you just want to edit the formula as string, all you need are simple string manipulations. For example you could search for "= ", insert the string "1/(" after it, and append the string ")" at the end.

 

(LabVIEW does not do symbolic math. Maybe you have some misconceptions.)

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

Uhm.. ok! string manipulation... i will take this way!!

Nigeltorque
0 Kudos
Message 3 of 3
(2,051 Views)