365 Days of code: Day 1

Introduction

As you start to walk on the way, the way appears.

Rumi

Today I’m going to extend Fitrupt by implementing FFMI computation.

Fat Free Mass Index (FFMI)

FFMI is a formula that calculates the amount of muscle mass a person has in relation to his or her height. While similar to the Body Mass Index (BMI), FFMI is a superior method of calculating a person’s body condition and health, even though it is not as popular.

FFMI = Lean Body Mass / (Height^2)

LBM or Fat Free Mass is already calculated in User.computeLBM() method.

Updated code

Final output

Leave Comment

Your email address will not be published. Required fields are marked *

Scroll Up