Cody

Problem 45345. Grazing-01

Solution 2134551

Submitted on 20 Feb 2020 by Asif Newaz
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_01(10,20,5)-58.9049)<0.001)

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

3   Pass
assert(abs(grazing_01(5,25,8)-157.8650)<0.001)

4   Pass
assert(abs(grazing_01(20,20,20)- 942.4778)<0.001)

5   Pass
assert(abs(grazing_01(10,20,0)-0)<0.001)

6   Pass
assert(abs(grazing_01(12,20,25)-1624.9888)<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!