exp() Method in java
Java Programming Language Number Class in java (Article) Number Class in java (Program)
780Program:
public class WrapperexpMethod { public static void main(String args[]) { double x = 12.635; double y = 3.76; System.out.printf("The value of e is %.4f%n", Math.E); System.out.printf("exp(%.3f) is %.3f%n", x, Math.exp(x)); } } /* Returns the base of the natural logarithms, e, to the power of the argument. */
Output:
The value of e is 2.7183 exp(12.635) is 307121.895 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.