# Program: How to calculate exponent of the given number?

 Description: The exponential function is f(x) = ex. 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.

 Code: ```package com.java2novice.math; public class MyExponentEx { public static void main(String a[]){ System.out.println("Exponent value of 15.0 is: "+Math.getExponent(15.0)); System.out.println("Exponent value of 22.0 is: "+Math.getExponent(22.0)); System.out.println("Exponent value of 65 is: "+Math.getExponent(65)); } } ```

 Output: ```Exponent value of 15.0 is: 3 Exponent value of 22.0 is: 4 Exponent value of 65 is: 6 ```

#### List Of All Math Class Sample Programs:

Knowledge Centre
Preemptive scheduling Vs Time slicing?
Preemptive scheduling: The highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence.

Time slicing: A task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.
Famous Quotations
It is easier to fight for one’s principles than to live up to them.