comparison man/calc.texi @ 40811:c9f5f8f1bce6

Fix to pacify makeinfo.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 07 Nov 2001 19:02:54 +0000
parents 7917695c31da
children a8e01d7e991a
comparison
equal deleted inserted replaced
40810:6f2aa2c28da5 40811:c9f5f8f1bce6
10 @tex 10 @tex
11 % Some special kludges to make TeX formatting prettier. 11 % Some special kludges to make TeX formatting prettier.
12 % Because makeinfo.c exists, we can't just define new commands. 12 % Because makeinfo.c exists, we can't just define new commands.
13 % So instead, we take over little-used existing commands. 13 % So instead, we take over little-used existing commands.
14 % 14 %
15 % Suggested by Karl Berry <karl@@freefriends.org>
16 \gdef\!{\mskip-\thinmuskip}
15 % Redefine @cite{text} to act like $text$ in regular TeX. 17 % Redefine @cite{text} to act like $text$ in regular TeX.
16 % Info will typeset this same as @samp{text}. 18 % Info will typeset this same as @samp{text}.
17 \gdef\goodtex{\tex \let\rm\goodrm \let\t\ttfont \turnoffactive} 19 \gdef\goodtex{\tex \let\rm\goodrm \let\t\ttfont \turnoffactive}
18 \gdef\goodrm{\fam0\tenrm} 20 \gdef\goodrm{\fam0\tenrm}
19 \gdef\cite{\goodtex$\citexxx} 21 \gdef\cite{\goodtex$\citexxx}
239 original English. 241 original English.
240 @end titlepage 242 @end titlepage
241 243
242 @c [begin] 244 @c [begin]
243 @ifinfo 245 @ifinfo
244 @node Top, Getting Started,, (dir) 246 @node Top, , (dir), (dir)
245 @ichapter The GNU Emacs Calculator 247 @chapter The GNU Emacs Calculator
246 248
247 @noindent 249 @noindent
248 @dfn{Calc 2.02} is an advanced desk calculator and mathematical tool 250 @dfn{Calc 2.02} is an advanced desk calculator and mathematical tool
249 that runs as part of the GNU Emacs environment. 251 that runs as part of the GNU Emacs environment.
250 252
261 @end ifinfo 263 @end ifinfo
262 @menu 264 @menu
263 * Copying:: How you can copy and share Calc. 265 * Copying:: How you can copy and share Calc.
264 266
265 * Getting Started:: General description and overview. 267 * Getting Started:: General description and overview.
268 * Interactive Tutorial::
266 * Tutorial:: A step-by-step introduction for beginners. 269 * Tutorial:: A step-by-step introduction for beginners.
267 270
268 * Introduction:: Introduction to the Calc reference manual. 271 * Introduction:: Introduction to the Calc reference manual.
269 * Data Types:: Types of objects manipulated by Calc. 272 * Data Types:: Types of objects manipulated by Calc.
270 * Stack and Trail:: Manipulating the stack and trail buffers. 273 * Stack and Trail:: Manipulating the stack and trail buffers.
517 SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE 520 SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
518 WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN 521 WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
519 ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 522 ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
520 @end enumerate 523 @end enumerate
521 524
522 @node Getting Started, Tutorial, Top, Top 525 @node Getting Started, Tutorial, Copying, Top
523 @chapter Getting Started 526 @chapter Getting Started
524
525 @noindent 527 @noindent
526 This chapter provides a general overview of Calc, the GNU Emacs 528 This chapter provides a general overview of Calc, the GNU Emacs
527 Calculator: What it is, how to start it and how to exit from it, 529 Calculator: What it is, how to start it and how to exit from it,
528 and what are the various ways that it can be used. 530 and what are the various ways that it can be used.
529 531
13201 but reformats only the top two stack entries in the new mode. 13203 but reformats only the top two stack entries in the new mode.
13202 13204
13203 The @kbd{I} prefix has another effect on the display modes. The mode 13205 The @kbd{I} prefix has another effect on the display modes. The mode
13204 is set only temporarily; the top stack entry is reformatted according 13206 is set only temporarily; the top stack entry is reformatted according
13205 to that mode, then the original mode setting is restored. In other 13207 to that mode, then the original mode setting is restored. In other
13206 words, @kbd{I d s} is equivalent to @kbd{H d s d RET H d @var{(old mode)}}. 13208 words, @kbd{I d s} is equivalent to @kbd{H d s d RET H d (@var{old mode})}.
13207 13209
13208 @menu 13210 @menu
13209 * Radix Modes:: 13211 * Radix Modes::
13210 * Grouping Digits:: 13212 * Grouping Digits::
13211 * Float Formats:: 13213 * Float Formats::
14465 @samp{sqrt @{1+x@}}; this is only an approximation to the true meaning 14467 @samp{sqrt @{1+x@}}; this is only an approximation to the true meaning
14466 of quotes in @dfn{eqn}, but it is good enough for most uses. 14468 of quotes in @dfn{eqn}, but it is good enough for most uses.
14467 14469
14468 Accent codes (@samp{@var{x} dot}) are handled by treating them as 14470 Accent codes (@samp{@var{x} dot}) are handled by treating them as
14469 function calls (@samp{dot(@var{x})}) internally. @xref{TeX Language 14471 function calls (@samp{dot(@var{x})}) internally. @xref{TeX Language
14470 Mode} for a table of these accent functions. The @code{prime} accent 14472 Mode}, for a table of these accent functions. The @code{prime} accent
14471 is treated specially if it occurs on a variable or function name: 14473 is treated specially if it occurs on a variable or function name:
14472 @samp{f prime prime @w{( x prime )}} is stored internally as 14474 @samp{f prime prime @w{( x prime )}} is stored internally as
14473 @samp{f'@w{'}(x')}. For example, taking the derivative of @samp{f(2 x)} 14475 @samp{f'@w{'}(x')}. For example, taking the derivative of @samp{f(2 x)}
14474 with @kbd{a d x} will produce @samp{2 f'(2 x)}, which @dfn{eqn} mode 14476 with @kbd{a d x} will produce @samp{2 f'(2 x)}, which @dfn{eqn} mode
14475 will display as @samp{2 f prime ( 2 x )}. 14477 will display as @samp{2 f prime ( 2 x )}.
23685 The @kbd{a F} command puts two entries in the trail. One is, as 23687 The @kbd{a F} command puts two entries in the trail. One is, as
23686 always, a copy of the result that went to the stack; the other is 23688 always, a copy of the result that went to the stack; the other is
23687 a vector of the actual parameter values, written as equations: 23689 a vector of the actual parameter values, written as equations:
23688 @cite{[a = 3, b = 2]}, in case you'd rather read them in a list 23690 @cite{[a = 3, b = 2]}, in case you'd rather read them in a list
23689 than pick them out of the formula. (You can type @kbd{t y} 23691 than pick them out of the formula. (You can type @kbd{t y}
23690 to move this vector to the stack; @pxref{Trail Commands}.) 23692 to move this vector to the stack; see @ref{Trail Commands}.
23691 23693
23692 Specifying a different independent variable name will affect the 23694 Specifying a different independent variable name will affect the
23693 resulting formula: @kbd{a F 1 k RET} produces @kbd{3 + 2 k}. 23695 resulting formula: @kbd{a F 1 k RET} produces @kbd{3 + 2 k}.
23694 Changing the parameter names (say, @kbd{a F 1 k;b,m RET}) will affect 23696 Changing the parameter names (say, @kbd{a F 1 k;b,m RET}) will affect
23695 the equations that go into the trail. 23697 the equations that go into the trail.
35386 @iftex 35388 @iftex
35387 {@advance@tableindent-20pt 35389 {@advance@tableindent-20pt
35388 @end iftex 35390 @end iftex
35389 @table @cite 35391 @table @cite
35390 @item -1 35392 @item -1
35391 @var{(2)} Rectangular complex number. 35393 (@var{2}) Rectangular complex number.
35392 @item -2 35394 @item -2
35393 @var{(2)} Polar complex number. 35395 (@var{2}) Polar complex number.
35394 @item -3 35396 @item -3
35395 @var{(3)} HMS form. 35397 (@var{3}) HMS form.
35396 @item -4 35398 @item -4
35397 @var{(2)} Error form. 35399 (@var{2}) Error form.
35398 @item -5 35400 @item -5
35399 @var{(2)} Modulo form. 35401 (@var{2}) Modulo form.
35400 @item -6 35402 @item -6
35401 @var{(2)} Closed interval. 35403 (@var{2}) Closed interval.
35402 @item -7 35404 @item -7
35403 @var{(2)} Closed .. open interval. 35405 (@var{2}) Closed .. open interval.
35404 @item -8 35406 @item -8
35405 @var{(2)} Open .. closed interval. 35407 (@var{2}) Open .. closed interval.
35406 @item -9 35408 @item -9
35407 @var{(2)} Open interval. 35409 (@var{2}) Open interval.
35408 @item -10 35410 @item -10
35409 @var{(2)} Fraction. 35411 (@var{2}) Fraction.
35410 @item -11 35412 @item -11
35411 @var{(2)} Float with integer mantissa. 35413 (@var{2}) Float with integer mantissa.
35412 @item -12 35414 @item -12
35413 @var{(2)} Float with mantissa in @cite{[1 .. 10)}. 35415 (@var{2}) Float with mantissa in @cite{[1 .. 10)}.
35414 @item -13 35416 @item -13
35415 @var{(1)} Date form (using date numbers). 35417 (@var{1}) Date form (using date numbers).
35416 @item -14 35418 @item -14
35417 @var{(3)} Date form (using year, month, day). 35419 (@var{3}) Date form (using year, month, day).
35418 @item -15 35420 @item -15
35419 @var{(6)} Date form (using year, month, day, hour, minute, second). 35421 (@var{6}) Date form (using year, month, day, hour, minute, second).
35420 @end table 35422 @end table
35421 @iftex 35423 @iftex
35422 } 35424 }
35423 @end iftex 35425 @end iftex
35424 35426