blob: 2ea3950a6e0d2ce4a60e4c28b309146ba41612be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//example 2.3
//page 53
clc; funcprot(0);
//initialisation of variable
Gamma=9.81;
S=0.85;//specific gravity
P1=150;
h1=0.8;//height
h2=2;
P2=P1+Gamma*S*h1;
P3=P2+Gamma*h2;
disp(P3,"pressure at the bottom (kN/m^2)");
clear
|