MATLAB: How to translate this equation in matlab, please help thanks!

equation

Suppose
L = 10 ft,
r = 1 ft,
h = 0.1620 ft.
Find the volume of the water in the trough.
equation%203.PNG

Best Answer

Pretty much like the way it looks:
L = 10 % ft

r = 1 % ft
h = 0.1620 % ft.
V = L * (0.5*pi*r^2 - r^2 * asin(h/r) - h^2 * (r^2 - h^2)^2)
Related Question