已知集合={X|X^2+3X-4=0},B={X|X^2+(a+1)X-a-2=0}若A∪B=A,求实数a的值。

热心网友

A={X|X^2+3X-4=0} == A={-4,1}A∪B=A == B={X|X^2+(a+1)X-a-2=0}={-4,or/and,1}== a = 2