{"id":25409,"date":"2021-11-11T09:42:20","date_gmt":"2021-11-11T04:12:20","guid":{"rendered":"https:\/\/python-programs.com\/?p=25409"},"modified":"2021-11-11T09:42:20","modified_gmt":"2021-11-11T04:12:20","slug":"python-cmath-cosh-method-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-cmath-cosh-method-with-examples\/","title":{"rendered":"Python cmath.cosh() Method with Examples"},"content":{"rendered":"

cmath.cosh() Method in Python:<\/strong><\/p>\n

The cmath.cosh() method returns the given complex number’s hyperbolic cosine.<\/p>\n

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

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

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

x:<\/strong> This is Required. It is a\u00a0number for calculating the hyperbolic cosine of<\/p>\n

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

Returns a complex value that represents the complex number’s hyperbolic cosine.<\/p>\n

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

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

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

Given Complex Number = 3+4j<\/pre>\n

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

The given complex number's (3+4j) hyperbolic cosine value = \r\n(-6.580663040551157-7.581552742746545j)<\/pre>\n

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

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

Given realpart = 5\r\nGiven imaginary part = 2<\/pre>\n

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

The given complex number's (5+2j) hyperbolic cosine value = \r\n(-30.88223531891674+67.47278844058752j)<\/pre>\n

Note:<\/strong> The above input format is for dynamic input.<\/p>\n

cmath.cosh() Method with Examples in Python<\/h2>\n