Cody

Problem 44660. Perimeter of a semicircle

Solution 2252209

Submitted on 3 May 2020 by Paul Derwin
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
d = 20; y_correct = 20+(10*pi); assert(isequal(perm_semicircle(d),y_correct))

y = 51.4159

2   Pass
d = 100; y_correct = 100+(50*pi); assert(isequal(perm_semicircle(d),y_correct))

y = 257.0796

Suggested Problems

More from this Author29

Community Treasure Hunt

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

Start Hunting!