> > What is the problem that you are trying to solve? > >From the data I provided: x=c(0,5,10,15,20) y=c(16,45,77,101,125); I want to obtain the value of x when y=0.