Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Friday, April 14, 2023

VELOCITY OF A PISTON

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)