Java Math.cos() method returns the trigonometric cosine of the given angle in radians. This angle value is passed as an argument to this method and… [Read More]
Java Math.sin() Method
Java Math.sin() method returns the trigonometric sine of the given angle in radians. This angle value is passed as an argument to this method and… [Read More]
Java Math.exp() Method
Java Math.exp() method returns e raised to the power of given argument. Here e is a Euler’s number, whose approximate value is 2.718281828459045. public class… [Read More]
Java Math.log1p() Method
Java Math.log1p() method returns natural logarithm (base e) of the sum of argument and 1. In simple words log1p(num) returns log(num+1). public class JavaExample {… [Read More]
Java Math.log10() Method
Java Math.log10() method returns base 10 logarithm of the double argument. In this tutorial, we will discuss log10() method with examples. Syntax of Math.log10() method… [Read More]
Java Math.log() Method
Java Math.log(double num) method returns natural logarithm of the double value num. The natural logarithm is also known as base e logarithm. The e is… [Read More]
Java Math.toIntExact() Method
Java Math.toIntExact() method returns the long argument as an int. This method accepts long data type value as an argument and returns the equivalent integer… [Read More]
Java Math.negateExact() Method
Java Math.negateExact() method returns negation of the argument. If the given argument is positive, it returns the same argument with negative sign and vice versa…. [Read More]
Java Math.decrementExact() Method
Java Math.decrementExact() method returns the argument after decreasing it by one. In this tutorial, we will discuss decrementExact() method with examples. public class JavaExample {… [Read More]
Java Math.incrementExact() Method
Java Math.incrementExact() method returns the argument after increasing it by one. In this tutorial, we will discuss incrementExact() method with examples. public class JavaExample {… [Read More]