Python math.asinh()

Sriparno08's avatar
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.

  • Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
    • Includes 6 Courses
    • With Professional Certification
    • Beginner Friendly.
      75 hours
  • Learn the basics of Python 3.12, one of the most powerful, versatile, and in-demand programming languages today.
    • With Certificate
    • Beginner Friendly.
      24 hours

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

All contributors

Contribute to Docs

Learn Python on Codecademy

  • Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
    • Includes 6 Courses
    • With Professional Certification
    • Beginner Friendly.
      75 hours
  • Learn the basics of Python 3.12, one of the most powerful, versatile, and in-demand programming languages today.
    • With Certificate
    • Beginner Friendly.
      24 hours