Double-precision floating point (±1.7E±308, ~15 decimal digits)
1st Parameter
A numeric value representing the tangent of an angle, for which the arc tangent (inverse tangent) is computed
Read more about parameters of atan in parameters section
The atanfunction in C language Calculates the arc tangent of the specified number.
The atan function computes the principal value of the arc tangent of the input. The arc tangent is the inverse function of tangent. This function can take any real number as input and returns a value in the range [-π/2, π/2]. It's particularly useful when you need to find an angle from a ratio of sides in a right-angled triangle.
The atanfunction takes 1
parameter:
•
double `x`: A numeric value representing the tangent of an angle, for which the arc tangent (inverse tangent) is computed
Computes the arc tangent (inverse tangent) of a given value, returning the angle in radians within the range [-π/2, π/2].
The atan function return value :
Returns the arc tangent of the input value, in radians, in the range [-π/2, π/2]
Output
This example demonstrates the basic usage of the `atan` function with different input values.