Module Math
In: lib/ruby_units/math.rb

Math will convert unit objects to radians and then attempt to use the value for trigonometric functions.


atan2   cos   cosh   hypot   sin   sinh   sqrt   tan   tanh  

External Aliases

sqrt -> unit_sqrt
sin -> unit_sin
cos -> unit_cos
sinh -> unit_sinh
cosh -> unit_cosh
tan -> unit_tan
tanh -> unit_tanh
hypot -> unit_hypot
atan2 -> unit_atan2

Public Instance methods

Convert parameters to consistent units and perform the function