Euler's identity: Difference between revisions
Content deleted Content added
new builtin |
Added C# |
||
Line 135: | Line 135: | ||
</pre> |
</pre> |
||
=={{header|C sharp}}== |
|||
<lang csharp>using System; |
|||
using System.Numerics; |
|||
public class Program |
|||
{ |
|||
static void Main() { |
|||
Complex e = Math.E; |
|||
Complex i = Complex.ImaginaryOne; |
|||
Complex pi = Math.PI; |
|||
Console.WriteLine(Complex.Pow(e, i * pi) + 1); |
|||
} |
|||
}</lang> |
|||
{{out}} |
|||
<pre> |
|||
(0, 1.22464679914735E-16) |
|||
</pre> |
|||
=={{header|Common Lisp}}== |
=={{header|Common Lisp}}== |
||
Line 144: | Line 162: | ||
#C(0.0L0 -5.0165576136843360246L-20) |
#C(0.0L0 -5.0165576136843360246L-20) |
||
</pre> |
</pre> |
||
=={{header|Factor}}== |
=={{header|Factor}}== |