Problem 44275. area of an annulus

Solution 1322310

Submitted on 1 Nov 2017 by H M Dipu Kabir
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=1; z=2; assert(annu(d,z)<pi*1.1)

R2 = 2

2   Pass
d=1; z=2; assert(annu(d,z)>pi*0.9)

R2 = 2

3   Pass
d=10; z=2; assert(annu(d,z)<pi*1.1)

R2 = 101

4   Pass
d=10; z=2; assert(annu(d,z)>pi*0.9)

R2 = 101

5   Pass
d=100; z=20; assert(annu(d,z)<pi*110)

R2 = 10100

6   Pass
d=100; z=20; assert(annu(d,z)>pi*90)

R2 = 10100

Suggested Problems

More from this Author100

Community Treasure Hunt

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

Start Hunting!