\start83\ \comment=Program file dated 10/07/97, 14:24 \name=REV2 \file=J:\REV2.AS3 prgmFACSU Disp "ENTER FIRST" Disp "FUNCTION Y\1\" Disp "( IN QUOTES )" Disp "" Input "Y\1\=",Y\1\ ClrHome Disp "ENTER SECOND" Disp "FUNCTION Y\2\" Disp "( IN QUOTES )" Disp "" Input "Y\2\=",Y\2\ Lbl 1 ClrDraw ClrHome Disp "LOWER LIMIT" Disp "OF X" Prompt L Disp "UPPER LIMIT" Disp "OF X" Prompt U Disp "HOW MANY" Disp "INTERVALS ?" Prompt N 0\->\S (U-L)/N\->\W L\->\Xmin U\->\Xmax L+(W/2)\->\T ClrHome Disp "SCALING GRAPH" Disp "PLEASE WAIT" fMin(Y\1\,X,L,U)\->\A fMax(Y\1\,X,L,U)\->\B fMin(Y\2\,X,L,U)\->\C fMax(Y\2\,X,L,U)\->\D Y\1\(A)\->\E Y\1\(B)\->\F Y\2\(C)\->\G Y\2\(D)\->\H If abs((F)\>=\abs((H) Then F\->\Ymax Else H\->\Ymax End If abs((E)\<=\abs((G) Then E\->\Ymin Else G\->\Ymin End If abs((Ymin)>abs((Ymax) Then abs((Ymin)\->\Ymax Else \(-)\(Ymax)\->\Ymin End DispGraph For(I,1,N) Y\1\(T)\->\P Y\2\(T)\->\Q S+\pi\*abs((P\^2\-Q\^2\)*W\->\S Line(T-W/2,Q,T-W/2,P) Line(T-W/2,P,T+W/2,P) Line(T+W/2,P,T+W/2,Q) Line(T+W/2,Q,T-W/2,Q) Line(T-W/2,\(-)\Q,T-W/2,\(-)\P) Line(T-W/2,\(-)\P,T+W/2,\(-)\P) Line(T+W/2,\(-)\P,T+W/2,\(-)\Q) Line(T+W/2,\(-)\Q,T-W/2,\(-)\Q) T+W\->\T End Pause ClrHome Disp "VOL OF REV =" Disp S Disp "" Disp "RUN AGAIN ?" Disp "(1) YES" Disp "(2) NO" Input R If R=1 Goto 1 ClrHome \stop83\