home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
pocketbk
/
utilsf
/
graph2
/
graph.doc
next >
Wrap
Text File
|
1993-06-14
|
12KB
|
210 lines
GRAPH - Graph Plotting Application For the Psion Series 3
---------------------------------------------------------
By Gregory Essex-Lopresti
24 Paxton Close
Matlock
Derbyshire
DE4 3TD
ba95001@black.ox.ac.uk
essexlgj@ibm18.balliol.ox.ac.uk
Version 2.12 User Instructions
------------------------------
---------------------------------------------------------------------------
Outline: GRAPH was originally written shortly after the beginning of my
second term at university. It's purpose was to allow me to quickly
check the results of my physics practicals without the need to
walk ALL the way over to the computer room and print out a graph
on paper. Since then, I have expanded GRAPH to it's present form,
motivated by a wish for it to do more and by a wish to ensure it
is better to a program a friend wrote which is basically a rip off
of it. Of course GRAPH, the original program, is still infinitely
better.
Facilities: The program is essentially a collection of mathematical tools,
and so I will describe the various functions it offers under
the titles of their menu options. Menu's are, as usual,
obtained by pressing the MENU key. On line help is available
by pressing the HELP key.
---------------------------------------------------------------------------
GRAPHs - Ranges: There are three graph plotting areas, or screens, in my
graph plotting program. Each of these is independant of
the other, and two of them are half screen size and the
other full screen size. The Ranges option allows you to
specify firstly which graph area you wish to adjust the
ranges on, and then to secondly edit the current ranges
on that graph area to your new settings. You will notice
that Q and Y are used instead of the conventional X and Y.
This is to avoid confusion both on your part and the
program's part when dealing with mathematical operators
which contain the letter X (currently only EXP()).
Once you have edited the current ranges, you press enter
and GRAPH will proceed to re-plot the graph last plotted
on the chosen graph area with the new range settings. You
can press ESCape to abandon this plotting, as you can
equally press escape to abandon changing the ranges before
you press enter.
Functions: Selecting this menu option will allow you to enter a
function to be plotted in the graph area of your choice.
Functions should be specified using the standard EVAL
format (the same as the Calculator), using Q as the
variable. eg: Y = F(Q) = exp(Q)+q**2
Again, pressing ESCape will cancel the function, and
pressing enter will instruct GRAPH to start plotting
this function on the selected graph area. Note that
existing plots are not cleared when this happens; this
is so that you can compare two or more plots of functions
together on the same graph plotting area.
Show: This menu option allows you to flip essentially between the
two half screen graph areas and the full screen graph area
(areas 1&2 and 3). This can also be achieved by pressing
simply 1 2 or 3 instead of using the menus.
Clear: Use this option to clear and re-plot the most recently
plotted function on any or all of the graph plotting areas.
This option is used to `start afresh' on a graph area.
Arrow: I'm particularly proud of this option. It allows you to
guide a cursor on either of the two half screen graph areas
and it displays the approximate Q,Y coordinate of the
`cursor'. Use this option to find approximate interceptions
of funcions with the axies or other functions etc...
Pressing ESCape, as ever, abandons this.
Info: This option lists the current ranges and functions of the
three graph plotting areas. Press any key to flip through
the three sets of information.
Points - Edit Points: Before you can do anything in this menu section, you
need to have entered some data; some points. This
option allows you to do this. You will be prompted
for a file name, and by default the file will be
stored in the \opd\ directory of your default drive.
This can be changed using the standard Psion
techniques detailed in the user manual.
If you enter the name of an existing file of data
points, you will be asked if you wish to edit them.
If you answer yes, you can now edit and or delete
any or all of the existing data points in that file.
Pressing ESCape will bring you to the next stage; the
stage you would have moved directly to if you had
answered no just now. You can now enter further data
points or press ESCape to finish. Note that pressing
ESCape whilst editing existing points will often
result in their relative order being changed; this
has no effect on the actual data. The format is as
follows:
Q Coord: The `X' coordinate of your data point
Y Coord: The `Y' coordinate of your data point
Err in Y Coord: The estimated error in the Y Coord
Plot Points: This option is used to plot a file of data points
(obviously). You can choose to use the current range
settings on the graph area you choose to plot the
points on, or select `auto' ranging. Also you can
specify if you want the error in the Y coordinates
represented proportionately or not. Finally you can
specify if you want the function currently residing
in the graph area selected to be plotted or not. This
you may choose to do if, for example, you have
programmed in a graph fit on the file of data points
and wish to see how good the fit looks.
Polynomial GRAPH Fit: You can ask GRAPH to attempt to fit
polynomial functions of up to degree 8 to
a file of data points. Note that only fits
of up to degree 5 can be plotted; you will
be asked if you wish to plot the fitted
polynomial and if so which graph area
you wish to put the resulting function in.
When plotting points (see above) you can
then opt to have the function plotted along
with the data points.
Linear GRAPH Fit: This is similar to the previous option, except
that you get all sorts of statistical data
on the fit that the Polynomial fit doesn't offer.
Evaluate: Use this option to EVALUATE a function which is either
from one of the three graph area or entered specifically
by you.
Maths - Runge-Kutta: This option will perform numerical inte