function zval = findx(xin) zval=1-gety(xin);