Problem 44273. Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.
Solution Stats
Problem Comments
-
2 Comments
saleh abdulmalik
on 19 Aug 2019
isnt the test suite with sq= rand and ci = rand a faulty one ?
and the last test suite, whats with the numbers 3>7? why isnt it variable testing ?
goc3
on 16 Sep 2019
No, that test suite is fine, since he uses those random values to calculate y_correct.
Also, for that other test with 3>7, he's using that to create a false logical value for y_correct.
Solution Comments
Show commentsProblem Recent Solvers1206
Suggested Problems
-
Remove all the words that end with "ain"
2396 Solvers
-
The Hitchhiker's Guide to MATLAB
3325 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
630 Solvers
-
375 Solvers
-
Find the max element of the array
1707 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!