home *** CD-ROM | disk | FTP | other *** search
- MATHPAINT V1.0 Benoit Jobin april/88 (C)Copyright 1988
-
- ****************************************************************************
-
- This program is not public domain. Permision is
- granted to freely distribute this program through the BBS systems. Charges
- for such distribution are NOT permitted.
-
- ****************************************************************************
-
- MathPaint 1.0
- USER's DOCUMENTATION.
- ---------------------
-
- Introduction:
- -------------
-
- This program enables you to plot mathematical curves in
- two dimensions. It can also evaluate equations and return
- their numerical values. This software can be very useful
- in an analysis of experimental datas and mathematical
- modelisation of physical phenomenons. (Engineering !)
-
- We hope that you will copy and distribute this software to
- as many people as you can. If you do, you must give both the
- software MATHPAINT and the documentation.
-
- If you like this software please send your 10$ or more
- contribution to B.J.Software Canada .I will wait for your
- replies and if you do reply, I will keep working on more
- powerfull versions and new projects ! (Sounds like a lot
- of fun and work!)
-
- You will notice that i am not a writer, so forgive my
- english. I tried my best.
-
- Features:
- ---------
-
- -Plotting in eight colors of functions and/or datas.
-
- -You can overlay your graphics.
-
- -You can choose your eight colors from a palette
- of 4096 AMIGA colors.
-
- -Axes and scaling can be plotted in X or Y or both directions.
-
- -GRID in both directions at will.
-
- -Different modes for plotting equations and datas.
-
- 1-> normal plot y=f(x..).
- 2-> reversed plot x=f(y..).
- 3-> Parametric plot.
- x= f(t..).
- y= f(t..).
- With 't' go from an initial value to a final value
- by constant increments.
-
- -Choice of font style for the scaling.
-
- How to start:
- ---------------
-
- MATHPAINT is a relatively straightforward program
- and once you have plotted one or two graphs, you will
- find how easy it is.
- This program has been realised to start from the CLI but
- you can attach an icon to MATHPAINT and use it from
- WORKBENCH. But if you do work with an icone you won't be
- able to choose a new font style and you CAN NOT use the
- TOOL-TYPE option for the software.
-
- Startup for the CLI.
-
- MATHPAINT [fontname.font fontsize]
-
- ex: MATHPAINT
- or
- ex: MATHPAINT topaz.font 11
-
- --------------------------------------------
-
-
- Selections in the MENU:
- -----------------------
-
- "Plot Graph": Plot the graphic to the screen.
- ------------------------------------------------------------
-
- "Edit Graph": A requester will appear to let you change
- all the options and equations.
-
- ALL GADGETS 3D, AUTOZ, ZLOG, AXEZ, GRIDZ
- WILL NOT BE WORKING IN THIS VERSION.
-
- - Tree long string-gadgets let you write your
- mathematical equations.
-
- - The initialisation gadget enables you to write
- an equation, it will be evaluated, and the computer
- will return the result on the same line.
-
- ex: x=sin(12.3)
- wille give
- x=-0.263232
- this value of 'x' is memorized and can be used in
- the futur.
- ex: i = 12
- give i=12.000
- if we write i = i+1
- it returns i=13.000
- It is possible to write more complex functions like:
- i = sin(i)+i^2
- it returns i=169.420
-
- note: At the beginning all the variables are equal to ZERO.
- You can check each variable by writing var=var.
- ex: i=i
- will return i=0.0000 (at the beginning)
-
- AUTOY - auto scaling in Y.(vertical)
- AUTOX - auto scaling in X (horizontal)
-
- note: We generaly use AUTOX and AUTOY for parametric
- equations to let the computer find the right
- scale in both directions.
-
- When we use AUTOX alone it is possible to plot
- reversed equations of the form.
- x=f(y). for y goes from MINIMUM to MAXIMUM.
- THIS GRAPHIC WILL SHOW VERTICALLY
-
- AXEX et AXEY - You can select which axis you want to plot.
-
- You then will be required to give the position of
- the axis and the steps in the scale.
-
- Position: For the X axis the position is the
- intersection with the Y axis. For the Y axis
- it is the intersection with the X axis.
-
- ex: if the X axis position is = 0
- and the Y axis position is = 0.
- then the axis will be centered at x=0,y=0.
- (the ORIGIN)
-
- ex: if the X axis position is = 10
- and the Y axis position is = 0.
- then the intersection between them
- will be at x=0,y=10.
-
- "Step Size": Distance between the steps in the scale.
-
- SPECIAL CASE FOR "Step Size".
- WHEN THE AXIS IS LOGARITHMIC:(XLOG or YLOG or both)
- "Step Size" will then mean the number of divisions by
- power of ten.
- Generally 10 divisions by power of ten is a good
- choice and a standard one.
-
- But the computer can let you have ten divisions
- over a power of 100 or 1000 or 10000 if you write
- a fractionnary value.
-
- Knowing that 100 is 10^2 then 1/2 => 0.5 will give
- the Log scale with ten divisions at powers of 10^2.
-
- these are examples for the LOGARITHMIC SCALES:
-
- ex: 20 -> 20 divisions by power of ten.
- ex: 10 -> 10 divisions by power of ten.
- ex: 1 -> 1 division at each power of ten.
- ex: 0.5 -> 10 divisions by power of hundred.(1/2)10^2
- ex: 0.3333 -> 10 divisions par power of 1000.(1/3) 10^3.
-
- GRIDX and GRIDY put a grid in overlay.
-
- XLOG and YLOG let you choose the kind of scaling style
- you want. (Engineers need it).
-
- Note. LOGARITHMIC graphics do not allow for
- 0 or negative values.
-
- CHOICE of colors. It is possible to choose from the tree
- gadgets the color of the pen (crayon), paper (papier)
- and axis (echelle).
-
- "Return to Menu" Lets you return to the MENU.
-
- ------------------------------------------------------------
-
- "Color Palette": A requester will appear to lets you change
- any of the eight colors.
-
- It is possible to change the preferences, save
- your favorite colors, and load them again.
- ------------------------------------------------------------
-
- "Load Matrix":
-
- You can do graphics with numerical values in the
- form of matrix.
-
- These matrix must be in an ascii file like the one
- done by your favorite TEXT EDITOR.
-
- You declare matrix like this:
-
- hello = [ 1.23; 33.41; 5.21;
- 3.12; 5.2; 0; 4.0e-2; ];
-
- This Matrix has 7 values that you will be able to obtain
- with MATHPAINT the same way as with a sin() or cos() or
- any other function of this kind.
-
- ex: x=hello(0)
- ex: give x=1.23
-
- When the loading is successfull you will see in the
- Edit Graph requester in the initialisation gadget all the
- names of the matrix followed by the number of elements.
-
- Up to 10 matrix can be used at the same time with more
- than 1000 elements in each of them.
- (FOR THIS VERSION OF MATHPAINT)
- ------------------------------------------------------------
- "LOAD FORMULAS!: this option permits you to save your work.
- ------------------------------------------------------------
- "SAVE FORMULAS!: this option permits you to load your work.
- ------------------------------------------------------------
-
- "Overplot". All future attempts to Plot will overlay
- to the visible drawing. (you can make a real mess here!)
- ------------------------------------------------------------
- QUIT-BYE. To end the execution of the program.
- ------------------------------------------------------------
-
- Supplementary informations :
- -----------------------------
-
- The order of evaluation of the equations is conform
- to the precedence of operators.
-
- ex: 2+3*4 give 14 and not 20...
- ex: sin(x)^2*3 is the same as 3*(sin(x)^2)
-
-
- All divisions by ZERO will return ±9.0 * 10^18
- that is almost the biggest value the fast floating point
- can handle. (the INFINITY)
-
- 1/0 => 9.0e18
- -1/0 => -9.0e18
-
- Legal names for variables are small letters from
- 'a' to 'z'.
-
- this program won't show the AXIS when
- Step Size or POSITION values are too big or too small.
-
-
- The most important thing with this program is to PRINT
- the results. I suggest you get a "FRAME-GRABBER" program.
- These programs let you GRAB a screen to PRINT or SAVE it.
- GRABBIT by Discovery software is a good suggestion.
-
- I would like to thanks Keith Young and Charlie Heath for
- writing great examples of file requester and palette requester.
-
- Work well and have fun!
-
- But don't forget to send your 10$ or more contribution
- to alllow me to continue inproving this software and develop
- new projects for you !
-
- MATHPAINT
- B.J.Software (Shareware)
-
- 2660 Chatham ave.
- Longueuil Quebec
- Canada J4L-2E6
- ----------------------------
-
-
-