Problem 2999. Billiards
Solution Stats
Problem Comments
-
5 Comments
You need to fix some issues: you only have one test working, you are rounding to 3 decimal places, and the last test case is false (it should give 502.655)
also you shouldn't use isequal when you use pi.
The test suite has been updated.
The variable tolerance has not been set.
Updated.
Solution Comments
-
1 Comment
The value of pi is wrong, but so it is the test suite.
Problem Recent Solvers37
Suggested Problems
-
3006 Solvers
-
2003 Solvers
-
Who knows the last digit of pi?
598 Solvers
-
Return unique values without sorting
712 Solvers
-
140 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!