Math.atan

atan — Returns the arc-tangent (in radians) of a number.

Description

Math.atan(number number)

Parameters

Name Description Type Default Optional
number number No

Examples

Example #1 – atan example
console.log(Math.atan(1)); // 0.7853981633974483 console.log(Math.atan(4)); // 1.3258176636680326 console.log(Math.atan(4.2)); // 1.3370531459259951 console.log(Math.atan(10)); // 1.4711276743037347 console.log(Math.atan(0)); // 0

External references