How to find the hyperbolic cosine of an angle in Java

1 Answer

0 votes
class Program {
    public static void main(String[] args) {
        double degree = 60;
 
        double radians = Math.toRadians(degree);
 
        System.out.print("Hyperbolic cosine: " + Math.cosh(radians));
    }
}
 
 
 
/*
run:
 
Hyperbolic cosine: 1.600286857702386
 
*/

 



answered Mar 6, 2024 by avibootz

Related questions

1 answer 140 views
1 answer 137 views
1 answer 149 views
1 answer 114 views
1 answer 269 views
...