A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3schools.com/python/ref_math_cosh.asp below:

Website Navigation


Python math.cosh() Method

Python math.cosh() Method

❮ Math Methods

Example

Find the hyperbolic cosine of different numbers:

# Import math Library

import math

# Return the hyperbolic cosine of different numbers

print (math.cosh(1))

print (math.cosh(8.90))

print (math.cosh(0))

print (math.cosh(1.52))

Try it Yourself » Definition and Usage

The math.cosh() method returns the hyperbolic cosine of a number (equivalent to (exp(number) + exp(-number)) / 2).

Syntax Parameter Values Parameter Description x Required. A number to find the hyperbolic cosine of. If the value is not a number, it returns a TypeError Technical Details Return Value: A float value, representing the hyperbolic cosine of a number Python Version: 1.4

❮ Math Methods

Track your progress - it's free!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4