summaryrefslogtreecommitdiff
path: root/2267/CH1/EX1.1/Ex1_1.sce
blob: fdfb00f4b320d69afcc8170412446db22f280ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Part A Chapter 1 Example 1
clc;
clear;
close;
format('v',8);
rho=13550;//kg/m^3
g=9.78;//m/s^2
h=30*10^-2;//m
//Pressure Difference
P_diff=rho*g*h;//Pa
disp("Pressure difference = "+string(P_diff)+" pa");