Java Math.atan() method21 Mar 2025 | 1 min read The java.lang.Math.atan() is used to calculate the trigonometric Arc Tangent of an angle. Arc Tangent is also called as inverse of a tangent. This method returns the values between -pi/2 and pi/2. SyntaxParameterReturn
Example 1Output: 1.4125642791467878 Example 2Output: -0.7853981633974483 Example 3Output: 0.0 Example 4Output: 1.2626272556789115 Example 5Output: NaN Next TopicJava Math |
Java method The java.lang. is used to return the square root of a number. Syntax public static double sqrt(double x) Parameter x= a value Return This method returns the square root of x. If the argument is positive double value, this method will return the square root of a given value. If the...
2 min read
Java () method The java.lang.() is a built-in math function in java which is used to convert an angle measured in radians to an approximately equivalent angle measured in degrees. Syntax public static double toDegrees(double x) Parameter x = an angle, in radians Return It returns the measurement of the angle x...
2 min read
Java method The java.lang. returns the argument incremented by one. It will throw an exception if the result overflows either int or long. Syntax public static int incrementExact (int a) public static long incrementExact (long a) Parameter a = the value to increment Return It returns the argument incremented by one....
2 min read
Java method The java.lang. returns the sum of its arguments. It will throw an exception if the result overflows either int or long. Syntax public static int addExact(int a, int b) public static long addExact(long a, long b) Parameter a = the first value b = the second value Return It returns...
2 min read
Java Math.Up() Method The java.lang.Math.Up() is a inbuilt math method in java. It returns the floating-point value adjacent to the user specified parameter (d) in the direction of positive infinity. This method is equivalent to After(d, Double.POSITIVE_INFINITY) method. Implementation of Up may run faster than its equivalent...
2 min read
Java method The java.lang. is used to return the trigonometric sine of an angle. This method returns value between -1 to 1. Syntax public static double sin(double a) Parameter a = an angle, in radians Return It returns the sine value of the argument. If the argument is positive or negative number,...
2 min read
Java Method The method in Java is a fundamental function used for raising a number to a power. In programming, exponentiation is a common operation, particularly in mathematical and scientific computations, and provides a convenient way to perform this operation in Java. The...
9 min read
Java method The java.lang.Math.mutliplyExact() returns the product of the arguments. It will throw an exception if the result overflows either int or long. Syntax public static int multiplyExact(int a, int b) public static long multiplyExact(long a, long b) public static long multiplyExact(long a, int b) Parameter a = the first...
2 min read
Java method The java.lang. is used round of the decimal numbers to the nearest value. This method is used to return the closest long to the argument, with ties rounding to positive infinity. Syntax public static int round(float x) public static long round(double x) Parameter x= It is a floating-point...
2 min read
Java method The java.lang. is used to return the hyperbolic sine of a value. The hyperbolic sine of any value x can be defined as (ex - e -x)/2, where e is an Euler's number. Syntax public static double sinh(double x) Parameter x = the number whose hyperbolic sine...
2 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India