RosettaCodeData/Task/Eulers-identity/Lua/eulers-identity-2.lua
2023-07-01 13:44:08 -04:00

3 lines
148 B
Lua

> -- 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