Cody

Problem 2999. Billiards

Solution 3629838

Submitted on 12 Nov 2020 by Akrem Hadji
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
x = 2.438; y_correct = 910.502; y_calc = Volume_Rack(x); assert(abs((y_correct - y_calc) / y_correct) < tolerance)

2   Pass
x = 2.25; y_correct = 715.694; y_calc = Volume_Rack(x); assert(abs((y_correct - y_calc) / y_correct) < tolerance)

3   Pass
x = 2; y_correct = 502.659; y_calc = Volume_Rack(x); assert(abs((y_correct - y_calc) / y_correct) < tolerance)

Suggested Problems

Community Treasure Hunt

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

Start Hunting!