Java program for find hyperbolic sine hyperbolic cosine and hyperbolic tan of a number

Java program for find hyperbolic sine of a number

Java program for find hyperbolic cosine of a number

Java program for find hyperbolic tan of a number

Program:-

import java.util.Scanner;

class group{
public static void main(String angt[]){
Scanner data = new Scanner(System.in);
double num,num1;

System.out.println("Enter a number");
num1=data.nextDouble();

num=Math.sinh(num1);
System.out.println("hyperbolic sine Answer:"+num);

num=Math.cosh(num1);
System.out.println("hyperbolic cosine Answer:"+num);

num=Math.tanh(num1);
System.out.println("hyperbolic tan Answer:"+num);

}
}

Output:-

Enter a number
30
hyperbolic sine Answer:5.343237290762231E12
hyperbolic cosine Answer:5.343237290762231E12
hyperbolic tan Answer:1.0


<div style="background-color:#f3f3f3;width:450px;height:150px;border:1px solid #000">
Learn Java:-
Java codes

Java Programs:-
List of Java Programs
</div> 

Leave reply

Add your comments here

Back to Top