The exponential function is f(x) = e
x
. The Math.getExponent()
method is used to get the x
value of the given parameter, in which the parameter is a result of exponential function calculation.
package org.kodejava.math;
public class GetExponent {
public static void main(String[] args) {
double fx = 1.0d;
float fx1 = 1.0f;
int x = Math.getExponent(fx);
System.out.println("Exponent = " + x);
// argument in float
int xf = Math.getExponent(fx1);
System.out.println("Exponent1 = " + xf);
}
}
Latest posts by Wayan (see all)
- How do I create a table with multiple header in iText 8? - March 16, 2024
- How do I add Image to a Table in iText 8? - March 11, 2024
- How do I downgrade Android SDK emulator version? - February 12, 2024