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
BedrockMission!

Learn More

View all

Sign in to view all badges

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
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

03-11-2008

In Javascript the command should be:



Math.pow(x,y);