设过点A(-2,m)和B(m,4)的直线为y=kx+b,
与2x+y-1=0平行,即与y=-2x+1平行,则k=-2;
所求的直线方程为:y=-2x+b
过点A(-2,m)和B(m,4):
m=-2(-2)+b
4=-2m+b
解方程组得:m=-8;
设过点A(-2,m)和B(m,4)的直线为y=kx+b,
与2x+y-1=0平行,即与y=-2x+1平行,则k=-2;
所求的直线方程为:y=-2x+b
过点A(-2,m)和B(m,4):
m=-2(-2)+b
4=-2m+b
解方程组得:m=-8;