summaryrefslogtreecommitdiff
path: root/3648/CH9/EX9.9/Ex9_9.sce
blob: 1a90f66065145d142d5c5c59ca729213ae096793 (plain)
1
2
3
4
5
6
7
8
9
10

//Example 9_9
clc();
clear;
//To compare the pressures at A and at B
p=1000    //Units in Kg/Meter^3
va=0.2   //units in meters/sec
vb=2   //units in meters/sec
Pa_Pb=-0.5*p*(va^2-vb^2)    //units in Pa
printf("Pressure Difference at A and B is Pa-Pb=%d Pa therefore pressure at A is High than at B",Pa_Pb)