home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / education / praktikum / Beispiele / FctGraphs / !ReadMe (.svg) < prev    next >
Acorn/RISC-OS Draw  |  1994-07-08  |  4KB  |  858x279  |  8-bit (99 colors)
Labels: black | darkness
OCR: Function Graphs This example shows you how to create graphs (or tables) of functions. Praktikumcannot generate graphs of functions automatically. You must write your function in dependence of a variable, say and specify which point(s) to compute and display by setting In most cases you will want to set the points at equal distances with respect to the x axis. The solution is to define as a function type variable (see the accompanying project file - variable x) and to use theDX(n) function to generate a table of numbers from onallYou can now re- set the starting point by adding (subtracting) a number to it and change the distance by multi- plying the/DX function by the desired distance. A more elaborate version of this principle is shown by the variableariaandy_varia You can control the points generated by variasimply by setting the variablesart(first point), ende (last point) and chritt(distance between two points). Finally, to render certain functions, it may be useful to generate x co-ordinates which are not equidistant. For example, the table generated bynversmay be better suited for invers