//Example 9_8 clc(); clear; //To find out the speed by which water flows from spigot //From the Bernoulis Equation P1+(p*g*h)=P2+(0.5*p*V2^2)+(p*g*h2) printf(" Solving from the Bernoulis equation V2=sqrt(2*g*(h1-h2))")