함수 sqrt()

Jmnote (토론 | 기여)님의 2014년 5월 23일 (금) 00:32 판 (새 문서: category: Math ;Square root ==Bash== category: Bash <source lang='bash'> a=16 b=$(echo "sqrt($a)" | bc) echo $b # 4 </source> ==Excel== category: Excel <source lang='php...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
Square root

1 Bash

a=16
b=$(echo "sqrt($a)" | bc)
echo $b
# 4

2 Excel

=SQRT(16)  // 4

3 JavaScript

document.write( Math.sqrt(16) );  // 4

4 PHP

echo sqrt(16);  // 4

5 같이 보기

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