/[emacs]/emacs/man/calc.texi
ViewVC logotype

Diff of /emacs/man/calc.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.66 by jpb, Sat May 28 05:48:15 2005 UTC revision 1.67 by jpb, Mon May 30 21:04:46 2005 UTC
# Line 33640  example, for a rectangular complex numbe Line 33640  example, for a rectangular complex numbe
33640  the absolute values of the components.  the absolute values of the components.
33641  @end defun  @end defun
33642    
33643  @findex two-pi  @findex e
33644    @findex gamma-const
33645    @findex ln-2
33646    @findex ln-10
33647    @findex phi
33648  @findex pi-over-2  @findex pi-over-2
33649  @findex pi-over-4  @findex pi-over-4
33650  @findex pi-over-180  @findex pi-over-180
33651  @findex sqrt-two-pi  @findex sqrt-two-pi
33652  @findex sqrt-e  @findex sqrt-e
33653  @findex e  @findex two-pi
 @findex ln-2  
 @findex ln-10  
33654  @defun pi  @defun pi
33655  The function @samp{(pi)} computes @samp{pi} to the current precision.  The function @samp{(pi)} computes @samp{pi} to the current precision.
33656  Other related constant-generating functions are @code{two-pi},  Other related constant-generating functions are @code{two-pi},
33657  @code{pi-over-2}, @code{pi-over-4}, @code{pi-over-180}, @code{sqrt-two-pi},  @code{pi-over-2}, @code{pi-over-4}, @code{pi-over-180}, @code{sqrt-two-pi},
33658  @code{e}, @code{sqrt-e}, @code{ln-2}, and @code{ln-10}.  Each function  @code{e}, @code{sqrt-e}, @code{ln-2}, @code{ln-10}, @code{phi} and
33659  returns a floating-point value in the current precision, and each uses  @code{gamma-const}.  Each function returns a floating-point value in the
33660  caching so that all calls after the first are essentially free.  current precision, and each uses caching so that all calls after the
33661    first are essentially free.
33662  @end defun  @end defun
33663    
33664  @defmac math-defcache @var{func} @var{initial} @var{form}  @defmac math-defcache @var{func} @var{initial} @var{form}
# Line 34704  step, before the Calc window is destroye Line 34707  step, before the Calc window is destroye
34707  @end defvar  @end defvar
34708    
34709  @defvar calc-window-hook  @defvar calc-window-hook
34710  If this hook exists, it is called to create the Calc window.  If this hook is non-@code{nil}, it is called to create the Calc window.
34711  Upon return, this new Calc window should be the current window.  Upon return, this new Calc window should be the current window.
34712  (The Calc buffer will already be the current buffer when the  (The Calc buffer will already be the current buffer when the
34713  hook is called.)  If the hook is not defined, Calc will  hook is called.)  If the hook is not defined, Calc will
# Line 34713  and @code{select-window} to create the C Line 34716  and @code{select-window} to create the C
34716  @end defvar  @end defvar
34717    
34718  @defvar calc-trail-window-hook  @defvar calc-trail-window-hook
34719  If this hook exists, it is called to create the Calc Trail window.  If this hook is non-@code{nil}, it is called to create the Calc Trail
34720  The variable @code{calc-trail-buffer} will contain the buffer  window.  The variable @code{calc-trail-buffer} will contain the buffer
34721  which the window should use.  Unlike @code{calc-window-hook},  which the window should use.  Unlike @code{calc-window-hook}, this hook
34722  this hook must @emph{not} switch into the new window.  must @emph{not} switch into the new window.
34723  @end defvar  @end defvar
34724    
34725  @defvar calc-edit-mode-hook  @defvar calc-edit-mode-hook
# Line 34820  expression is basically a pattern that C Line 34823  expression is basically a pattern that C
34823  See @ref{Regexp Search,, Regular Expression Search, emacs, The GNU Emacs Manual}  See @ref{Regexp Search,, Regular Expression Search, emacs, The GNU Emacs Manual}
34824  to see how regular expressions work.  to see how regular expressions work.
34825    
34826  @table @code  @defvar calc-settings-file
   
 @item calc-settings-file  
   
 @vindex calc-settings-file  
34827  The variable @code{calc-settings-file} holds the file name in  The variable @code{calc-settings-file} holds the file name in
34828  which commands like @kbd{m m} and @kbd{Z P} store ``permanent''  which commands like @kbd{m m} and @kbd{Z P} store ``permanent''
34829  definitions.    definitions.  
# Line 34834  If @code{calc-settings-file} is not your Line 34833  If @code{calc-settings-file} is not your
34833  exists) the first time Calc is invoked.  exists) the first time Calc is invoked.
34834    
34835  The default value for this variable is @code{"~/.calc.el"}.  The default value for this variable is @code{"~/.calc.el"}.
34836    @end defvar
34837    
34838  @item calc-gnuplot-name  @defvar calc-gnuplot-name
   
