Ruby program to find the hyperbolic arctangent of the given value

bookmark

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

result = Math.atanh(value);
print "Hyperbolic Arctangent is: ",result;

 


Output:

Enter value: 0.5
Hyperbolic Arc Tangent is: 0.5493061443340548