Math 객체의 tan() 함수는 각도(라디안)를 받아들이고 해당 탄젠트 값을 반환합니다.
구문
구문은 다음과 같습니다.
Math.tan(90)
예시
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.tan(90);
document.write("Tangent value of the given angle: "+result);
</script>
</body>
</html> 출력
Tangent value of the given angle: -1.995200412208242