Problem 2999. Billiards
Considering there are 15 pool balls, (b), in the game of pool, and given a radius, (r). What is the volume, (V), of a rack in the game of pool?
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
Show commentsProblem Recent Solvers45
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5526 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
2157 Solvers
-
580 Solvers
-
solve for y that is half as much as three less than one tenth of x
86 Solvers
-
Matlab Basics II - Count rows in a matrix
363 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!