Math.asinh()
Math.asinh() function is used to return the hyperbolic arc-sine of a number. asinh() is a static method of Math,
therefore it is always used as Math.asinh(), rather than as a method of a math object created.
Syntax:
Math.asinh(value)
Parameter Used:
1. value:It is the number whose hyperbolic arc-sine you want to know.
Return Value:
It returns the hyperbolic arc-sine of the given number.
Examples for the above function are provided below.
Example 1:
Input : Math.asinh(2) Output : 1.4436354751788103
In this example a positive integer “2” is passed as a parameter in the math.asinh() function.It returns the hyperbolic arc-sine of the passed parameter.
Example 2:
Input : Math.asinh(0) Output : 0
In this example “0” is passed as a parameter in the math.asinh() function.It returns the hyperbolic arc-sine of the passed parameter.
Example 3:
Input : Math.asinh(-1) Output : -0.881373587019543
In this example a negative integer “-1” is passed as a parameter in the math.asinh() function.It returns the hyperbolic arc-sine of the passed parameter.
-
Codes for the above function are provided below.
Program 1 :
<script type = "text/javascript" > // 2 is passed as a parameter document.write( "OUTPUT : " + Math.asinh(2)); </script> |
OUTPUT:
OUTPUT : 1.4436354751788103
Program 2:
<script type = "text/javascript" > // 0 is passed as a parameter document.write( "OUTPUT : " + Math.asinh(0)); </script> |
OUTPUT:
OUTPUT : 0
Program 3:
<script type = "text/javascript" > // 1 is passed as a parameter document.write( "OUTPUT : " + Math.asinh(1)); </script> |
OUTPUT:
OUTPUT : 0.881373587019543
Program 4:
<script type = "text/javascript" > // -1 is passed as a parameter document.write( "OUTPUT : " + Math.asinh(-1)); </script> |
OUTPUT:
OUTPUT : -0.881373587019543
leave a comment
0 Comments