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