module HelthCalc
Constants
- VERSION
Public Class Methods
calcBMI(height, weight)
click to toggle source
# File lib/helthCalc.rb, line 5 def calcBMI(height, weight) return weight / ((height / 100.0) ** 2) end
calcRohrer(height, weight)
click to toggle source
# File lib/helthCalc.rb, line 13 def calcRohrer(height, weight) return weight.fdiv(height ** 3) * (10 ** 7) end
calcRohrerStandardWeight(height)
click to toggle source
# File lib/helthCalc.rb, line 17 def calcRohrerStandardWeight(height) return ((height / 100.0) ** 3) * 13 end
calcStandardWeight(height)
click to toggle source
# File lib/helthCalc.rb, line 9 def calcStandardWeight(height) return ((height / 100.0) ** 2) * 22 end