CodesJava

Easy learning with example program codes

JavaScript math atan() method

The JavaScript math atan() method is used to get the arc-tangent of the given number in radians. It returns the value between -Math.PI/2 to Math.PI/2.

Syntax:

Math.atan(n)

Parameters
n: It represents the number whose arc-tangent have to be get.

Returns
Arc-tangent value of a number

Example

<!DOCTYPE html>
<html>
<body>
<script>  
document.writeln(Math.atan(0));   
</script>  
</body>
</html>

Output

0
Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status