StrictMath.atan(): This method is available in java.lang.StrictMath class of Java.
Syntax:
double java.lang.StrictMath.atan(double a)
This method takes one argument of type double as its parameter. This method returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2.
Special cases:
1. If the argument is NaN, then the result is NaN.
2. If the argument is zero, then the result is a zero with the same sign as the argument.
Parameters: One parameter is required for this method.
a: the value whose arc tangent is to be returned.
Returns: the arc tangent of the argument.
Exceptions: NA
Approach
Java
public class StrictMathatan {public static void main(String[] args) {double a = 0.45;System.out.println(StrictMath.atan(a));}}
Output:
0.4228539261329407
No comments:
Post a Comment