Algorithm For Obtaining First Bracket
Algorithm For Obtaining First Bracket
IF (flow >0 AND fhigh > 0 , Then IF(flow > fhigh , Then xlow = xhigh xhigh = xhigh + x Else IF (flow < fhigh Then xhigh = xlow xlow = xlow - x ENDIF ELSEIF (flow <0 AND fhigh <0 , Then IF(flow > fhigh, Then xlow = xlow - x xhigh = xlow Else IF (flow < fhigh Then xlow = xhigh xhigh = xhigh + x ENDIF ELSEIF (flow * fhigh <0 , Then IF(flow * fmiddle<0 , Then xhigh = xmiddle else IF(fhigh * fmiddle>0 , Then xlow = xmiddle ENDIF ENDIF
IF (flow >0 AND fhigh > 0 , Then IF(flow > fhigh , Then xlow = xhigh xhigh = xhigh + x Else IF (flow < fhigh Then xhigh = xlow xlow = xlow - x ENDIF ELSEIF (flow <0 AND fhigh <0 , Then IF(flow > fhigh, Then xlow = xlow - x xhigh = xlow Else IF (flow < fhigh Then xlow = xhigh xhigh = xhigh + x ENDIF ELSEIF (flow * fhigh <0 , Then IF(flow * fmiddle<0 , Then xhigh = xmiddle else IF(fhigh * fmiddle>0 , Then xlow = xmiddle ENDIF ENDIF