RosettaCodeData/Task/Eulers-identity/Lua/eulers-identity-2.lua

4 lines
148 B
Lua
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
> -- alternatively, equivalent one-liner from prompt:
> math.exp(0)*math.cos(math.pi)+1, math.exp(0)*math.sin(math.pi)
0.0 1.2246063538224e-016