Page 1 of 1

Develop a mathematical version of the following code and solve for the first two elements of h and v: The M-file can be

Posted: Fri Mar 04, 2022 10:08 am
by answerhappygod
Develop A Mathematical Version Of The Following Code And Solve For The First Two Elements Of H And V The M File Can Be 1
Develop A Mathematical Version Of The Following Code And Solve For The First Two Elements Of H And V The M File Can Be 1 (36.37 KiB) Viewed 40 times
Develop a mathematical version of the following code and solve for the first two elements of h and v: The M-file can be written as function cylinder (r, L, plot_title) % volume of horizontal cylinder & inputs: r = radius & L = length % plot_title = string holding plot title h = linspace (0,2*r, 100); V = (r^2*acos ((r-h)./r)-(r-h). *sqrt(2*r*h-h.^2)) *L; figure, plot (h, V) This function can be run to generate the plot, >> cylinder (3,5,... 'Volume versus depth for horizontal cylindrical tank')