RosettaCodeData/Task/Eulers-identity/Ruby/eulers-identity.rb
2023-07-01 13:44:08 -04:00

4 lines
49 B
Ruby

include Math
E ** (PI * 1i) + 1
# => (0.0+0.0i)