acosh()

acosh(x) returns inverse hyperbolic cosine of x , the input number x is in radian.
import math
print(math.acosh(1))       # 0.0
print(math.acosh(1.5))     # 0.9624236501192069
print(math.acosh(5))       # 2.2924316695611777
Note that all the inputs are in radian.
For any value less than 1 , we will get ValueError
import math
print(math.acosh(0.9))   
Above code will generate error.

Inputs in degree

We can convert radian value to degree and use the same
import math
in_degree = 60
in_redian = math.radians(in_degree)
print(math.acosh(in_redian)) # 0.30604210861326536
Output
0.30604210861326536
1 radian = 57.2957914331 degree
1 degree = 0.0174533 radian

Drawing graph of acosh()

We will use Matplotlib to generate graph of acosh acosh graph
import matplotlib.pyplot as plt
x=[]
y=[]
i=1
while (i<=20):
    x.append(i)
    y.append(math.acosh(i))
    i=i+0.1
plt.plot(x,y)
plt.grid(linestyle='-',
    linewidth=0.5,color='#f1f1f1')
plt.show()

Example 1: Handling Invalid Input

import math
try:
    print(math.acosh(0.9))  # Will raise ValueError
except ValueError:
    print("Input must be greater than or equal to 1")

Example 2: Using acosh() in Physics

import math
velocity_factor = 2.0  # Hypothetical velocity factor
result = math.acosh(velocity_factor)
print(result)  # Output: 1.3169578969248166


Subhendu Mohapatra — author at plus2net
Subhendu Mohapatra

Author

🎥 Join me live on YouTube

Passionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.



Subscribe to our YouTube Channel here



plus2net.com







Python Video Tutorials
Python SQLite Video Tutorials
Python MySQL Video Tutorials
Python Tkinter Video Tutorials
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer