Problem 2999. Billiards
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
Sylvain
on 11 Feb 2015
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)
Philemon Chavrier
on 11 Feb 2015
also you shouldn't use isequal when you use pi.
goc3
on 29 Sep 2020
The test suite has been updated.
ChrisR
on 2 Nov 2021
The variable tolerance has not been set.
Dyuman Joshi
on 2 Nov 2021
Updated.
Solution Comments
-
1 Comment
Rafael S.T. Vieira
on 16 Sep 2020
The value of pi is wrong, but so it is the test suite.
Problem Recent Solvers41
Suggested Problems
-
6522 Solvers
-
Replace NaNs with the number that appears to its left in the row.
2586 Solvers
-
Program an exclusive OR operation with logical operators
690 Solvers
-
Matlab Basics - Assigning Variables
182 Solvers
-
Back to Basics - Find no. of elements in a matrix?
283 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!