Простые типы / Числа / Математические операции

sin90 = Math.sin(Math::PI/2)
# m_sin is 1.0

cos180 = Math.cos(Math::PI)
# m_cos is -1.0

tan45 = Math.tan(Math::PI/4)
# m_tan is 1.0

puts "sin90 is #{sin90}"
puts "cos180 is #{cos180}"
puts "tan45 is #{tan45}"