{"id":24401,"date":"2021-10-14T09:19:16","date_gmt":"2021-10-14T03:49:16","guid":{"rendered":"https:\/\/python-programs.com\/?p=24401"},"modified":"2021-11-05T21:07:19","modified_gmt":"2021-11-05T15:37:19","slug":"python-program-for-cosh-function","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-cosh-function\/","title":{"rendered":"Python Program for cosh() Function"},"content":{"rendered":"

In the previous article, we have discussed Python Program for isalpha() Function<\/a>
\ncosh() Function in Python:<\/strong><\/p>\n

The math.cosh() method calculates a number’s hyperbolic cosine (equivalent to (exp(number) + exp(-number)) \/ 2).<\/p>\n

Syntax:<\/strong><\/p>\n

math.cosh(x)<\/pre>\n

Parameters:<\/strong><\/p>\n

x:<\/strong> This is Required. It is a number for which the hyperbolic cosine must be calculated. If the value is not a number, a TypeError is returned.<\/p>\n

Return Value:<\/strong><\/p>\n

Returns a float value representing a number’s hyperbolic cosine.<\/p>\n