PLSQL | COSH Function Last Updated : 16 Feb, 2021 Comments Improve Suggest changes Like Article Like Report The PLSQL COSH function is used to return the hyperbolic cosine of a numeric value. The COSH function accepts one parameter which is the number whose hyperbolic cosine needs to be calculated. The COSH function returns a value of the numeric data type. This function takes as an argument any numeric data type as well as any non-numeric data type that can be implicitly converted to a numeric data type. If in any case, the argument is BINARY_FLOAT, then the COSH function returns BINARY_DOUBLE. Syntax: COSH(number) Parameters Used: number - It is used to specify the number whose hyperbolic cosine needs to be calculated. Return Value: The COSH function in PLSQL returns a numeric value. Supported Versions of Oracle/PLSQL: Oracle 12cOracle 11gOracle 10gOracle 9iOracle 8i Example-1: Using positive numeric value as an argument in the COSH function. DECLARE Test_Number1 number := 0.5; BEGIN dbms_output.put_line(COSH(Test_Number1)); END; Output: 1.12762596520638078522622516140267201257 Example-2: Using 0 value as an argument in the COSH function. DECLARE Test_Number1 number := 0; BEGIN dbms_output.put_line(COSH(Test_Number1)); END; Output: 1 Example-3: Using 1 value as an argument in the COSH function. DECLARE Test_Number1 number := 1; BEGIN dbms_output.put_line(COSH(Test_Number1)); END; Output: 1.5430806348152437784779056207570616826 Example-4: Using a negative value as an argument in the COSH function. DECLARE Test_Number1 number := -5; BEGIN dbms_output.put_line(COSH(Test_Number1)); END; Output: 74.20994852478784444410610804448771402388 Example-5: Using COSH function with select query and returning the value in degrees. select (COSH(5)) * 57.29 FROM dual; Output: 4251.48795 Using the conversion formula of 1 radian = 57.29 degrees. Advantages: The COSH function accepts any numeric datatype as well as any non-numeric datatype as an argument that can be implicitly converted to a numeric datatype. Comment More infoAdvertise with us Next Article PLSQL | COSH Function S Shubrodeep Banerjee Follow Improve Article Tags : SQL SQL-PL/SQL Similar Reads PLSQL | COS Function The PLSQL COS function is used to return the cosine of a numeric value. The COS function accepts one parameter which is the number whose cosine needs to be calculated. The COS function returns a value of the numeric data type. This function takes as an argument any numeric data type as well as any n 2 min read PLSQL | ACOS Function The PLSQL ACOS function is used to return the arc cosine of a number. The ACOS function only one parameter which is a number and the argument number must be in the range of -1 to 1, and the function returns a value in the range of 0 to pi, expressed in radians. This function takes as an argument any 2 min read PLSQL | ASIN Function The PLSQL ASIN function is used to return the arc sine of a number. The ASIN function only one parameter which is a number and the argument number must be in the range of -1 to 1, and the function returns a value in the range of -pi/2 to pi/2, expressed in radians. This function takes as an argument 2 min read PLSQL | CEIL Function The CEIL is an inbuilt function in PLSQL which is used to return the smallest integer value which is either greater than or equal to the given input number. This input number might be in the fraction or in the whole number. Syntax: CEIL(number) Parameters Used: Here the parameter number is the input 2 min read PL/SQL Functions PL/SQL functions are reusable blocks of code that can be used to perform specific tasks. They are similar to procedures but must always return a value. A function in PL/SQL contains:Function Header: The function header includes the function name and an optional parameter list. It is the first part o 4 min read MySQL | CONV( ) Function The MySQL CONV() function is used for converting a number from one numeric base system to another. The value returned by the CONV() function is in the form of a string value. It accepts three parameters which are the value to be converted, the current numeric base system and the numeric base system 2 min read PLSQL | LN Function The LN function is an inbuilt function in PLSQL which is used to return the natural logarithm of a given input number. The natural logarithm of a number is the logarithm of that number to the base e, where e is the mathematical constant approximately equal to 2.718. This is written using the notatio 2 min read PLSQL | TAN Function The TAN function is an inbuilt function in PLSQL which is used to return the tangent of an input number. The tangent is a trigonometric function of an angle and here the input number is the angle expressed in the form of radians. 180 degree is equal to pi radian. Syntax: TAN( number ) Parameters Use 1 min read PLSQL | LOG Function The PLSQL LOG function is used for returning the logarithm of n base m. The LOG function accepts two parameters which are used to calculate the logarithmic value. The LOG function returns a value of the numeric data type. This function takes as an argument any numeric data type as well as any non-nu 2 min read COT() Function in MySQL COT() function : This function in MySQL is used to return the cotangent of a specified number. If the specified number is 0, an error or NULL will be returned. In a right triangle, the cotangent of an angle is the length of it's adjacent side divided by the length of the opposite side. Similarly, th 1 min read Like