Calculation in Javascript or FormCalc "to the power"

Avatar

03-11-2008

Hi,



How can I caculate the following expression using either formcalc or javascript. The Expression pow(x,y) doesn't seem to be recognized.



Expression: BSA.rawValue = pow(height.rawValue,0.45) * weight(weight.raxValue,0.72)



or BSA = x^0.45 * y^0.72



I couldn't find the answer in the forum.



Thank you for your help,



Olivio

Replies

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

03-11-2008

In Javascript the command should be:



Math.pow(x,y);