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

1 view (last 30 days)
Suppose
L = 10 ft,
r = 1 ft,
h = 0.1620 ft.
Find the volume of the water in the trough.
equation%203.PNG

Accepted Answer

Image Analyst
Image Analyst on 5 May 2019
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)
  1 Comment
Noriel Balili
Noriel Balili on 5 May 2019
Hello thank you for the fast answer! i did the same thing but it came with an error. i forgot a few things in there and now i fixed it. thank you for the help!

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!