% LMex020205
% Example 2.2.5 page 25-26 in 
% Larsen & Marx (2006) Introduction to Mathematical Statistics, 4th edition
% A computer programmer is runining a subroutine that solves a general
% quadratic equation 'a*x^2 + b*x + c' Her experiment consists of choosing
% values for the three coefficients a, b, and c. Define (1) S and (2) the
% event A: Equation has two equal roots.
syms a b c x A u v w z
A = solve(a*x^2 + b*x + c);
fprintf('Membership is A is contingent upon a, b and c satisfying:\n')
a=solve(A(1)-A(2),a)
b=solve(A(1)-A(2),b)
c=solve(A(1)-A(2),c)
