Home »
Java »
Java Programs
Java Math Class Programs
In Java programming language, the Math class provides several methods to perform mathematical operations like min(), max(), avg(), sin(), cos(), tan(), round(), ceil(), floor(), abs() etc.
This section contains the solved programs on Java Math class, practice these programs to learn the concept of Java Math class and its methods. These programs contain the solved code, explanation, and output used in the Java Math class Programs.
List of Java Math Class Programs
- Java program to find the logarithmic value of a number
- Java program to find the logarithmic value of a number for base 10
- Java program to convert degree to radian using library method
- Java program to find the trigonometric sine of an angle
- Java program to find the trigonometric cosine of an angle
- Java program to find the trigonometric tangent of an angle
- Java program to find the trigonometric arc sine of an angle
- Java program to find the trigonometric arc cosine of an angle
- Java program to find the trigonometric arc tangent of an angle
- Java program to find the hyperbolic sine of an angle
- Java program to find the hyperbolic cosine of an angle
- Java program to find the hyperbolic tangent of an angle
- Java program to find the cube root of a number using library method
- Java program to find the absolute value of a number using library method
- Java program to find the smallest number between two numbers using the library method
- Java program to find the largest number between two numbers using the library method
- Java program to find the sign of given number using library method
- Java program to round off the decimal number using the library method
- Java program to perform the ceiling operation on the decimal number using the library method
- Java program to demonstrate the Math.copySign() method
- Java program to demonstrate the Math.floorDiv() method
- Java program to demonstrate the Math.addExact() method
- Java program to demonstrate the Math.subtractExact() method
- Java program to demonstrate the Math.multiplyExact() method
- Java program to convert radian to a degree using library method