Here is the code:
document.write("The value of atan(2) is: "+Math.atan(2));
<h2>Use of atan() method</h2>
<button onclick="calculate();">Use of method atan</button>
Output will be displayed as:
On clicking the button, you will get the arc tangent of 2:
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: February 16, 2005 If you enjoyed this post then why not add us on Google+? Add us to your Circles