% LMex020207_4th.m
% Example 2.2.7 page 28 in 
% Larsen & Marx (2006) Introduction to Mathematical Statistics, 4th edition
% Written by Eugene.Gallagher@umb.edu 1/14/11 41
% http://alpha.es.umb.edu/faculty/edg/files/edgwebp.html
% Let A be the set of x's for which x^2+2*x=8; let B be the set for which
% x^2+x=6. Find A^B and AUB. This will be an application of Matlab's
% symbolic math equation solver
syms A B x
A=solve(x^2+2*x-8)
B=solve(x^2+x-6)
AintB=solve(x^2+2*x-8,x^2+x-6)
AunionB=unique([A B])