The Bernoulli equation is valid for steady, inviscid, incompressible flows with constant acceleration of gravity. Consider flow on a planet where the acceleration of gravity varies with height so that g g0 cz, where g0 and c are constants. Integrate F ma along a streamline to obtain the equivalent of the Bernoulli equation for this flow.

BE 1500 – Fall 2016 HW 4 Due: 9/29/16 (1:30 P.M.) 1. Write a function file that determines the following sum (for all odd n from 1 to 11) using a for loop. The starting point, ending point, and increment should be input to the function file. 2n+2 y=Σ n−2 function [sum1]=HW5P1(a,b,c) sum1=0; for i=a:b:c sum1=sum1+(2^(i+2))/(i-2); end 2 points 0.25 for correct function header 0.25 for comments 0.5 for initializing sum 0.5 for correct for statement 0.5 for correct sum1 statement 2. The geometric mean of a set of number1 x througn x is defined as the nth root of the prod