34839  See @ref{Graphics}.@*  See @ref{Graphics}.@*
34840  The variable @code{calc-gnuplot-name} should be the name of the  The variable @code{calc-gnuplot-name} should be the name of the
34841  GNUPLOT program (a string).  If you have GNUPLOT installed on your  GNUPLOT program (a string).  If you have GNUPLOT installed on your
# Line 34845  variable.  (@pxref{Customizable Variable Line 34844  variable.  (@pxref{Customizable Variable
34844  You may also need to set some Lisp variables to show Calc how to run  You may also need to set some Lisp variables to show Calc how to run
34845  GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} .  The default value  GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} .  The default value
34846  of @code{calc-gnuplot-name} is @code{"gnuplot"}.  of @code{calc-gnuplot-name} is @code{"gnuplot"}.
34847    @end defvar
34848    
34849  @item  calc-gnuplot-plot-command  @defvar  calc-gnuplot-plot-command
34850  @itemx calc-gnuplot-print-command  @defvarx calc-gnuplot-print-command
   
34851  See @ref{Devices, ,Graphical Devices}.@*  See @ref{Devices, ,Graphical Devices}.@*
34852  The variables @code{calc-gnuplot-plot-command} and  The variables @code{calc-gnuplot-plot-command} and
34853  @code{calc-gnuplot-print-command} represent system commands to  @code{calc-gnuplot-print-command} represent system commands to
# Line 34861  to display or print the output. Line 34860  to display or print the output.
34860  The default value of @code{calc-gnuplot-plot-command} is @code{nil},  The default value of @code{calc-gnuplot-plot-command} is @code{nil},
34861  and the default value of @code{calc-gnuplot-print-command} is  and the default value of @code{calc-gnuplot-print-command} is
34862  @code{"lp %s"}.  @code{"lp %s"}.
34863    @end defvar
34864    
34865  @item calc-language-alist  @defvar calc-language-alist
   
34866  See @ref{Basic Embedded Mode}.@*  See @ref{Basic Embedded Mode}.@*
34867  The variable @code{calc-language-alist} controls the languages that  The variable @code{calc-language-alist} controls the languages that
34868  Calc will associate with major modes.  When Calc embedded mode is  Calc will associate with major modes.  When Calc embedded mode is
# Line 34889  The default value of @code{calc-language Line 34888  The default value of @code{calc-language
34888      (fortran-mode . fortran)      (fortran-mode . fortran)
34889      (f90-mode . fortran))      (f90-mode . fortran))
34890  @end example  @end example
34891    @end defvar
34892    
34893  @item calc-embedded-announce-formula  @defvar calc-embedded-announce-formula
   
