Ruby program to find the hyperbolic arccosine of the given value

bookmark

print "Enter value: ";
value = gets.chomp.to_f;  

result = Math.acosh(value);
print "Hyperbolic Arccosine is: ",result;

 


Output:

Enter value: 1.4
Hyperbolic Arccosine is: 0.867014726490565