home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / info / calc.info-24 (.txt) < prev    next >
GNU Info File  |  1994-12-22  |  49KB  |  893 lines

  1. This is Info file calc.info, produced by Makeinfo-1.55 from the input
  2. file calc.texinfo.
  3.    This file documents Calc, the GNU Emacs calculator.
  4.    Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  5.    Permission is granted to make and distribute verbatim copies of this
  6. manual provided the copyright notice and this permission notice are
  7. preserved on all copies.
  8.    Permission is granted to copy and distribute modified versions of
  9. this manual under the conditions for verbatim copying, provided also
  10. that the section entitled "GNU General Public License" is included
  11. exactly as in the original, and provided that the entire resulting
  12. derived work is distributed under the terms of a permission notice
  13. identical to this one.
  14.    Permission is granted to copy and distribute translations of this
  15. manual into another language, under the above conditions for modified
  16. versions, except that the section entitled "GNU General Public License"
  17. may be included in a translation approved by the author instead of in
  18. the original English.
  19. File: calc.info,  Node: Keypad Mode,  Next: Embedded Mode,  Prev: Kill and Yank,  Up: Introduction
  20. "Keypad" Mode
  21. *************
  22. The `M-# k' (`calc-keypad') command starts the Calculator and displays
  23. a picture of a calculator-style keypad.  If you are using the X window
  24. system, you can click on any of the "keys" in the keypad using the left
  25. mouse button to operate the calculator.  The original window remains
  26. the selected window; in keypad mode you can type in your file while
  27. simultaneously performing calculations with the mouse.
  28.    If you have used `M-# b' first, `M-# k' instead invokes the
  29. `full-calc-keypad' command, which takes over the whole Emacs screen and
  30. displays the keypad, the Calc stack, and the Calc trail all at once.
  31. This mode would normally be used when running Calc standalone (*note
  32. Standalone Operation::.).
  33.    If you aren't using the X window system, you must switch into the
  34. `*Calc Keypad*' window, place the cursor on the desired "key," and type
  35. SPC or RET.  If you think this is easier than using Calc normally, go
  36. right ahead.
  37.    Calc commands are more or less the same in keypad mode.  Certain
  38. keypad keys differ slightly from the corresponding normal Calc
  39. keystrokes; all such deviations are described below.
  40.    Keypad Mode includes many more commands than will fit on the keypad
  41. at once.  Click the right mouse button [`calc-keypad-menu'] to switch
  42. to the next menu.  The bottom five rows of the keypad stay the same;
  43. the top three rows change to a new set of commands.  To return to
  44. earlier menus, click the middle mouse button [`calc-keypad-menu-back']
  45. or simply advance through the menus until you wrap around.  Typing TAB
  46. inside the keypad window is equivalent to clicking the right mouse
  47. button there.
  48.    You can always click the EXEC button and type any normal Calc key
  49. sequence.  This is equivalent to switching into the Calc buffer, typing
  50. the keys, then switching back to your original buffer.
  51. * Menu:
  52. * Keypad Main Menu::
  53. * Keypad Functions Menu::
  54. * Keypad Binary Menu::
  55. * Keypad Vectors Menu::
  56. * Keypad Modes Menu::
  57. File: calc.info,  Node: Keypad Main Menu,  Next: Keypad Functions Menu,  Prev: Keypad Mode,  Up: Keypad Mode
  58. Main Menu
  59. =========
  60.      |----+-----Calc 2.00-----+----1
  61.      |FLR |CEIL|RND |TRNC|CLN2|FLT |
  62.      |----+----+----+----+----+----|
  63.      | LN |EXP |    |ABS |IDIV|MOD |
  64.      |----+----+----+----+----+----|
  65.      |SIN |COS |TAN |SQRT|y^x |1/x |
  66.      |----+----+----+----+----+----|
  67.      |  ENTER  |+/- |EEX |UNDO| <- |
  68.      |-----+---+-+--+--+-+---++----|
  69.      | INV |  7  |  8  |  9  |  /  |
  70.      |-----+-----+-----+-----+-----|
  71.      | HYP |  4  |  5  |  6  |  *  |
  72.      |-----+-----+-----+-----+-----|
  73.      |EXEC |  1  |  2  |  3  |  -  |
  74.      |-----+-----+-----+-----+-----|
  75.      | OFF |  0  |  .  | PI  |  +  |
  76.      |-----+-----+-----+-----+-----+
  77. This is the menu that appears the first time you start Keypad Mode.  It
  78. will show up in a vertical window on the right side of your screen.
  79. Above this menu is the traditional Calc stack display.  On a 24-line
  80. screen you will be able to see the top three stack entries.
  81.    The ten digit keys, decimal point, and EEX key are used for entering
  82. numbers in the obvious way.  EEX begins entry of an exponent in
  83. scientific notation.  Just as with regular Calc, the number is pushed
  84. onto the stack as soon as you press ENTER or any other function key.
  85.    The +/- key corresponds to normal Calc's `n' key.  During numeric
  86. entry it changes the sign of the number or of the exponent.  At other
  87. times it changes the sign of the number on the top of the stack.
  88.    The INV and HYP keys modify other keys.  As well as having the
  89. effects described elsewhere in this manual, Keypad Mode defines several
  90. other "inverse" operations.  These are described below and in the
  91. following sections.
  92.    The ENTER key finishes the current numeric entry, or otherwise
  93. duplicates the top entry on the stack.
  94.    The UNDO key undoes the most recent Calc operation.  `INV UNDO' is
  95. the "redo" command, and `HYP UNDO' is "last arguments" (`M-RET').
  96.    The <- key acts as a "backspace" during numeric entry.  At other
  97. times it removes the top stack entry.  `INV <-' clears the entire
  98. stack.  `HYP <-' takes an integer from the stack, then removes that
  99. many additional stack elements.
  100.    The EXEC key prompts you to enter any keystroke sequence that would
  101. normally work in Calc mode.  This can include a numeric prefix if you
  102. wish.  It is also possible simply to switch into the Calc window and
  103. type commands in it; there is nothing "magic" about this window when
  104. Keypad Mode is active.
  105.    The other keys in this display perform their obvious calculator
  106. functions.  CLN2 rounds the top-of-stack by temporarily reducing the
  107. precision by 2 digits.  FLT converts an integer or fraction on the top
  108. of the stack to floating-point.
  109.    The INV and HYP keys combined with several of these keys give you
  110. access to some common functions even if the appropriate menu is not
  111. displayed.  Obviously you don't need to learn these keys unless you
  112. find yourself wasting time switching among the menus.
  113. `INV +/-'
  114.      is the same as 1/x.
  115. `INV +'
  116.      is the same as SQRT.
  117. `INV -'
  118.      is the same as CONJ.
  119. `INV *'
  120.      is the same as y^x.
  121. `INV /'
  122.      is the same as INV y^x (the `x'th root of `y').
  123. `HYP/INV 1'
  124.      are the same as SIN / `INV SIN'.
  125. `HYP/INV 2'
  126.      are the same as COS / `INV COS'.
  127. `HYP/INV 3'
  128.      are the same as TAN / `INV TAN'.
  129. `INV/HYP 4'
  130.      are the same as LN / `HYP LN'.
  131. `INV/HYP 5'
  132.      are the same as EXP / `HYP EXP'.
  133. `INV 6'
  134.      is the same as ABS.
  135. `INV 7'
  136.      is the same as RND (`calc-round').
  137. `INV 8'
  138.      is the same as CLN2.
  139. `INV 9'
  140.      is the same as FLT (`calc-float').
  141. `INV 0'
  142.      is the same as IMAG.
  143. `INV .'
  144.      is the same as PREC.
  145. `INV ENTER'
  146.      is the same as SWAP.
  147. `HYP ENTER'
  148.      is the same as RLL3.
  149. `INV HYP ENTER'
  150.      is the same as OVER.
  151. `HYP +/-'
  152.      packs the top two stack entries as an error form.
  153. `HYP EEX'
  154.      packs the top two stack entries as a modulo form.
  155. `INV EEX'
  156.      creates an interval form; this removes an integer which is one of
  157.      0 `[]', 1 `[)', 2 `(]' or 3 `()', followed by the two limits of
  158.      the interval.
  159.    The `OFF' key turns Calc off; typing `M-# k' or `M-# M-#' again has
  160. the same effect.  This is analogous to typing `q' or hitting `M-# c'
  161. again in the normal calculator.  If Calc is running standalone (the
  162. `full-calc-keypad' command appeared in the command line that started
  163. Emacs), then `OFF' is replaced with `EXIT'; clicking on this actually
  164. exits Emacs itself.
  165. File: calc.info,  Node: Keypad Functions Menu,  Next: Keypad Binary Menu,  Prev: Keypad Main Menu,  Up: Keypad Mode
  166. Functions Menu
  167. ==============
  168.      |----+----+----+----+----+----2
  169.      |IGAM|BETA|IBET|ERF |BESJ|BESY|
  170.      |----+----+----+----+----+----|
  171.      |IMAG|CONJ| RE |ATN2|RAND|RAGN|
  172.      |----+----+----+----+----+----|
  173.      |GCD |FACT|DFCT|BNOM|PERM|NXTP|
  174.      |----+----+----+----+----+----|
  175. This menu provides various operations from the `f' and `k' prefix keys.
  176.    IMAG multiplies the number on the stack by the imaginary number `i =
  177. (0, 1)'.
  178.    RE extracts the real part a complex number.  `INV RE' extracts the
  179. imagina