Page 1 sur 1

DISPG command

Publié : sam. déc. 22, 2018 12:54 pm
par compsystems
Hi, BP

After each pause, the DISPG command does not work. only until the end of the execution the external graphing window is updated, It is very important to show the image in steps, using the PAUSE command

Code : Tout sélectionner

function Midpoint()
  var A_,B_,Ax,Ay,Bx,By,MP;
  ClrIO; 
  DispG;
  A_:=point(1,2);
  Pause; DispG;
  B_:=point(-2,-2);
  Pause; DispG;
  Ax:=abscissa(A_); 
  Ay:=ordinate(A_);
  Bx:=abscissa(B_); 
  By:=ordinate(B_); 
  MP:=point((Ax+Bx)/2,(Ay+By)/2);
  return A_,B_,MP;
ffunction:;
Midpoint() [Enter]

Re: DISPG command

Publié : sam. déc. 22, 2018 1:35 pm
par parisse
Why don't you just keep the graphic window displayed?

Re: DISPG command

Publié : sam. déc. 22, 2018 1:47 pm
par compsystems
The previous example is trivial, in many cases it is desired in the classroom, for example, to show a part of a graph, then another part of the graph, instead of showing the final result.