summaryrefslogtreecommitdiff
path: root/3772/CH1/EX1.3/Ex1_3.sce
blob: 4cc1897893879e61950e1af7e7e4154b32e493db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Problem 1.3,Page no.10

clc;clear;
close;

//Area-1
a_1=93.75 //cm**2 
y_1=6.25 //cm

//Area-2
a_2=93.75 //cm**2 
y_2=6.25 //cm

//Area-3
a_3=375 //cm**2   
y_3=9.375 //cm

//Area-4
a_4=353.43 //cm**2
y_4=6.366 //cm


//Calculation

Y_bar=(a_1*y_1+a_2*y_2+a_3*y_3-a_4*y_4)*(a_1+a_2+a_3-a_4)**-1 //cm


//Result
printf("The centre of gravity lies at a distance of %.2f cm",Y_bar)