함수 sqrt()

Square root
sqrt

1 Bash[ | ]

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

2 Excel[ | ]

=SQRT(16)  // 4

3 Go[ | ]

package main

import (
	"fmt"
	"math"
)

func main() {
	fmt.Println(math.Sqrt(16)) // 4
}

4 JavaScript[ | ]

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

5 PHP[ | ]

echo sqrt(16);  // 4

6 Python[ | ]

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

7 Perl[ | ]

print sqrt(16); # 4

8 SQL[ | ]

8.1 MySQL[ | ]

SELECT SQRT(2);
# 1.4142135623730951
SELECT SQRT(16);
# 4

9 같이 보기[ | ]

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