Each coefficient in equation $ax^2 + bx + c = 0$ is determined by throwing an ordinary die. What is the probability that the equation will have real roots?
How do I go about doing this? Any help is much appreciated thanks.
Each coefficient in equation $ax^2 + bx + c = 0$ is determined by throwing an ordinary die. What is the probability that the equation will have real roots?
How do I go about doing this? Any help is much appreciated thanks.
To have solutions, the discriminant $b^2-4ac$ must be positive. To count how many possibilities of $216$ total there are such that $b^2-4ac$ is not positive, we can just try them all. A simple Mathematica script:
r = 0;
For[a = 1, a <= 6, a++,
For[b = 1, b <= 6, b++,
For[c = 1, c <= 6, c++,
If[b^2 - 4*a*c < 0, r++];
];
];
];
r/(6^3)
Results in $\frac{173}{216}$, which is about $0.8009\ldots$ (that's the chance that the equation is not solvable).