<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
document.write("Math.acos(-1) = " + Math.acos(-1) + "<br />");
document.write("Math.acos(-2) = " + Math.acos(-2) + "<br />");
document.write("Math.acos(1) = " + Math.acos(1) + "<br />");
document.write("Math.acos(2) = " + Math.acos(2) + "<br />");
document.write("Math.acos(0) = " + Math.acos(0) + "<br />");
document.write("Math.acos(0.5) = " + Math.acos(0.5) + "<br />");
/*
run
Math.acos(-1) = 3.141592653589793
Math.acos(-2) = NaN
Math.acos(1) = 0
Math.acos(2) = NaN
Math.acos(0) = 1.5707963267948965
Math.acos(0.5) = 1.0471975511965978
*/</script>
</body>
</html>