Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Calculation in Javascript or FormCalc "to the power"

Avatar

Not applicable
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
2 Replies

Avatar

Level 10
In Javascript the command should be:



Math.pow(x,y);

Avatar

Not applicable
Thank you very much for the fast answer.



It works!