shithub: rcfitness

Download patch

ref: f2e2c0fc324692461aa4f4c84100694189dabb9f
parent: 41c872bf8af4cad1ff16f30c8ffbf36f65193774
author: rodri <[email protected]>
date: Sat Jan 30 04:53:00 EST 2021

remove unnecessary (and confusing) parentheses.

--- 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 @@
 
 bc <<EOF
 scale=4
-10*$w + 6.25*$h - (5*$a) + $s
+10*$w + 6.25*$h - 5*$a + $s
 EOF