home *** CD-ROM | disk | FTP | other *** search
- Mathematical Calculator (version 1.02)
- ===========================================================
- ⌐ 1995 by: Guido Ahle & Karsten Jakuschona
-
- This DLL (CALC.DLL) provides some of 'C' routines that allow you to incorporate
- mathematical expression evaluation into your programs. For example, using
- these routines you can evaluate such expressions as:
-
- Examples:
- 100 / 5 * / (1 + 2)
- LN( PI )
- ...
-
- Further features: Assignment of variables (e.g.: X = 5 )
-
- Supported functions:
- sin(X)
- cos(X)
- tan(X)
- asin(X)
- acos(X)
- atan(X)
- sinh(X)
- cosh(X)
- tanh(X)
- exp(X)
- ln(X)
- log(X)
- sqrt(X)
- floor(X)
- ceil(X)
- abs(X)
- hypot(X, Y)
- deg(X)
- rad(X)
-
- Command:
- CLR (Erases all variables).
- This function erases all user-defined variables.
-
- Operator Precedence:
- This routine handles the following "operators" in the following priority:
- 1) Anything enclosed in ()'s as well as variables and functions.
- 2) Unary + and - signs
- 3) "To the power of" symbol: ^
- 4) Times (*), divide (/), and modulus (%)
- 5) Plus (+) and minus (-)
- 6) Assignments (=)
-
- Function call:
- ComputeString( char far * expr, double far * result )
- This function evaluates the expression and passes back the result. If the
- evaluation is successful, a value of CERR_OK (0) is returned.
-
- Other error codes:
- CERR_OK 0 No Error
- CERR_UNBALAN 1 Not allowed parenthesis
- CERR_UNKNOWN 2 Undefined variable
- CERR_DOMAIN 3 Out of domain area
- CERR_NOARG 4 Function without arguments
- CERR_MAXVARS 5 No further variables available
- CERR_SYNTAX 6 Syntax error
- CERR_NUMARGS 7 Not enough arguments defined
- CERR_DIVZERO 8 Division by zero
- CERR_EMPTY 9 Undefined expresion
- CERR_BADFUNC 10 Undefined function
-
- Pricing and registration:
- The DLL is distributed as a shareware program. You have
- the right to test this program for four weeks. You are allowed
- to copy this unregistered package and give it to any other person,
- as long as it is not modified in any way.
-
- After the trial period, If you find it useful and want to keep using it,
- You are obliged to register your copy.
-
- This software may NOT be used for commercial purpose without registration.
-
- Disclaimer
- The program has been tested to keep it as bug-free. But we still
- declare that it is supplied "As is" without warranty of any kind.
- You use it at your own risk. We accept no responsibility for
- any damage or loss, physical, financial, or otherwise, that may
- result from the use.
-
- If these terms are not acceptable to you, then you have NO license
- to use or test CALC.DLL. You should IMMEDIATELY DELETE it from
- your disks.
-
- Please send check payable to us and the following order to:
- Karsten Jakuschona & Guido Ahle
- University of Paderborn - Germany
- Department of mechanical engineering
- 33095 Paderborn
- Germany
- Email Address: jjaku1@cik.uni-paderborn.de
-
-
- ---> Single user not for commercial purpose: $10
- ---> Single user for commercial purpose: $25
- ---> Company, group, and/or for commercial purpose: $150
-