## Java – Find Sine of Angle – sin() Method – Examples & Explanation

Previous sin() method is used to find out a trigonometric ratio sine of an angle in JAVA, measured in radians. sin() method exists in “Math” library of JAVA programming language.

## Java – Find Absolute Value of Long – abs() Method with Examples

java.lang.Math.abs() method is used to find the absolute value of a long in Java for the given input (x – parameter) in Java. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned. Package abs() method exists in Math class of java.lang package….

## Java – Find Absolute Value of Int – abs() Method with Examples

java.lang.Math.abs() method is used to find the absolute value of an integer in Java for the given input (x – parameter). If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned. Package abs() method exists in Math class of java.lang package. Since: JDK1.0…

## Java – Find Absolute Value of Float – abs() Method with Examples

java.lang.Math.abs() method is used to find the absolute value of a float value in Java for the given input (x – parameter). If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned. abs() method exists in Math class of java.lang package. Since: JDK1.0…

## Java – Find Arc Sine – asin() Method – Examples & Explanation

java.lang.Math.asin() method is used to find the sum of a double value in Java for the given input (x – parameter). The returned angle is in the range -pi/2 through pi/2. The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic. asin() method exists in Math class of java.lang…

## Java – Find Hyperbolic Cosine – cosh() Method – Examples & Explanation

java.lang.Math.cosh() method is used to find the hyperbolic cosine of a double value in Java for the given input (x – parameter). The hyperbolic cosine of x is defined to be (e^x + e^-x)/2 where e is Euler’s number. The computed result must be within 2.5 ulps of the exact result. cosh() method exists in…

## Java – Find Arc Cosine – acos() Method – Examples & Explanation

java.lang.Math.acos() method is used to find the arc cosine of a double value in Java for the given input (x – parameter). The returned angle is in the range 0.0 through PI (22/7). The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic. acos() method exists in Math class…

## Java – Find e Raise to Power x – 1 – expm1() Method with Examples

java.lang.Math.expm1() method is used to find the e^x -1 of a double value in Java for the given input (x – parameter). Note that for values of x near 0, the exact sum of expm1(x) + 1 is much closer to the true result of ex than exp(x). The computed result must be within 1…

## Java – Find Euler’s Number e – exp() Method – Examples & Explanation

java.lang.Math.exp() method is used to find the Euler’s number e raised to the power of a double value in Java for the given input (x – parameter). The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic. The value of constant e = 2.71828 approximately. exp() method exists in…

## Java – Find Cube Root – cbrt() Method – Examples & Explanation

java.lang.Math.cbrt() method is used to find the cube root of a double value in JAVA for the given input (x – parameter). For positive finite x, cbrt(-x) == -cbrt(x); that is, the cube root of a negative value is the negative of the cube root of that value’s magnitude. The computed result must be within…