"함수 cos()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(다른 사용자 한 명의 중간 판 5개는 보이지 않습니다)
3번째 줄: 3번째 줄:
==Excel==
==Excel==
[[category: Excel]]
[[category: Excel]]
<source lang='PHP'>
<syntaxhighlight lang='PHP'>
=COS(1)
=COS(1)
// 0.540302306
// 0.540302306
=COS(PI())
=COS(PI())
// -1
// -1
</source>
</syntaxhighlight>
==PHP==
==PHP==
[[category: PHP]]
[[category: PHP]]
<source lang='PHP'>
<syntaxhighlight lang='PHP'>
echo cos(1);
echo cos(1);
// 0.54030230586814
// 0.54030230586814
echo cos(M_PI);
echo cos(M_PI);
// -1
// -1
</source>
</syntaxhighlight>
 
==PowerShell==
[[category: PowerShell]]
<syntaxhighlight lang='PowerShell'>
[math]::cos(1)
# 0.54030230586814
[math]::cos([math]::pi)
# -1
</syntaxhighlight>


==Python==
==Python==
[[category: Python]]
[[category: Python]]
<source lang='Python'>
<syntaxhighlight lang='Python'>
import math
import math
print math.cos(1)
print math.cos(1)
// 0.540302305868
# 0.540302305868
print math.cos(math.pi)
print math.cos(math.pi)
// -1.0
# -1.0
</source>
</syntaxhighlight>


==Ruby==
==Ruby==
[[category: Ruby]]
[[category: Ruby]]
<source lang='Ruby'>
<syntaxhighlight lang='Ruby'>
puts Math::cos(1)
puts Math::cos(1)
# 0.5403023058681398
# 0.5403023058681398
puts Math::cos(Math::PI)
puts Math::cos(Math::PI)
# -1.0
# -1.0
</source>
</syntaxhighlight>
 
==SQL==
[[category: SQL]]
===MySQL===
[[category: MySQL]]
<syntaxhighlight lang='MySQL'>
SELECT COS(1);
# 0.5403023058681398
</syntaxhighlight>


==같이 보기==
==같이 보기==

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


1 Excel[ | ]

=COS(1)
// 0.540302306
=COS(PI())
// -1

2 PHP[ | ]

echo cos(1);
// 0.54030230586814
echo cos(M_PI);
// -1

3 PowerShell[ | ]

[math]::cos(1)
# 0.54030230586814
[math]::cos([math]::pi)
# -1

4 Python[ | ]

import math
print math.cos(1)
# 0.540302305868
print math.cos(math.pi)
# -1.0

5 Ruby[ | ]

puts Math::cos(1)
# 0.5403023058681398
puts Math::cos(Math::PI)
# -1.0

6 SQL[ | ]

6.1 MySQL[ | ]

SELECT COS(1);
# 0.5403023058681398

7 같이 보기[ | ]

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