Problem 59856. Calculate the Area of the Ring
You have Ring which consist of inner and outer Circles with Radius r and R which are not given but you'll be given Hprizontal distance d which is Tangent to inner circle .
Calculate the Area of the Ring
Solution Stats
Problem Comments
- 
		2 Comments
 
		Christian Schröder
    	on 7 Apr 2024
	
	
  	The way you use assert() in your test suite is not the way that that function actually works. I would invite you to adjust your test suite, since right now just about any solution will pass, including incorrect ones.
		Dyuman Joshi
    	on 12 Jun 2024
	
	
  	Updates -
> Comparing outputs using tolerance has been fixed.
> Tolerance modified as per values used.
@Abdelrahman Adel, you should check the updated test suite for future reference.
Solution Comments
Show commentsProblem Recent Solvers20
Suggested Problems
- 
         
Maximum running product for a string of numbers
2215 Solvers
 - 
         
Back to basics 8 - Matrix Diagonals
947 Solvers
 - 
         
         
214 Solvers
 - 
         
         
362 Solvers
 - 
         
         
555 Solvers
 
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!