home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
131.lha
/
FORMULA!.doc
< prev
next >
Wrap
Text File
|
1986-11-21
|
8KB
|
200 lines
HERMES' FORMULA! (Version 1.0)
Copyright (c) 1988 A. G. Kartsatos
(CIS = 76617,121, GEnie = XTH58515, PLink = HERMES)
*** Shareware Program ***
Here is a program that complements my CALCULA program and can be of
considerable value to various professionals who use mathematical functions
in their work.
It is a 3-dimensional function grapher.
ATTENTION: The "TOPAZ 11" font should be in your current "fonts"
directory. If it is not there, you will get the program running with funny
fonts or you will get a GURU!
To use it from the CLI: Press "RUN FORMULA!".
To use it from the WORKBENCH: CLICK its ICON.
To EXIT, choose "QUIT" from the MENU, or click into the EXIT gadget.
Formula! will actually graph any valid expression involving the
17 supported algebraic and trigonometric functions, 3 constants involving
PI and 5 algebraic operations.
In order to use Formula!, do the following:
(1) Insert the function to be graphed in the FUNCTION gadget.
(2) Insert the values (if needed) for the six parameters in their
respective gadgets. The front panel always appears with the
default values for the parameters.
(3) Click the GRAPH gadget.
The function will be scaled first, and then it will be graphed on its
own screen in the colors chosen by the user (COLOR gadget).
FUNCTION AND PARAMETER GADGETS INFORMATION
==========================================
(I) Use only parentheses. No brackets are allowed.
(II) The function must be at most 100 characters long.
(III) This version does not support scientific notation. Also, all
trigonometris functions are evaluated at angles expressed in
radians. Use the rad function to convert degrees to radians.
This means degrees with decimals like: rad(87.6).
(IV) Avoid the use of numbers with more than 13 digits before
the decimal point and/or 9 digits after the decimal point.
(V) Exponential expressions grow or decay very fast. The largest
power I have allowed for e is 32. (exp(32.)).
(VI) Check the available functions, operators, and constants by
choosing FUNCTIONS from the menu. Make sure that you are
using the right notation for your functions.
(VII) To CLEAR ONE of the string gadgets, click into it and press
RIGHT-AMIGA-X.
(VIII) You may use spaces between any expressions. No problem.
(IX) Lower or upper case letters are allowed anywhere in the
function gadget. The program turns them all into upper case.
(X) For the sake of speed I have omitted error messages for a whole
lot of nonsensical things that can happen.
Make sure your input makes sense mathematically.
(XI) The program will prohibit the generation of numbers that are
prone to carry prohibitive sizes of error.
(XII) CTRL-N gets you to the Workbench and CTRL-M gets you back to
FORMULA!. If you are planning to work on the Workbench while
FORMULA! is running, make sure to run it with "RUN FORMULA!"
and not just "FORMULA!".
(XIII) The built in parameters pi, tpi and pit denote the numbers
PI, 2*PI and PI/2, respectively.
(XIV) The function "as" (asin) has values in the interval [-pit,pit];
The function "ac" (acos) has values in the interval [0,pi];
The function "atan" has values in the interval [-pit,pit];
The domain of "as" and "ac" is the interval [-1,1];
(XV) When you raise a function to a power, make sure you enclose
the function in parentheses. For example, you should use
(exp(1.89))**2 instead of exp(1.89)**2. The same remark applies
to other similar situations.
(XVI) The AZIMUTH lies always between 0 and 90 degrees while the
COLATITUDE ranges always between 0 and 180 degrees.
I will allow bigger AZIMUTH ranges in future versions.
(XVII) DO NOT USE pi, tpi, pit in ANY GADGETS OTHER THAN THE FUNCTION
gadget.
(XVIII) The RESET gadget on the front panel will bring back the default
values of the parameters, if needed.
GRAPH SCREEN AND PALETTE INFORMATION
====================================
(1) Pressing "P" or "p" after the function is graphed, you get a nice
palette on the screen. It will allow you to change the two
surface colors and the two grid colors very easily.
You can SAVE the picture with GRABBiT.
(2) The palette will exit if you click into its EXIT gadget.
(3) The screen with the graph will go into the background if you
press the TAB key or the RETURN key. Natually, you can do
that after the palette is out.
(4) You can bring the graph screen back if you click into the VIEW
gadget on the main panel.
(5) When you bring the screen back via the VIEW panel, you must
click into it to activate it! Otherwise it will NOT LISTEN
TO KEYBOARD COMMANDS LIKE "P", "p", TAB, RETURN.
(6) THE VIEW gadget will show you the screen with the graph,
provided there is a graph to show.
(7) The COLOR gadget could be used to modify the color of the current
or the next function. If you want to modify the color
of the function already graphed, just flash it with the
VIEW gadget and then press "p" or "P" to get the palette on
it. You can achieve the same result by (1) clicking COLOR on
the front panel, (2) modifying the palette, (3) getting the graph
screen back and (4) throwing the palette on it.
The next graph screen will automatically assume the current
palette collors.
(8) Again, you can SAVE the screen with GRABBiT. I do not think
that CLIPiT will work here.
HERE ARE SOME INTERESTING FUNCTIONS TO TRY (Default gadget values
ere used unless otherwise specified):
(a) sin(x**2 + y) - x + y;
(b) 3*cos(x**2-y**2);
(c) 3.45*sin(x-y**2), X-MINIMUM = -20;
(d) 3.45*cos(2 - (x**2 + y**2)), X-MINIMUM = -5, Y-MINIMUM = - 5;
(e) 3*cos(x**2) - ln(abs(x + y));
(f) sin((x - y)*(3*x - 2*y)*(.5*x - y)), AZIMUTH = 0, COLATITUDE = 34;
*** <<<-->>> ***
This is a SHAREWARE copyrighted program. If you find it useful,
please send $15.00 to:
A. G. Kartsatos (= HERMES = SOULI)
8524 Caladesi Island Drive
Tampa, FL 33637
(Telephone: 813-988-2146)
With this contribution you will receive more programs written by the
author.
FOR SUPPORT, call HERMES BBS in Tampa, FL. A bulletin board with 1400
files online and a healthy message base. The board is private, but you
can leave a message to the SYSOP concerning the HERMES programs and/or you
can download ALL HERMES PROGRAMS without registering.
HERMES BBS Telephone: 813-985-7624.
Other programs by the author:
PALETTA.ARC (Color Mixing, Modifying IFF's, Random Colors)
DUHERM26.ARC (Great Directory Utility. Macros, Parameters, etc)
CALCULA.ARC (An Expression Parser And A Function Evaluator. Unique!)
SIMPLICA.ARC (The Simplex Method Of Linear Programming)
ROST.ARC (Reports On Storage And Tasks. Useful!)
LISTA.ARC (Very Useful Directory Lister. Version 1.1 Soon!)
SCRIPTA.ARC (Online!-PCP Script Maker. Easy script files!)
Feel free to distribute this program, with the doc intact, to any
bulletin boards and other non-profit establishments in the US and abroad.
These include PLink, Compuserve, GEnie, Delphi, etc.
The inclusion of this program, or any part of it, in any form in a
commercial package, or its use for commercial purposes, requires the
written permission of the author.
Later...
@@-->>> HERMES