First Custom Lib on pip
Project description
- # Calculate body fat percentage and return the same
- age:
age of user ot patient
- gender:
Male or Female
- BMI:
Body mass index
- return:
percentage of body fat
# equation information
Body fat percentage (BFP) formula for adult males: BFP = 1.20 × BMI + 0.23 × Age - 16.2
Body fat percentage (BFP) formula for adult females: BFP = 1.20 × BMI + 0.23 × Age - 5.4
Body fat percentage (BFP) formula for boys: BFP = 1.51 × BMI - 0.70 × Age - 2.2
Body fat percentage (BFP) formula for girls: BFP = 1.51 × BMI - 0.70 × Age + 1.4
# Example code
from BodyfatCalculator.bodyfat_calculator import body_fat
percentage = (age=27,gender=”Male”,BMI=22.22)
print(percentage)
output: 16.673999999999996
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file BodyFatCalculator-0.2.tar.gz.
File metadata
- Download URL: BodyFatCalculator-0.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd070f1ac01ddd679f16e853df481e9a777d010a60b46df668803682ca0a666e
|
|
| MD5 |
22b488dbd827ff2e372c87cbfd4ab89c
|
|
| BLAKE2b-256 |
f5be794690ca18b88c3d0002472101772ee051613b6ab9369e3db841147772f9
|