If the difference of the roots is equal to the product of the roots of the equation 2x2−(a+1)x+(a−1)=0 then the value of a is?