How to get the hyperbolic sine of a double value in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {
 
    public static void main(String[] args) {
        
        System.out.println("Math.sinh(1) = " + Math.sinh(1));
        System.out.println("Math.sinh(0) = " + Math.sinh(0));
        System.out.println("Math.sinh(-1) = " + Math.sinh(-1));
        System.out.println("Math.sinh(-0) = " + Math.sinh(-0));
        System.out.println("Math.sinh(Math.PI / 2) = " + Math.sinh(Math.PI / 2));
        System.out.println("Math.sinh(Math.PI / 6) = " + Math.sinh(Math.PI / 6));
        System.out.println("Math.sinh(Math.PI / 180) = " + Math.sinh(Math.PI / 180));
        System.out.println("Math.sinh(-2 * Math.PI / 4) = " + Math.sinh(-2 * Math.PI / 4));
        System.out.println("Math.sinh(log(2.0)) = " + Math.sinh(Math.log(2.0)));
    }
}
 
/*
run:

Math.sinh(1) = 1.1752011936438014
Math.sinh(0) = 0.0
Math.sinh(-1) = -1.1752011936438014
Math.sinh(-0) = 0.0
Math.sinh(Math.PI / 2) = 2.3012989023072947
Math.sinh(Math.PI / 6) = 0.5478534738880397
Math.sinh(Math.PI / 180) = 0.01745417862959511
Math.sinh(-2 * Math.PI / 4) = -2.3012989023072947
Math.sinh(log(2.0)) = 0.75
 
*/

 



answered Sep 10, 2016 by avibootz

Related questions

1 answer 119 views
1 answer 169 views
1 answer 274 views
...