1 2 3 4 5 6 7 8
clc //given T=48//teeth pd=4//diametral pitch D=T/pd//pitch diameter p=%pi/pd//the circular pitch printf("\nThe pitch diameter = %.f in\nThe circular pitch = %.4f in\n",D,p)