Graphing In Programs

for Casio Graphic Calculators (6300/7000/7700/9700 & Compatibles)

There are two display modes : text, and graph. Text mode is where all the calculations usually appear. When the display symbol has been used you can flip between modes using the G<->T button.

All graphic commands, Plot, Line, Graph etc. change the values stored in X and Y to the coordinates of the last point plotted. Using polar graphs also changes r and theta, and parametric graphs change T. So don't use these variables forsomething else while using these commands.

Different models have different screen sizes, so if you want to make a program behave the same on all models then take a note of the screen sizes on the History page.

In a program, first check the graph mode (rect, polar, parametric). After a Graph command if the program has any more commands after this and you want to study the completed graph you must put in a display symbol to pause it. E.g. Graph Y=sin X_

With the Plot command there are extra considerations.

Example :
	Lbl 0
	Range 0,1,1,0,1,1       ; sets x range from 0-1
			          with scale 1 and y-range from 0-1, scale 1
	20->A                   ; used as a counter for loop
	Lbl 1
	Plot Ran#, Ran#         ; plot random point, coords between 0 and 1,
	Dsz A  :  Goto 1        ; decrement and repeat loop
	Plot X,Y_               ; replot the last point but pause to display
	"ENTER"
	"1 RESTART"
	"2 QUIT"?->B '
	B=1=>Goto 0
This example plots 20 random points and then replots and pauses on the last one so you can study the whole picture. But when you pause a plot statement it also displays the coordinates of that point and so obscures part of the picture. So how do you pause without obscuring ? The answer is display something in text mode and then flip using the G<->T button. So the program could be rewritten with the display symbol after the "ENTER" statement instead.

Note that the same Range parameters will look different on different models due to screen size.

Now a couple of examples to show what can be done.

Example :
	Range -4.3,4.3,0,-3.1,3.1,0
	Lbl 1
	?->A
	Graph Y=AX^2_
	Goto 1
This asks for the coefficient in AX2 and draws the graph allowing you to compare different values of A.
Example :
	Range 0,1,0,-2,10,0
	Plot 0.5,5_
	Lbl 2
	Plot X,Y_
	Line
	Goto 2
This is like a sketch pad. Use arrow keys to move the point. Press 'EXE' to plot a point. Then lines are drawn from one plotted point to the next as you go along.
(c) Roy F. A. Maclean 5th December 1997, updated 5th June 1999
rfamgm at gmail
http://www.spiderpixel.co.uk/caspro