$$IFTHEN/chsrsp==6 OR chsrsp==7 OR chsrsp==8 OR chsrsp==9
delt(1)=edpt(1)-stpt(1)
delt(2)=edpt(2)-stpt(2)
delt(3)=edpt(3)-stpt(3)
xpt(1)=edpt(1)
xpt(2)=edpt(2)
xpt(3)=edpt(3)
vlumax=MAXF(delt(1),delt(2),delt(3))
vlumin=MINF(delt(1),delt(2),delt(3))
$$调换出x点
IFTHEN/delt(1)==vlumax and maxadd==0
xpt(1)=stpt(1)-10*vlumin
maxadd=1
ENDIF
IFTHEN/delt(2)==vlumax and maxadd==0
xpt(2)=stpt(2)-20*vlumin
maxadd=1
ENDIF
IFTHEN/delt(3)==vlumax and maxadd==0
xpt(3)=stpt(3)-30*vlumin
maxadd=1
ENDIF
IFTHEN/delt(1)==vlumin and minadd==0
xpt(1)=stpt(1)+40*vlumax
minadd=1
ENDIF
IFTHEN/delt(2)==vlumin and minadd==0
xpt(2)=stpt(2)+50*vlumax
minadd=1
ENDIF
IFTHEN/delt(3)==vlumin and minadd==0
xpt(3)=stpt(3)+60*vlumax
minadd=1
ENDIF