blob: 9f5a5dd703e0f21a43bb28b97fb434f1303d8f7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Centroid of angle
//refer fig. 9.11
//the given figure can be divided into two rectangles
A1=150*12 //mm^2
A2=(200-12)*12 //mm^2
//total area
A=A1+A2 //mm^2
xbar=(1800*75+2256*6)/(4056) //mm
ybar=(1800*6+2256*106)/(4056) //mm
printf("The centroid is at \nxbar=%.2f mm\nybar=%.2f mm ",xbar,ybar)
|