blob: 0aa769523cb46f4b8a2c247d32043c05b2dfb0a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Example 5_8
clc;clear;funcprot(0);
// Given values
h_1=0.03;// m
h_2=0.07;// m
h_3=0.12;// m
g=9.81;//m/s^2
//Calculation
V_1=sqrt(2*g*h_3);// m/s
printf('The velocity at the center of the pipe,V_1=%0.2f m/s\n',V_1);
|