home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / equatev5.zip / EQUATE.DOC < prev    next >
Text File  |  1994-05-07  |  2KB  |  74 lines

  1. Equate version 5.0
  2. This program and files are public domain...
  3.  
  4. Archive contents:
  5.  EQUATE.EXE  -  Runtime program.
  6.  EQUATE.DOC  -  This file.
  7.  EQUATE.EXE  -  Program source.
  8.  
  9. Source:
  10.  BASIC PDS 7.1
  11.  
  12. Calling conventions:
  13.  Enter program name at DOS prompt. Input equation to parse. Equation may
  14.  contain such symbols, numerals, and constants: -, +, *, /, ^, and any
  15.  numeric values, such as: -.1, 2.0, etc.
  16.  
  17. Numeric types:
  18.  Base ten decimals contain numerics 0 to 9.
  19.  Octal base (base 8) contain numerics 0 to 7 followed by O, for example: 67O
  20.  Hexidecimal base (base 16) numerics 0 to F followed by H, such as: 07FH
  21.  Binary numbers: follwoed by B, for example: 1101B
  22.  
  23.  BAse 16 hexidecimal values must start with a number to identify them as
  24.  numbers. For example, FFH must be specified as 0FFH.
  25.  
  26. Recursive technique:
  27.  Parenthesis (, [, { with closing symbols for separate quantity  calculations.
  28.  Multiple symbols like --, or -! should also be separated by parenthesis, such
  29.  as -(-1) or -(!0), etc.
  30.  
  31. Description of symbols (in order of precedence):
  32.  Comparitive operators:
  33.    >  greater than
  34.    <  less than
  35.    =  equal to
  36.    #  not equal to
  37.  Boolean operators:
  38.    &  AND
  39.    |  OR
  40.    !  NOT
  41.    ~  XOR
  42.    @  IMP
  43.    %  EQV
  44.  Relational operators:
  45.    +  plus
  46.    -  minus/negation
  47.    *  multiply
  48.    /  divide
  49.    ^  exponent
  50.    ?  modulo
  51.  Signature operators:
  52.    ABS(x)  -  absolute value of x
  53.    ATN(x)  -  arctangent of x
  54.    COS(x)  -  cosine of x
  55.    EXP(x)  -  e raised to the xth
  56.    FIX(x)  -  truncated decimal from x
  57.    INT(x)  -  largest integer equal to x
  58.    LOG(x)  -  natural logarithm of x
  59.    RND(x)  -  random number between 1 and x
  60.    SGN(x)  -  sign of x
  61.    SIN(x)  -  sine of x
  62.    SQR(x)  -  square root of x
  63.    TAN(x)  -  tangent of x
  64.  Quantity operators:
  65.    (  quantity
  66.    [  quantity
  67.    {  quantity
  68.  
  69. Examples of equations:
  70.  10*Cos(pi)-10*sin(pi)
  71.  2^(32-10*2)-2^(16-8*1.5)
  72.  (2^7+2^6+2^4) & (2^8+2^5)
  73.  (0ffh + 077o) - 2^10
  74.