Slider crank linkage mechanism kinematic analysis

Kinematic analysis of a slider crank

Change the crank position theta1 and compute the values of theta2 and s