File: calc.el.html
Calc is split into many files. This file is the main entry point.
This file includes autoload commands for various other basic Calc facilities. The more advanced features are based in calc-ext, which in turn contains autoloads for the rest of the Calc files. This odd set of interactions is designed to make Calc's loading time be as short as possible when only simple calculations are needed.
Original author's address:
Dave Gillespie, daveg@synaptics.com, uunet!synaptx!daveg.
Synaptics, Inc., 2698 Orchard Parkway, San Jose, CA 95134.
The old address daveg@csvax.cs.caltech.edu will continue to work for the foreseeable future.
Bug reports and suggestions are always welcome! (Type M-x
report-emacs-bug to send them).
All functions, macros, and Lisp variables defined here begin with one
of the prefixes "math", "Math", or "calc", with the exceptions of
"full-calc", "full-calc-keypad", "another-calc", "quick-calc",
and "defmath". User-accessible variables begin with "var-".
Defined variables (169)
calc-Y-help-msgs | List of strings for Y prefix help. |
calc-algebraic-mode | If non-nil, numeric entry accepts whole algebraic expressions. |
calc-always-load-extensions | If non-nil, load the calc-ext module automatically when Calc is loaded. |
calc-angle-mode | If deg, angles are in degrees; if rad, angles are in radians. |
calc-any-selections | Non-nil if there are selections present. |
calc-assoc-selections | If non-nil, selection hides deep structure of associative formulas. |
calc-auto-recompute | If non-nil, recompute evalto’s automatically when necessary. |
calc-auto-why | If non-nil, automatically execute a "why" command to explain odd results. |
calc-autorange-units | If non-nil, automatically set unit prefixes to keep units in a reasonable range. |
calc-break-vectors | If non-nil, display vectors one element per line. |
calc-buffer-list | A list of all Calc buffers. |
calc-bug-address | Address of mailing list for GNU Emacs bugs. |
calc-complex-format | Format to use for display of complex numbers in calc-mode. Must be one of: |
calc-complex-mode | Preferred form, either ‘cplx’ or ‘polar’, for complex numbers. |
calc-context-sensitive-enter | If non-nil, the stack element under the cursor will be copied by ‘calc-enter’ |
calc-date-format | Format of displayed date forms. |
calc-digit-after-point | If t, display at least one digit after the decimal point, as in ‘12.0’. |
calc-digit-map | The key map for entering Calc digits. |
calc-dispatch-map | The key map for starting Calc. |
calc-display-dirty | Non-nil if the stack display might not reflect the latest mode settings. |
calc-display-just | If nil, stack display is left-justified. |
calc-display-origin | Horizontal origin of displayed stack entries. |
calc-display-raw | If non-nil, display shows unformatted Lisp exprs. (For debugging) |
calc-display-sci-high | Floating-point numbers with this positive exponent or higher above the |
calc-display-sci-low | Floating-point numbers with this negative exponent or lower are displayed |
calc-display-strings | If non-nil, display vectors of byte-sized integers as strings. |
calc-display-trail | If non-nil, M-x calc creates a window to display Calculator trail. |
calc-display-working-message | If non-nil, display "Working..." for potentially slow Calculator commands. |
calc-dollar-used | The highest order of ‘$’ that occurred. |
calc-dollar-values | Values to be used for ‘$’. |
calc-embedded-announce-formula | A regular expression which is sure to be followed by a ‘calc-embedded’ formula. |
calc-embedded-announce-formula-alist | Alist of major modes for ‘calc-embedded-announce-formula’. |
calc-embedded-close-formula | Regexp for the closing delimiter of a formula used by ‘calc-embedded’. |
calc-embedded-close-mode | A string which should follow ‘calc-embedded’ mode annotations. |
calc-embedded-close-new-formula | A string which is inserted at end of formula by calc-embedded-new-formula. |
calc-embedded-close-plain | A string which is the closing delimiter for a "plain" formula. |
calc-embedded-info | If non-nil, a vector consisting of information for embedded mode. |
calc-embedded-mode-hook | Hook run when starting embedded mode. |
calc-embedded-new-buffer-hook | Hook run when starting embedded mode in a new buffer. |
calc-embedded-new-formula-hook | Hook run when starting embedded mode in a new formula. |
calc-embedded-open-close-formula-alist | Alist of major modes with pairs of formula delimiters used by ‘calc-embedded’. |
calc-embedded-open-close-mode-alist | Alist of major modes with pairs of strings to delimit annotations. |
calc-embedded-open-close-new-formula-alist | Alist of major modes with pairs of new formula delimiters used by calc-embedded. |
calc-embedded-open-close-plain-alist | Alist of major modes with pairs of delimiters for "plain" formulas. |
calc-embedded-open-formula | Regexp for the opening delimiter of a formula used by ‘calc-embedded’. |
calc-embedded-open-mode | A string which should precede ‘calc-embedded’ mode annotations. |
calc-embedded-open-new-formula | A string which is inserted at front of formula by calc-embedded-new-formula. |
calc-embedded-open-plain | A string which is the opening delimiter for a "plain" formula. |
calc-embedded-word-regexp | A regular expression determining a word for calc-embedded-word. |
calc-embedded-word-regexp-alist | Alist of major modes with word regexps used by calc-embedded-word. |
calc-end-hook | Hook run when calc is quit. |
calc-ensure-consistent-units | If non-nil, ensure new units are consistent with current units when converting. |
calc-executing-macro | Non-nil if a keyboard macro is executing from the "K" key. |
calc-float-format | Format to use for display of floating-point numbers in calc-mode. |
calc-frac-format | Format of displayed fractions; a string of one or two of ":" or "/". |
calc-full-float-format | Format to use when full precision must be displayed. |
calc-full-help-flag | Non-nil if ‘calc-full-help’ is being executed. |
calc-full-mode | Non-nil if Calc was last invoked in full-screen mode. |
calc-full-trail-vectors | If non-nil, display long vectors in full in the trail. |
calc-full-vectors | If non-nil, display long vectors in full. If nil, use abbreviated form. |
calc-function-close | Close-parenthesis string for function call notation. |
calc-function-open | Open-parenthesis string for function call notation. |
calc-gnuplot-default-device | The default device name for GNUPLOT plotting. |
calc-gnuplot-default-output | The default output file for GNUPLOT plotting. |
calc-gnuplot-geometry | The default geometry for the GNUPLOT window. |
calc-gnuplot-name | Name of GNUPLOT program, for calc-graph features. |
calc-gnuplot-plot-command | Name of command for displaying GNUPLOT output; %s = file name to print. |
calc-gnuplot-print-command | Name of command for printing GNUPLOT output; %s = file name to print. |
calc-gnuplot-print-device | The default device name for GNUPLOT printing. |
calc-gnuplot-print-output | The default output for GNUPLOT printing. |
calc-graph-default-resolution | The default number of data points when plotting curves. |
calc-graph-default-resolution-3d | The default number of x- and y- data points when plotting surfaces. |
calc-gregorian-switch | The first day the Gregorian calendar is used by Calc’s date forms. |
calc-group-char | The character (in the form of a string) to be used for grouping digits. |
calc-group-digits | If non-nil, group digits in large displayed integers by inserting spaces. |
calc-hashes-used | The highest order of ‘#’ that occurred. |
calc-help-phase | The number of consecutive "?" keystrokes. |
calc-highlight-selections-with-faces | If non-nil, use a separate face to indicate selected sub-formulas. |
calc-hms-format | Format of displayed hours-minutes-seconds angles, a format string. |
calc-hyperbolic-flag | If non-nil, next operation is Hyperbolic. |
calc-incomplete-algebraic-mode | Like calc-algebraic-mode except only affects ( and [ keys. |
calc-infinite-mode | If nil, 1 / 0 is left unsimplified. |
calc-inhibit-startup-message | If non-nil, inhibit the Calc startup message. |
calc-internal-prec | Number of digits of internal precision for calc-mode calculations. |
calc-inverse-flag | If non-nil, next operation is Inverse. |
calc-invocation-macro | A user defined macro for starting Calc. |
calc-keep-args-flag | If non-nil, next operation should not remove its arguments from stack. |
calc-kill-line-numbering | If non-nil, calculator kills include any line numbering. |
calc-lang-allow-percentsigns | A list of languages which allow percent signs in variable names. |
calc-lang-allow-underscores | A list of languages which allow underscores in variable names. |
calc-lang-brackets-are-subscripts | Languages in which subscripts are indicated by brackets. |
calc-lang-c-type-hex | Languages in which octal and hex numbers are written with leading 0 and 0x. |
calc-lang-parens-are-subscripts | Languages in which subscripts are indicated by parentheses. |
calc-lang-slash-idiv | A list of languages in which / might represent integer division. |
calc-language | Language or format for entry and display of stack values. Must be one of: |
calc-language-alist | Alist of major modes with appropriate Calc languages. |
calc-language-input-filter | Function through which to pass strings before parsing. |
calc-language-option | Numeric prefix argument for the command that set ‘calc-language’. |
calc-language-output-filter | Function through which to pass strings after formatting. |
calc-last-kill | The last number killed in calc-mode. |
calc-leading-zeros | If non-nil, leading zeros are provided to pad integers to calc-word-size. |
calc-left-label | Label to display at left of formula. |
calc-line-breaking | If non-nil, break long values across multiple lines in Calculator stack. |
calc-line-numbering | If non-nil, display line numbers in Calculator stack. |
calc-load-hook | Hook run when calc.el is loaded. |
calc-loaded-settings-file | Return t if ‘calc-settings-file’ has been loaded yet. |
calc-lu-field-reference | The default reference level for logarithmic units (field). |
calc-lu-power-reference | The default reference level for logarithmic units (power). |
calc-main-buffer | A pointer to Calculator buffer. |
calc-make-windows-dedicated | If non-nil, windows displaying Calc buffers will be marked dedicated. |
calc-matrix-brackets | A list of code-letter symbols that control "big" matrix display. |
calc-matrix-just | If nil, vector elements are left-justified. |
calc-matrix-mode | If ‘matrix’, variables are assumed to be matrix-valued. |
calc-mode-hook | Hook run when entering calc-mode. |
calc-mode-map | The key map for Calc. |
calc-mode-var-list | List of variables used in customizing GNU Calc. |
calc-multiplication-has-precedence | If non-nil, multiplication has precedence over division in normal mode. |
calc-note-threshold | The number of cents that a frequency should be near a note |
calc-number-radix | Radix for entry and display of numbers in calc-mode, 2-36. |
calc-option-flag | If non-nil, next operation has Optional behavior. |
calc-other-modes | List of used-defined strings to append to Calculator mode line. |
calc-point-char | The character (in the form of a string) to be used as a decimal point. |
calc-prefer-frac | If non-nil, prefer fractional over floating-point results. |
calc-previous-modulo | Most recently used value of M in a modulo form. |
calc-quick-prev-results | Previous results from Quick Calc. |
calc-radix-formatter | Formatting function used for non-decimal numbers. |
calc-redo-list | The list of recent undo operations. |
calc-refresh-count | The number of ‘calc-refresh’ calls. |
calc-right-label | Label to display at right of formula. |
calc-said-hello | Non-nil if the welcome message has been displayed. |
calc-scan-for-dels | If t, scan keymaps to find all DEL-like keys. |
calc-settings-file | File in which to record permanent settings. |
calc-shift-prefix | If non-nil, shifted letter keys are prefix keys rather than normal meanings. |
calc-show-banner | If non-nil, show a friendly greeting above the stack. |
calc-show-selections | If non-nil, selected sub-formulas are shown by obscuring rest of formula. |
calc-simplify-mode | Type of simplification applied to results. |
calc-stack | Calculator stack. |
calc-stack-top | Index into ‘calc-stack’ of "top" of stack. |
calc-standalone-flag | Non-nil if Emacs started with standalone Calc. |
calc-start-hook | Hook run when calc is started. |
calc-string-maximum-character | Maximum value of vector contents to be displayed as a string. |
calc-symbolic-mode | If non-nil, inexact numeric computations like sqrt(2) are postponed. |
calc-timing | If non-nil, display timing information on each slow command. |
calc-trail-buffer | A pointer to Calc Trail buffer. |
calc-trail-mode-abbrev-table | Abbrev table for ‘calc-trail-mode’. |
calc-trail-mode-hook | Hook run when entering calc-trail-mode. |
calc-trail-mode-map | Keymap for ‘calc-trail-mode’. |
calc-trail-mode-syntax-table | Syntax table for ‘calc-trail-mode’. |
calc-trail-overlay | The value of ‘overlay-arrow-string’. |
calc-trail-pointer | The "current" entry in trail buffer. |
calc-trail-window-hook | Hook called to create the Calc trail window. |
calc-twos-complement-mode | If non-nil, display integers in two’s complement mode. |
calc-undo-length | The number of undo steps that will be preserved when Calc is quit. |
calc-undo-list | The list of previous operations for undo. |
calc-use-selections | If non-nil, commands operate only on selected portions of formulas. |
calc-user-parse-tables | Alist of languages with user-defined parse rules. |
calc-vector-brackets | If non-nil, surround displayed vectors with these characters. |
calc-vector-commas | If non-nil, separate elements of displayed vectors with this string. |
calc-was-keypad-mode | Non-nil if Calc was last invoked in keypad mode. |
calc-why | Explanations of most recent errors. |
calc-window-height | Initial height of Calculator window. |
calc-window-hook | Hook called to create the Calc window. |
calc-word-size | Minimum number of bits per word, if any, for binary operations in calc-mode. |
math-2-word-size | Two to the power of ‘calc-word-size’. |
math-expr-function-mapping | Alist of language specific functions with Calc functions. |
math-expr-variable-mapping | Alist of language specific variables with Calc variables. |
math-half-2-word-size | One-half of two to the power of ‘calc-word-size’. |
math-normalize-error | Non-nil if the last call the ‘math-normalize’ returned an error. |
var-EvalRules | User defined rules that Calc will apply automatically. |
Defined functions (90)
Defined faces (2)
calc-nonselected-face | Face used to show the non-selected portion of a formula. |
calc-selected-face | Face used to show the selected portion of a formula. |