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

잔글 (Jmnote 사용자가 Sqrt 문서를 함수 sqrt 문서로 옮겼습니다)
(차이 없음)

2014년 7월 5일 (토) 17:00 판

Square root
sqrt

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 Python

import math
print math.sqrt(16) // 4.0

6 같이 보기

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