home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l044 / 4.ddi / TCALC.ZIP / TCALC.DOC next >
Encoding:
Text File  |  1990-10-23  |  3.7 KB  |  156 lines

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