কম্পিউটার টিউটোরিয়াল

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

Math.atan() ফাংশনটি একটি নম্বর গ্রহণ করে এবং তার আর্কট্যাঞ্জেন্ট (inverse tangent) রেডিয়ানে রিটার্ন করে। ফলাফল -π/2 থেকে π/2 এর মধ্যে থাকে।

সিনট্যাক্স

Math.atan(x)

উদাহরণ

<html> <head>    <title>JavaScript Example</title> </head> <body>    <script type="text/javascript">       var result = Math.atan(0.5);       document.write("Arctangent value: "+result);       document.write("<br>");       document.write("Value in degrees: "+result*180/Math.PI);    </script> </body> </html>

আউটপুট

Arctangent value: 0.4636476090008061
Value in degrees: 26.56505117707799
  1. জাভাস্ক্রিপ্টে Math.pow() ফাংশন

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

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

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