math.asinh()

Anonymous contributor's avatar
Anonymous contributor
Published Nov 29, 2024
Contribute to Docs

In Python, the math.asinh() method returns the inverse hyperbolic sine of a given number. If the input is not a number, it raises a TypeError.

Syntax

math.asinh(x)
  • x: The number whose inverse hyperbolic sine is to be calculated.

Example

The following example demonstrates the usage of the math.asinh() method:

import math
# Calculating the inverse hyperbolic sine of different numbers
print(math.asinh(5))
print(math.asinh(10))
print(math.asinh(15))

The above code produces the following output:

2.3124383412727525
2.99822295029797
3.4023066454805946

Codebyte Example

Run the following codebyte example to understand the use of the math.asinh() method:

Code
Output
Loading...

All contributors

Contribute to Docs

Learn Python on Codecademy