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
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')