Cody

Problem 45346. Grazing-02

Solution 2208523

Submitted on 13 Apr 2020 by Binbin Qi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(abs(grazing_02(10,20,5)-58.9049)<0.001)

2   Pass
assert(abs(grazing_02(5,25,2)-9.4248)<0.001)

3   Pass
assert(abs(grazing_02(20,20,20)- 942.4778)<0.001)

4   Pass
assert(abs(grazing_02(10,20,0)-0)<0.001)

5   Pass
assert(abs(grazing_02(12,20,25)-1624.9888)<0.001)

6   Pass
assert(abs(grazing_02(10,20,50)- 7512.2022)<0.001)

Suggested Problems

More from this Author149

Community Treasure Hunt

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

Start Hunting!