Two numbers, A and B are drawn randomly and uniformly on [-R,R]. What is the probability that A*B < A+B. Your function should take one variable, R, and return the probability to within 100*eps. For example, if R = 1/2, then the probability should be:
0.560930216216329
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers30
Suggested Problems
-
2530 Solvers
-
Project Euler: Problem 16, Sums of Digits of Powers of Two
181 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
560 Solvers
-
Find out missing number from a vector of 9 elements
322 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1270 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Please update the last test case:
"Error: BITMAX has been removed. Use FLINTMAX instead."
Good problem, but the required precision is way too high. It not only prohibits brute-force methods but also multiple integrations. I was forced to find the corresponding isocurve, which was a little annoying (in other words, the formula which rendered the greatest precision).