- 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 39 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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 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
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')