class Toji::Swvp::Wagner
Wagnerの式
Constants
- A
- B
- C
- D
- Pc
- Tc
Public Instance Methods
calc(temp)
click to toggle source
# File lib/toji/swvp/wagner.rb, line 18 def calc(temp) x = 1 - (temp.to_f + 273.15) / Tc Pc * Math.exp((A * x + B * x**1.5 + C * x**3 + D * x**6) / (1 - x)) end