2:55 am - Tuesday April 23, 2019

Math Example Program for cosh(double x)

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
//Math Example Program for cosh(double x)
/**
 * @author:Candidjava.com
 * @description:calculate the hyperbolic cosine of a double value
 */
import java.lang.*;
public class Cosh {
	public static void main(String[] args) {
		double x = 5.0d;
		double d = Math.cosh(x);
		// calculates the hyperbolic cosine of a double value
		System.out.println("d = " + d);
	}
}

Output:

d = 74.20994852478785

Filed in: Z-A All Java Codes

Comments are closed.