3:13 pm - Friday December 17, 5655

Math Example Program for exp(double a)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
//Example program for Exponent
/**
@author:candidjava.com
@Description:program for exponent using exp() method
*/
public class expo
{
public static void main(String args[])
{
//initialize a double value
double a=1.0;
//print the exponent value using exp() method
System.out.println(Math.exp(a));
}
}

OUTPUT:
2.7182818284590455

Filed in: Core Java Tutorial

Comments are closed.