import math as m
r=float(input("Enter the radius of the crankshaft = "))
l=float(input("Enter the length of connecting rod = "))
print("Enter the crankshaft angle")
A=float(input(""))
N=float(input("Enter the number of revolutions per minute = "))
V=2*3.14*N*r*(m.sin(A)+(r/l)*(m.sin(A))*(m.cos(A))+(1/2)*(r/(l**3)*((m.sin(A))**3)*m.cos(A)))
print("The velocity of the piston =",V)