c file: scrv1.for subroutine scrv1 i (x1, y1, x2, y2, m a, b) c Author : Amare Retta c + + + PURPOSE + + + c Program to compute parameters for an s-curve. c + + + ARGUMENT DECLARATIONS + + + real a,b,x1,x2,y1,y2 c + + + LOCAL VARIABLES + + + real xx1,xx2 real xx xx1=abs(x1) xx2=abs(x2) c write(*,*) 'scrv1',(y1-xx1) xx = alog(xx1/y1-xx1) c write(*,*) 'scrv2',(y2-xx2),(xx2-xx1) b=(xx-alog(xx2/y2-xx2))/(xx2-xx1) a=xx+b*xx1 c write(21,900) c 900 format(/,'scrv1') c write(21,901) c 901 format('a,b,xx1,xx2,y1,y2') c write(21,*)a,b,xx1,xx2,y1,y2 return end