Python asinh

The Python asinh function calculates the Trigonometric Hyperbolic Arc Sine for the specified expression or number. The Python asinh function also called the inverse of hyperbolic sine.

The syntax of the math asinh Function in Python is

math.asinh(number);

Number: A valid numerical expression to find Hyperbolic Arc Sine value.

  • If the number argument is a positive or negative number, the asinh function returns the hyperbolic Arc Sine value.
  • If it is not a number, the asinh functions return TypeError.

Python asinh Function Example

The Python asinh Function allows you to find the Trigonometric Hyperbolic Arc Sine of the numeric values. In this asinh example, we will find the Hyperbolic Arc Sine values of different data types.

# Python asinh Function

import math

Tup = (10, 20, 30, -40 , 50)
Lis = [-15, 25, -32.5, -45.95 , 15.64]

print('Hyperbolic Arc Sine of Positive Number = %.2f' %math.asinh(10))
print('Hyperbolic Arc Sine of Negative Number = %.2f' %math.asinh(-20))

print('Hyperbolic Arc Sine of Tuple Item = %.2f' %math.asinh(Tup[3]))
print('Hyperbolic Arc Sine of List Item = %.2f' %math.asinh(Lis[2]))

print('Hyperbolic Arc Sine of Multiple Numbers = %.2f' %math.asinh(22 + 49 - 27))

print('Hyperbolic Arc Sine of String Value = ', math.asinh('Hello'))
Python ASINH Function

First, we used the asinh Function directly on both the Positive integer and negative integer. The following statements find the hyperbolic arc Sine of the corresponding values.

print('Hyperbolic Arc Sine of Positive Number = %.2f' %math.asinh(10))
print('Hyperbolic Arc Sine of Negative Number = %.2f' %math.asinh(-20))

Next, We used the asinh Function on Tuple and List items. As you see, the Math function is working perfectly on them.

print('Hyperbolic Arc Sine of Tuple Item = %.2f' %math.asinh(Tup[3]))
print('Hyperbolic Arc Sine of List Item = %.2f' %math.asinh(Lis[2]))

Next, We used the asinh Function on multiple values.

print('Hyperbolic Arc Sine of Multiple Numbers = %.2f' %math.asinh(22 + 49 - 27))

Within the last statement, we tried asinh Function on the string value, and it returns TypeError as output.

print('Hyperbolic Arc Sine of String Value = ', math.asinh('Hello'))

Please refer to the Python sin Function to understand the Python Sine Function.