hello everybody, i was wondering if you could turn a body fat equation like the ones below into a working javascript calculator. It should have input fields for age, height (in cm) and the sum of 4 measured skinfolds (in mm).
Here's the equation:
for men %BF = 20.94878 + (age x 0.1166) - (height x 0.11666) + (sum4 x 0.42696) - (sum4˛ x 0.00159)
for women %BF = 22.18945 + (age x 0.06368) + (BMI x 0.60404) - (height x 0.14520) + (sum4 x 0.30919) - (sum4˛ x 0.00099562)
the formula for the BMI is weight / (height˛)
thanks in advance...







.

Bookmarks