blob: 9119d134bec3f0166c73411b13f1882035106c4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Example 4.6
clc;
clear;
close;
format('v',8);
//Given data :
S=1;//sp. gravity
w=1000;//kg/m^3
h2=50/1000;//m
h1=200/1000;//m
pa=w*S*(h1-h2);//kg/m^2
disp(pa,"Pressure in the pipe in kg/m^2: ");
disp(pa*9.81,"Pressure in the pipe in Pa: ");
|