Cody

Problem 45461. Box

Solution 3479194

Submitted on 30 Oct 2020 at 13:39 by kaatil_coder
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 = 9; y_correct = 140.2961; assert(abs(vol_to_diag(x) - y_correct) < 1e-4)

y = 140.2961

2   Pass
x = 3; y_correct = 5.1962; assert(abs(vol_to_diag(x) - y_correct) < 1e-4)

y = 5.1962

3   Pass
x = 2; y_correct = 1.5396; assert(abs(vol_to_diag(x) - y_correct) < 1e-4)

y = 1.5396

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!