aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-01-30 09:53:00 +0000
committerrodri <rgl@antares-labs.eu>2021-01-30 09:53:00 +0000
commitf2e2c0fc324692461aa4f4c84100694189dabb9f (patch)
tree77d9e55fd47db82f42a64b33aa50a158e665a309
parent41c872bf8af4cad1ff16f30c8ffbf36f65193774 (diff)
downloadrcfitness-f2e2c0fc324692461aa4f4c84100694189dabb9f.tar.gz
rcfitness-f2e2c0fc324692461aa4f4c84100694189dabb9f.tar.bz2
rcfitness-f2e2c0fc324692461aa4f4c84100694189dabb9f.zip
remove unnecessary (and confusing) parentheses.
-rwxr-xr-xbmr4
1 files changed, 2 insertions, 2 deletions
diff --git a/bmr b/bmr
index e684312..5766d88 100755
--- a/bmr
+++ b/bmr
@@ -1,7 +1,7 @@
#!/bin/rc
#
# BMR following the Mifflin-St. Jeor equation
-# P(kcal/day) = 10*weight(kg) + 6.25*height(cm) - (5*age(yr)) + s
+# P(kcal/day) = 10*weight(kg) + 6.25*height(cm) - 5*age(yr) + s
# where s is +5 for men and -161 for women
#
s=5
@@ -28,5 +28,5 @@ if(~ $flagw 1)
bc <<EOF
scale=4
-10*$w + 6.25*$h - (5*$a) + $s
+10*$w + 6.25*$h - 5*$a + $s
EOF