class Toji::Swvp::Sonntag

Sonntagの式

Constants

A
B
C
D
E

Public Instance Methods

calc(temp) click to toggle source
# File lib/toji/swvp/sonntag.rb, line 17
def calc(temp)
  temp = temp.to_f
  (Math.exp(A * ((temp + 273.15)**-1) + B - C * (temp + 273.15) + D * ((temp + 273.15)**2) + E * Math.log(temp + 273.15))) / 100 
end