home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / turbo55 / install / tcalc.arc / TCALC.DOC next >
Text File  |  1989-05-02  |  4KB  |  157 lines

  1.  
  2.                         Turbo Pascal 5.5
  3.                      Turbo Calc Information
  4.  
  5. Build Information
  6. -----------------
  7.   The following files are provided in TCALC.ARC and are required
  8.   in order to build TCALC.EXE:
  9.  
  10.     TCALC    PAS
  11.     TCCELL   PAS
  12.     TCCELLSP PAS
  13.     TCHASH   PAS
  14.     TCINPUT  PAS
  15.     TCLSTR   PAS
  16.     TCMENU   PAS
  17.     TCPARSER PAS
  18.     TCRUN    PAS
  19.     TCSCREEN PAS
  20.     TCSHEET  PAS
  21.     TCUTIL   PAS
  22.     TCCOMPAR OBJ
  23.     TCMVSMEM OBJ
  24.  
  25.   In addition, TCALC uses the OBJECTS module contained in the
  26.   \TP\OOPDEMOS directory. Make sure OBJECTS.TPU is available (in
  27.   the TCALC directory or in the UNIT DIRECOTRY) when building
  28.   TCALC.
  29.  
  30. Types of Cells
  31. --------------
  32.  
  33.   Value: A number.
  34.  
  35.   Text: A string - start it with a space to make sure that it
  36.     doesn't get parsed.
  37.  
  38.   Formula: A string that is an expression (see explanation of
  39.     expressions below). This cell will be constantly updated (if
  40.     AutoCalc is on) to the current value of the expression.
  41.  
  42.   Repeat: A cell with a character that will repeat indefinitely
  43.     across the spreadsheet. Type in the character that you want
  44.     to repeat with a leading backslash (example: type \_ to get
  45.     an underline across the screen).
  46.  
  47. General Information
  48. -------------------
  49.   Columns range from A to CRXO (65535), and rows range from 1 to
  50.   65535.
  51.  
  52.   The little dot in the upper left of a spreadsheet tells you
  53.   which of the spreadsheets is the current one. The number of the
  54.   spreadsheet is also printed, along with 'F' if formula display
  55.   is on and 'A' if AutoCalc is on.
  56.  
  57.   The file that the spreadsheet will be saved to is listed at the
  58.   bottom of each spreadsheet, along with an asterisk if the
  59.   spreadsheet has been updated.
  60.  
  61. Expressions
  62. -----------
  63.  
  64.   Cell names in formulas are typed in with the column followed by
  65.   the row:
  66.  
  67.     A1+A2
  68.     B6^5
  69.  
  70.   To compute the sum of a group of cells, put a colon between the
  71.   first cell and the last cell in the group:
  72.  
  73.     A1:A10    - Sum all of cells from A1 to A10 and puts the
  74.                 result in the current cell.
  75.  
  76.     A1:C10    - Sum of all of cells from A1 to A10, B1 to B10,
  77.                 and C1 to C10 and puts the result in the current
  78.                 cell.
  79.  
  80. Available Functions
  81. -------------------
  82.  
  83.   ABS - absolute value
  84.   ACOS - arc cosine
  85.   ASIN - arc sine
  86.   ATAN - arc tangent
  87.   COS - cosine
  88.   COSH - hyperbolic cosine
  89.   EXP - exponential function
  90.   LOG - logarithm
  91.   LOG10 - base 10 logarithm
  92.   POW10 - raise argument to the 10th power
  93.   ROUND - round to the nearest whole number
  94.   SIN - sine
  95.   SINH - hyperbolic sine
  96.   SQR - square
  97.   SQRT - square root
  98.   TAN - tangent
  99.   TANH - hyperbolic tangent
  100.   TRUNC - return the whole part of a number
  101.  
  102.   Examples:
  103.  
  104.     TRUNC(A1)
  105.     SQRT(SQR(34.5))
  106.     ABS(TRUNC(B16))
  107.  
  108. Shortcut Commands
  109. -----------------
  110.  
  111.   AltX       - Quit
  112.   Ins        - Turn block on and off
  113.   Del        - Delete current cell
  114.   F2         - Save current spreadsheet
  115.   AltF2      - Save as
  116.   F3         - Replace current spreadsheet
  117.   AltF3      - Load new spreadsheet (opens up additional window)
  118.   F4         - Delete current spreadsheet
  119.   F6         - Next spreadsheet
  120.   F7         - Toggle formula display on/off
  121.   F8         - Toggle AutoCalc on/off
  122.   F9         - Recalc
  123.   F10        - Main menu
  124.   ASCII keys - Add cell
  125.  
  126. The Parser
  127. ----------
  128.  
  129.   The state and goto information for the parser was created using
  130.   the UNIX YACC utility. The input to YACC was as follows:
  131.  
  132. %token CONST CELL FUNC
  133. %%
  134. e : e '+' t
  135.   | e '-' t
  136.   | t
  137.   ;
  138. t : t '*' f
  139.   | t '/' f
  140.   | f
  141.   ;
  142. f : x '^' f
  143.   | x
  144.   ;
  145. x : '-' u
  146.   | u
  147.   ;
  148. u : CELL ':' CELL
  149.   | o
  150.   ;
  151. o : CELL
  152.   | '(' e ')'
  153.   | CONST
  154.   | FUNC '(' e ')'
  155.   ;
  156. %%
  157.