Mencari Peluang dengan Diagram Venn

Probability Venn Diagram with proportionally-sized regions. Control P(A), P(B) and P(AnB)
The orange area representing P(AnB) is dependent on the distance between the centres of the circles. But this distance is the solution of an equation that cannot be solved analytically, so the Newton-Raphson numerical method runs in the background with four iterations. Constraints: A golden rectangle represents the universal set. In order that the circles remain within the rectangle, P(A) ≤ 0.48 and P(B) ≤ 0.48. There are also dynamic constraints on P(AnB) to keep the circles within the rectangle.