function fg=evaluateSingleDiffZero(cax,cay,w,x) globalPar=[x(1:4) 0 0]; fv=fitSingleZero(globalPar,cax); fg=(fv-cay).*w; end