summaryrefslogtreecommitdiff
path: root/2132/CH3/EX3.22/Example3_22.sce
blob: 6ff9e701da879dad70d54daf464e2bfcd6a1f613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 3.22
clc;
clear;
close;
format('v',7);
//Given data :
A=2*1;//m^2
xbar=2+2/2;//meter
w=9.81;//kN/m^2
PH=w*A*xbar;//kN
disp(PH,"Horizontal component of resultant Pressure in kN : ");
PV=w*[2*2+2*2-%pi*2^2/4]*1;//kN
disp(PV,"Verticalal component of resultant Pressure in kN : ");
P=sqrt(PH^2+PV^2);//kN
disp(P,"Resultant pressure in kN : ");
theta=atand(PV/PH);//degree
disp(theta,"Direction of resultant pressure in degree : ");