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

(Jmnote 사용자가 E 문서를 자연상수 e 문서로 옮겼습니다)
 
1번째 줄: 1번째 줄:
#넘겨주기 [[자연상수 e]]
[[category: Math]]
;EXP
;M_E
;Math.e
 
==C#==
[[category: Csharp]]
<source lang='csharp'>
Console.WriteLine("E is approximately "+Math.E);
</source>
<source lang='csharp'>
Console.WriteLine("E is approximately {0}", Math.E);
//E is approximately 2.71828182845905
</source>
 
==Excel==
[[category: Excel]]
<source lang='php'>
=EXP(1)
// 2.718281828
</source>
 
==Java==
[[category: Java]]
<source lang='java'>
System.out.println("E is approximately "+Math.E);
</source>
 
==PHP==
[[category: PHP]]
<source lang='php'>
echo M_E;
echo exp(1);
// 2.718281828459
</source>
 
==Python==
[[category: Python]]
<source lang='python'>
import math
print("E is approximately %s" % math.e)
</source>
 
==Ruby==
[[category: Ruby]]
<source lang='ruby'>
puts("E is approximately %s" % Math::E)
</source>
 
==같이 보기==
*[[EXP]]
*[[PI]]
*[[자연상수 e]]

2014년 5월 27일 (화) 21:05 판

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 Python

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

6 Ruby

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

7 같이 보기

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