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

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(다른 사용자 한 명의 중간 판 4개는 보이지 않습니다)
6번째 줄: 6번째 줄:
==C#==
==C#==
[[category: Csharp]]
[[category: Csharp]]
<source lang='csharp'>
<syntaxhighlight lang='csharp'>
Console.WriteLine("E is approximately "+Math.E);
Console.WriteLine("E is approximately "+Math.E);
</source>
</syntaxhighlight>
<source lang='csharp'>
<syntaxhighlight lang='csharp'>
Console.WriteLine("E is approximately {0}", Math.E);
Console.WriteLine("E is approximately {0}", Math.E);
//E is approximately 2.71828182845905
//E is approximately 2.71828182845905
</source>
</syntaxhighlight>


==Excel==
==Excel==
[[category: Excel]]
[[category: Excel]]
<source lang='php'>
<syntaxhighlight lang='php'>
=EXP(1)
=EXP(1)
// 2.718281828
// 2.718281828
</source>
</syntaxhighlight>


==Java==
==Java==
[[category: Java]]
[[category: Java]]
<source lang='java'>
<syntaxhighlight lang='java'>
System.out.println("E is approximately "+Math.E);
System.out.println("E is approximately "+Math.E);
</source>
</syntaxhighlight>


==PHP==
==PHP==
[[category: PHP]]
[[category: PHP]]
<source lang='php'>
<syntaxhighlight lang='php'>
echo M_E;
echo M_E;
echo exp(1);
echo exp(1);
// 2.718281828459
// 2.718281828459
</source>
</syntaxhighlight>
 
==PowerShell==
[[category: PowerShell]]
<syntaxhighlight lang='PowerShell'>
[math]::e
# 2.71828182845905
</syntaxhighlight>
<syntaxhighlight lang='PowerShell'>
[math]::exp(1)
# 2.71828182845905
</syntaxhighlight>


==Python==
==Python==
[[category: Python]]
[[category: Python]]
<source lang='python'>
<syntaxhighlight lang='python'>
import math
import math
print("E is approximately %s" % math.e)
print("E is approximately %s" % math.e)
</source>
</syntaxhighlight>


==Ruby==
==Ruby==
[[category: Ruby]]
[[category: Ruby]]
<source lang='ruby'>
<syntaxhighlight lang='ruby'>
puts("E is approximately %s" % Math::E)
puts("E is approximately %s" % Math::E)
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
*[[math.log]]
*[[math.log]]
*[[EXP]]
*[[함수 exp()]]
*[[PI]]
*[[PI]]
*[[자연상수 e]]
*[[자연상수 e]]

2020년 11월 2일 (월) 02:31 기준 최신판

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