34894  See @ref{Customizing Embedded Mode}.@*  See @ref{Customizing Embedded Mode}.@*
34895  The variable @code{calc-embedded-announce-formula} helps determine  The variable @code{calc-embedded-announce-formula} helps determine
34896  what formulas @kbd{M-# a} will activate in a buffer.  It is a  what formulas @kbd{M-# a} will activate in a buffer.  It is a
# Line 34903  activated.  (Calc also uses other patter Line 34902  activated.  (Calc also uses other patter
34902  The default pattern is @code{"%Embed\n\\(% .*\n\\)*"}, which checks  The default pattern is @code{"%Embed\n\\(% .*\n\\)*"}, which checks
34903  for @samp{%Embed} followed by any number of lines beginning with  for @samp{%Embed} followed by any number of lines beginning with
34904  @samp{%} and a space.  @samp{%} and a space.
34905    @end defvar
34906    
34907  @item  calc-embedded-open-formula  @defvar  calc-embedded-open-formula
34908  @itemx calc-embedded-close-formula  @defvarx calc-embedded-close-formula
   
34909  See @ref{Customizing Embedded Mode}.@*  See @ref{Customizing Embedded Mode}.@*
34910  The variables @code{calc-embedded-open-formula} and  The variables @code{calc-embedded-open-formula} and
34911  @code{calc-embedded-open-formula} control the region that Calc will  @code{calc-embedded-open-formula} control the region that Calc will
# Line 34931  Lines beginning with @samp{.EQ} and @sam Line 34930  Lines beginning with @samp{.EQ} and @sam
34930  @item  @item
34931  Lines containing a single @samp{%} or @samp{.\"} symbol and nothing else.  Lines containing a single @samp{%} or @samp{.\"} symbol and nothing else.
34932  @end enumerate  @end enumerate
34933    @end defvar
34934    
34935  @item  calc-embedded-open-word  @defvar  calc-embedded-open-word
34936  @itemx calc-embedded-close-word  @defvarx calc-embedded-close-word
   
34937  See @ref{Customizing Embedded Mode}.@*  See @ref{Customizing Embedded Mode}.@*
34938  The variables @code{calc-embedded-open-word} and  The variables @code{calc-embedded-open-word} and
34939  @code{calc-embedded-close-word} control the region that Calc will  @code{calc-embedded-close-word} control the region that Calc will
# Line 34944  regular expressions. Line 34943  regular expressions.
34943  The default values of @code{calc-embedded-open-word} and  The default values of @code{calc-embedded-open-word} and
34944  @code{calc-embedded-close-word} are @code{"^\\|[^-+0-9.eE]"} and  @code{calc-embedded-close-word} are @code{"^\\|[^-+0-9.eE]"} and
34945  @code{"$\\|[^-+0-9.eE]"} respectively.  @code{"$\\|[^-+0-9.eE]"} respectively.
34946    @end defvar
34947    
34948  @item  calc-embedded-open-plain  @defvar  calc-embedded-open-plain
34949  @itemx calc-embedded-close-plain  @defvarx calc-embedded-close-plain
   
34950  See @ref{Customizing Embedded Mode}.@*  See @ref{Customizing Embedded Mode}.@*
34951  The variables @code{calc-embedded-open-plain} and  The variables @code{calc-embedded-open-plain} and
34952  @code{calc-embedded-open-plain} are used to delimit ``plain''  @code{calc-embedded-open-plain} are used to delimit ``plain''
# Line 34960  The default string for @code{calc-embedd Line 34959  The default string for @code{calc-embedd
34959  @code{calc-embedded-close-plain} is @code{" %%%\n"}, without  @code{calc-embedded-close-plain} is @code{" %%%\n"}, without
34960  the trailing newline here, the first line of a Big mode formula  the trailing newline here, the first line of a Big mode formula
34961  that followed might be shifted over with respect to the other lines.  that followed might be shifted over with respect to the other lines.
34962    @end defvar
34963    
34964  @item  calc-embedded-open-new-formula  @defvar  calc-embedded-open-new-formula
34965  @itemx calc-embedded-close-new-formula  @defvarx calc-embedded-close-new-formula
   
34966  See @ref{Customizing Embedded Mode}.@*  See @ref{Customizing Embedded Mode}.@*
34967  The variables @code{calc-embedded-open-new-formula} and  The variables @code{calc-embedded-open-new-formula} and
34968  @code{calc-embedded-close-new-formula} are strings which are  @code{calc-embedded-close-new-formula} are strings which are
# Line 34978  also @code{"\n\n"}.  The final newline i Line 34977  also @code{"\n\n"}.  The final newline i
34977  if typed at the end of a line.  (It follows that if @kbd{M-# f} is  if typed at the end of a line.  (It follows that if @kbd{M-# f} is
34978  typed on a blank line, both a leading opening newline and a trailing  typed on a blank line, both a leading opening newline and a trailing
34979  closing newline are omitted.)  closing newline are omitted.)
34980    @end defvar
34981    
34982  @item  calc-embedded-open-mode  @defvar  calc-embedded-open-mode
34983  @itemx calc-embedded-close-mode  @defvarx calc-embedded-close-mode
   
34984  See @ref{Customizing Embedded Mode}.@*  See @ref{Customizing Embedded Mode}.@*
34985  The variables @code{calc-embedded-open-mode} and  The variables @code{calc-embedded-open-mode} and
34986  @code{calc-embedded-close-mode} are strings which Calc will place before  @code{calc-embedded-close-mode} are strings which Calc will place before
# Line 34995  and the default value of @code{calc-embe Line 34994  and the default value of @code{calc-embe
34994  If you change the value of @code{calc-embedded-close-mode}, it is a good  If you change the value of @code{calc-embedded-close-mode}, it is a good
34995  idea still to end with a newline so that mode annotations will appear on  idea still to end with a newline so that mode annotations will appear on
34996  lines by themselves.  lines by themselves.
34997    @end defvar
 @end table  
34998    
34999  @node Reporting Bugs, Summary, Customizable Variables, Top  @node Reporting Bugs, Summary, Customizable Variables, Top
35000  @appendix Reporting Bugs  @appendix Reporting Bugs

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26