SINH
SINH is an SQL mathematical function that computes the hyperbolic sine of a specified floating point value.
SINH(X)This function takes a single argument ‘X’ and returns the hyperbolic sine of ‘X’. ‘X’ is a numeric value expressed in radians.
- x: Numeric value for which the hyperbolic sine is to be calculated.
Example
Output
Explanation
In the code, the SINH function is used to return the hyperbolic sine of a number. The number used in this example is 1, and the output is approximately 1.175, which is the hyperbolic sine of 1.
SINH(double precision) RETURNS double precision
- double precision: Refers to a binary floating-point number which occupies 8 bytes and provides a precision of at least 15 digits. This is the argument passed to the SINH function. The SINH function returns the hyperbolic sine of this input value.
Example
Output
Explanation
The SINH
function returns the hyperbolic sine of a number. In this example, the SINH
function returns 0
as the hyperbolic sine of 0
is 0
.
SINH( float_expression )
- float_expression: This parameter refers to an expression of type float or of a type that can implicitly convert to float. Its values must be from -1e+300 to 1e+300 inclusive.
Example
Output
HyperbolicSine |
---|
1.1752012 |
Explanation
The SINH
function in SQL Server returns the hyperbolic sine of a specified number. In the above example, the hyperbolic sine of 1 is approximately 1.1752012.
SINH(n NUMBER) RETURN NUMBER;
- n number: This parameter refers to the numeric value for which the Hyperbolic Sine value is to be calculated. This is a compulsory parameter that the user needs to provide when calling the SINH function in Oracle.
Example
Output
Explanation
In the example SQL statement, the SINH
function is used with the argument of 1. This will return the hyperbolic sine of 1, which is approximately 1.175201194. The SINH
function in Oracle calculates the hyperbolic sine of a given number.