//Moment of inertia //refer fig.9.41 sumAiyi=250*10*5+2*40*10*(10+20)+40*10*(10+5)+40*10*255+250*10*(10+125) //mm^3 A=2*250*10+40*10*4 //mm^2 ybar=sumAiyi/A Ixx=((250*10^3)/12)+(250*10*(73.03-5)^2)+(((10*40^3)/12)+40*10*(73.03-30)^2)*2+((40*10^3)/12)+40*10*(73.03-15)^2+((10*250^3)/12)+250*10*(73.03-135)^2+((40*10^3)/12)+40*10*(73.03-255)^2 //mm^4 printf("Ixx=%.2d mm^4",Ixx)