summaryrefslogtreecommitdiff
path: root/3886/CH9/EX9.1/9_1.sce
blob: 81138e07193131babacb5247ca082ba4120ed6e6 (plain)
1
2
3
4
5
6
//Locating the centroid of T section
//Refer fig. 9.10
//due to symmetry the centroid lies on y axis
//distance of centroid from top is
ybar=(100*20*10+20*100*70)/(100*20+20*100)
printf("Centroid of T-section is on the symmetric axis at a distance of %.2f mm from the top",ybar)