কম্পিউটার

জাভাস্ক্রিপ্টে Math.tan() ফাংশন


ম্যাথ অবজেক্টের 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

  1. জাভাস্ক্রিপ্টে Math.tanh() ফাংশন

  2. জাভাস্ক্রিপ্টে Math.sinh() ফাংশন

  3. জাভাস্ক্রিপ্টে Math.sin() ফাংশন

  4. জাভাস্ক্রিপ্টে Math.cosh() ফাংশন