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

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

The math.tanh() method returns a number’s hyperbolic tangent.<\/p>\n

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

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

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

x:<\/strong> This is Required. It is a number for which the hyperbolic tangent 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 tangent.<\/p>\n