Ruby program to find the arcsine of the given value

bookmark

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

result = Math.asin(value);
print "Arc Sine is: ",result;

 


Output:

Enter value: 0.5
Arc Sine is: 0.5235987755982989