MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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

46 correct solutions
73 incorrect solutions

Last solution submitted on May 13, 2015

1 player likes this problem

1 Comment