-2,x,-1/2成等比数列
x²=(-2)(-1/2)=1,得x=1或-1
x,-1/2,y成等比数列
(-1/2)²=xy 得y=1/4 ÷ x
当x=1时,y=1/4,x+y=5/4
当x=-1时,y=-1/4,x+y= -5/4