Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

asinh() - Return the hyperbolic Sine of value as a Argument in Java

  1. import java.lang.Math.*;
  2. class Demoasinh
  3. {
  4. double asinh(double x)
  5. {
  6. return Math.log(x + Math.sqrt(x*x + 1.0));
  7. }
  8. public static void main(String args[])
  9. {
  10. Demoasinh d= new Demoasinh();
  11. double x= 3.0;
  12. double res=d.asinh(x);
  13. System.out.println(res);
  14. }
  15. }
  16.  


Output:
1.8184464592320668