Cody

Problem 45461. Box

Solution 3193206

Submitted on 13 Oct 2020 by A C
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)

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

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

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!