Ruby program to find the hyperbolic sine of given radian value

bookmark

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

result = Math.sinh(radian);
print "Hyperbolic sine is: ",result;

 


Output:

Enter value in radian: 2.234
Hyperbolic sine is: 4.615020433265568