home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
vrac
/
equatev5.zip
/
EQUATE.DOC
< prev
next >
Wrap
Text File
|
1994-05-07
|
2KB
|
74 lines
Equate version 5.0
This program and files are public domain...
Archive contents:
EQUATE.EXE - Runtime program.
EQUATE.DOC - This file.
EQUATE.EXE - Program source.
Source:
BASIC PDS 7.1
Calling conventions:
Enter program name at DOS prompt. Input equation to parse. Equation may
contain such symbols, numerals, and constants: -, +, *, /, ^, and any
numeric values, such as: -.1, 2.0, etc.
Numeric types:
Base ten decimals contain numerics 0 to 9.
Octal base (base 8) contain numerics 0 to 7 followed by O, for example: 67O
Hexidecimal base (base 16) numerics 0 to F followed by H, such as: 07FH
Binary numbers: follwoed by B, for example: 1101B
BAse 16 hexidecimal values must start with a number to identify them as
numbers. For example, FFH must be specified as 0FFH.
Recursive technique:
Parenthesis (, [, { with closing symbols for separate quantity calculations.
Multiple symbols like --, or -! should also be separated by parenthesis, such
as -(-1) or -(!0), etc.
Description of symbols (in order of precedence):
Comparitive operators:
> greater than
< less than
= equal to
# not equal to
Boolean operators:
& AND
| OR
! NOT
~ XOR
@ IMP
% EQV
Relational operators:
+ plus
- minus/negation
* multiply
/ divide
^ exponent
? modulo
Signature operators:
ABS(x) - absolute value of x
ATN(x) - arctangent of x
COS(x) - cosine of x
EXP(x) - e raised to the xth
FIX(x) - truncated decimal from x
INT(x) - largest integer equal to x
LOG(x) - natural logarithm of x
RND(x) - random number between 1 and x
SGN(x) - sign of x
SIN(x) - sine of x
SQR(x) - square root of x
TAN(x) - tangent of x
Quantity operators:
( quantity
[ quantity
{ quantity
Examples of equations:
10*Cos(pi)-10*sin(pi)
2^(32-10*2)-2^(16-8*1.5)
(2^7+2^6+2^4) & (2^8+2^5)
(0ffh + 077o) - 2^10