Parameters or Arguments
number The wide variety used to calculate the arc tangent in radians.
The atan() characteristic returns the arc tangent of a range and the result is expressed in radians.
Math is a placeholder object that includes mathematical functions and constants of which atan() is one of these functions.
console.log(Math.atan(0.75)); console.log(Math.atan(-0.9)); console.log(Math.atan(2));
In this example, we have invoked the atan() feature using the Math class.
We have written the output of the atan() characteristic to the internet browser console log, for demonstration purposes, to show what the atan() feature returns.
The following will be output to the net browser console log:
0.6435011087932844 -0.7328151017865066 1.1071487177940904
In this example, the first output to the console log returned 0.6435011087932844 which is the arc tangent of 0.75. The second output to the console log lower back -0.7328151017865066 which is the arc tangent of -0.9. The 0.33 output to the console log lower back 1.1071487177940904 which is the arc tangent of 2
The result from the atan() feature is expressed in radians.