"상수 E"의 두 판 사이의 차이

39번째 줄: 39번째 줄:
<source lang='PowerShell'>
<source lang='PowerShell'>
[math]::e
[math]::e
# 2.71828182845905
</source>
<source lang='PowerShell'>
[math]::exp(1)
# 2.71828182845905
# 2.71828182845905
</source>
</source>

2015년 4월 1일 (수) 14:32 판

EXP
M_E
Math.e

1 C#

Console.WriteLine("E is approximately "+Math.E);
Console.WriteLine("E is approximately {0}", Math.E);
//E is approximately 2.71828182845905

2 Excel

=EXP(1)
// 2.718281828

3 Java

System.out.println("E is approximately "+Math.E);

4 PHP

echo M_E;
echo exp(1);
// 2.718281828459

5 PowerShell

[math]::e
# 2.71828182845905
[math]::exp(1)
# 2.71828182845905

6 Python

import math
print("E is approximately %s" % math.e)

7 Ruby

puts("E is approximately %s" % Math::E)

8 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}