function fnewt = fnewt(x) fnewt =2-x^2;