bg-mouse.el: Moved from term/.
[emacs.git] / etc / calccard.tex
blob41c3b3bad43235b606f565ea1731061e454f761b
1 % Reference Card for GNU Emacs Calc 2.02
2 %**start of header
3 \newcount\columnsperpage
5 % The format for this file is adapted from the GNU Emacs reference
6 % card version 1.9, by Stephen Gildea.
8 % This file can be printed with 1, 2, or 3 columns per page (see below).
9 % Specify how many you want here. Nothing else needs to be changed.
11 \columnsperpage=3
13 % Typical command to format: tex calccard.tex
14 % Typical command to print (3 cols): dvips -t landscape calccard.dvi
16 % Copyright (C) 1987, 1992, 2001, 2002, 2003, 2004,
17 % 2005 Free Software Foundation, Inc.
19 % This file is part of GNU Emacs.
21 % GNU Emacs is free software; you can redistribute it and/or modify
22 % it under the terms of the GNU General Public License as published by
23 % the Free Software Foundation; either version 1, or (at your option)
24 % any later version.
26 % GNU Emacs is distributed in the hope that it will be useful,
27 % but WITHOUT ANY WARRANTY; without even the implied warranty of
28 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 % GNU General Public License for more details.
31 % You should have received a copy of the GNU General Public License
32 % along with GNU Emacs; see the file COPYING. If not, write to
33 % the Free Software Foundation, 51 Franklin Street, Fifth Floor,
34 % Boston, MA 02110-1301, USA.
36 % This file is intended to be processed by plain TeX (TeX82).
38 % The final reference card has six columns, three on each side.
39 % This file can be used to produce it in any of three ways:
40 % 1 column per page
41 % produces six separate pages, each of which needs to be reduced to 80%.
42 % This gives the best resolution.
43 % 2 columns per page
44 % produces three already-reduced pages.
45 % You will still need to cut and paste.
46 % 3 columns per page
47 % produces two pages which must be printed sideways to make a
48 % ready-to-use 8.5 x 11 inch reference card.
49 % For this you need a dvi device driver that can print sideways.
50 % Which mode to use is controlled by setting \columnsperpage above.
52 % Author (Calc reference card):
53 % Dave Gillespie
54 % UUCP: uunet!synaptx!daveg
55 % Internet: daveg@synaptics.com
57 % Author (refcard.tex format):
58 % Stephen Gildea
59 % UUCP: mit-erl!gildea
60 % Internet: gildea@stop.mail-abuse.org
62 \def\versionnumber{2.03}
63 \def\versiondate{November 2001}
64 \def\year{2005}
65 \def\version{v\versionnumber}
67 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
68 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
69 Permissions on back. v\versionnumber}}
71 \def\copyrightnotice{
72 \vskip 1ex plus 2 fill\begingroup\small
73 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
74 \centerline{designed by Dave Gillespie and Stephen Gildea, \version}
75 \centerline{for GNU Emacs Calc version \versionnumber\ (\versiondate)}
77 Permission is granted to make and distribute copies of
78 this card provided the copyright notice and this permission notice
79 are preserved on all copies.
81 For copies of the GNU Emacs Calc manual, write to the Free Software
82 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
83 MA 02110-1301, USA.
85 \endgroup}
87 % make \bye not \outer so that the \def\bye in the \else clause below
88 % can be scanned without complaint.
89 \def\bye{\par\vfill\supereject\end}
91 \newdimen\intercolumnskip
92 \newbox\columna
93 \newbox\columnb
95 \def\ncolumns{\the\columnsperpage}
97 \message{[\ncolumns\space
98 column\if 1\ncolumns\else s\fi\space per page]}
100 \def\scaledmag#1{ scaled \magstep #1}
102 % This multi-way format was designed by Stephen Gildea
103 % October 1986.
104 \if 1\ncolumns
105 \hsize 4in
106 \vsize 10in
107 \voffset -.7in
108 \font\titlefont=\fontname\tenbf \scaledmag3
109 \font\headingfont=\fontname\tenbf \scaledmag2
110 \font\smallfont=\fontname\sevenrm
111 \font\smallsy=\fontname\sevensy
113 \footline{\hss\folio}
114 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
115 \else
116 \hsize 3.2in
117 \vsize 7.95in
118 \hoffset -.75in
119 \voffset -.745in
120 \font\titlefont=cmbx10 \scaledmag2
121 \font\headingfont=cmbx10 \scaledmag1
122 \font\smallfont=cmr6
123 \font\smallsy=cmsy6
124 \font\eightrm=cmr8
125 \font\eightbf=cmbx8
126 \font\eightit=cmti8
127 \font\eighttt=cmtt8
128 \font\eightsy=cmsy8
129 \textfont0=\eightrm
130 \textfont2=\eightsy
131 \def\rm{\eightrm}
132 \def\bf{\eightbf}
133 \def\it{\eightit}
134 \def\tt{\eighttt}
135 \normalbaselineskip=.8\normalbaselineskip
136 \normallineskip=.8\normallineskip
137 \normallineskiplimit=.8\normallineskiplimit
138 \normalbaselines\rm %make definitions take effect
140 \if 2\ncolumns
141 \let\maxcolumn=b
142 \footline{\hss\rm\folio\hss}
143 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
144 \else \if 3\ncolumns
145 \let\maxcolumn=c
146 \nopagenumbers
147 \else
148 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
149 \errmessage{Illegal number of columns per page}
150 \fi\fi
152 \intercolumnskip=.46in
153 \def\abc{a}
154 \output={%
155 % This next line is useful when designing the layout.
156 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
157 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
158 \else\if a\abc
159 \global\setbox\columna\columnbox \global\def\abc{b}
160 %% in case we never use \columnb (two-column mode)
161 \global\setbox\columnb\hbox to -\intercolumnskip{}
162 \else
163 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
164 \def\multicolumnformat{\shipout\vbox{\makeheadline
165 \hbox{\box\columna\hskip\intercolumnskip
166 \box\columnb\hskip\intercolumnskip\columnbox}
167 \makefootline}\advancepageno}
168 \def\columnbox{\leftline{\pagebody}}
170 \def\bye{\par\vfill\supereject
171 \if a\abc \else\null\vfill\eject\fi
172 \if a\abc \else\null\vfill\eject\fi
173 \end}
176 % we won't be using math mode much, so redefine some of the characters
177 % we might want to talk about
178 \catcode`\^=12
179 \catcode`\_=12
181 \chardef\\=`\\
182 \chardef\{=`\{
183 \chardef\}=`\}
185 \hyphenation{mini-buf-fer}
187 \parindent 0pt
188 \parskip 1ex plus .5ex minus .5ex
190 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
192 \outer\def\newcolumn{\vfill\eject}
194 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
196 \outer\def\section#1{\par\filbreak
197 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
198 \vskip 2ex plus 1ex minus 1.5ex}
200 \newdimen\keyindent
202 \def\beginindentedkeys{\keyindent=1em}
203 \def\endindentedkeys{\keyindent=0em}
204 \endindentedkeys
206 \def\paralign{\vskip\parskip\halign}
208 \def\<#1>{$\langle${\rm #1}$\rangle$}
210 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
212 \def\beginexample{\par\leavevmode\begingroup
213 \obeylines\obeyspaces\parskip0pt\tt}
214 {\obeyspaces\global\let =\ }
215 \def\endexample{\endgroup}
217 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
218 {\hsize=.75\hsize\rightskip=1em
219 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
221 \newbox\metaxbox
222 \setbox\metaxbox\hbox{\kbd{M-x }}
223 \newdimen\metaxwidth
224 \metaxwidth=\wd\metaxbox
226 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
227 {\hskip\keyindent\relax#1\hfil}%
228 \hskip -\metaxwidth minus 1fil
229 \kbd{#2}\hfil}}
231 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\quad
232 &\kbd{#3}\quad\cr}
235 % Calc-specific commands here:
238 \let\^=^
239 \let\_=_
240 \catcode`\^=7
241 \catcode`\_=8
243 % Redefine to make spaces a bit smaller
244 \let\wkbd=\kbd
245 \def\kbd#1{{\spaceskip=.37em\tt#1}\null}
247 \def\wkey#1#2{\leavevmode\hbox to \hsize{\vtop
248 {\hsize=.75\hsize\rightskip=1em
249 \hskip\keyindent\relax#1}\wkbd{#2}\hfil}}
250 \def\wthreecol#1#2#3{\hskip\keyindent\relax#1\hfil&\wkbd{#2}\quad
251 &\wkbd{#3}\quad\cr}
253 \def\stkkey#1#2#3#4{\par\line{\hskip1em\rlap{\kbd{#1}}\hskip4.5em%
254 \rlap{{#2}}\hskip7.5em\rlap{{#3}}\hskip7.5em\rlap{{#4}}\hfill}\par}
255 \def\S#1{$S_{\scriptscriptstyle #1}$}
256 \def\swap{$\leftrightarrow$}
258 \def\mhash{M-\#\ }
259 \def\,{{\rm ,\hskip.55em}\ignorespaces}
260 \def\lesssectionskip{\vskip-1.5ex}
262 \def\iline#1{\par\line{\hskip1em\relax #1\hfill}\par}
264 \if 1\ncolumns
265 \else
266 \font\eighti=cmmi8
267 \textfont1=\eighti
270 %**end of header
273 % Column 1
275 \title{GNU Calc Reference Card}
277 \centerline{(for version \versionnumber\ of \versiondate)}
279 \section{Starting and Stopping}
281 \wkey{start/stop standard Calc}{\mhash c}
282 \wkey{start/stop X keypad Calc}{\mhash k}
283 \wkey{\quad start/stop either: \kbd{\mhash \#} or \kbd{\mhash \mhash}}{}
284 \wkey{stop standard Calc}{q}
286 \wkey{Calc tutorial}{\mhash t}
287 \wkey{run Calc in other window}{\mhash o}
288 \wkey{quick calculation in minibuffer}{\mhash q}
290 \section{Getting Help}
292 \lesssectionskip
293 The \kbd{h} prefix key is Calc's analogue of \kbd{C-h} in Emacs.
295 \key{quick summary of keys}{?}
296 \key{describe key briefly}{h c}
297 \key{describe key fully}{h k}
298 \key{describe function or command}{h f}
299 \key{read on-line manual}{h i{\rm\enskip or\enskip}\mhash i}
300 \key{read full Calc summary}{h s{\rm\enskip or\enskip}\mhash s}
302 \section{Error Recovery}
304 \key{abort command in progress}{C-g}
305 \key{display recent error messages}{w}
306 \key{undo last operation}{U}
307 \key{redo last operation}{D}
308 \key{recall last arguments}{M-RET}
309 \key{edit top of stack}{`}
310 \wkey{reset Calc to default state}{\mhash 0 {\rm (zero)}}
312 \section{Transferring Data}
314 \wkey{grab region from a buffer}{\mhash g}
315 \wkey{grab rectangle from a buffer}{\mhash r}
316 \wkey{grab rectangle, summing columns}{\mhash :}
317 \wkey{grab rectangle, summing rows}{\mhash \_}
319 \wkey{yank data to a buffer}{\mhash y}
321 Also, try \kbd{C-k}/\kbd{C-y} or X cut and paste.
323 \section{Examples}
325 \lesssectionskip
326 In RPN, enter numbers first, separated by \kbd{RET} if necessary,
327 then type the operator. To enter a calculation in algebraic form,
328 press the apostrophe first.
330 \beginindentedkeys
331 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt\hfil\quad&#\hfil\cr
332 \wthreecol{ }{{\bf RPN style:}}{{\bf algebraic style:}}
333 \wthreecol{Example:}{2 RET 3 +}{' 2+3 RET}
334 \wthreecol{Example:}{2 RET 3 + 4 *}{' (2+3)*4 RET}
335 \wthreecol{Example:}{2 RET 3 RET 4 + *}{' 2*(3+4) RET}
336 \wthreecol{Example:}{3 RET 6 + Q 3 \^}{' sqrt(3+6)\^3 RET}
337 \wthreecol{Example:}{P 3 / n S}{' sin(-pi/3) RET =}
339 \endindentedkeys
341 \shortcopyrightnotice
343 % Column 2
345 \section{Arithmetic}
347 \key{add, subtract, multiply, divide}{+\, -\, *\, /}
348 \key{raise to a power, {\it n\/}th root}{\^\, I \^}
349 \key{change sign}{n}
350 \key{reciprocal $1/x$}{\&}
351 \key{square root $\sqrt x$}{Q}
353 \key{set precision}{p}
354 \key{round off last two digits}{c 2}
355 \key{convert to fraction, float}{c F\, c f}
357 \wkey{enter using algebraic notation}{' 2+3*4}
358 \wkey{refer to previous result}{' 3*\$\^2}
359 \wkey{refer to higher stack entries}{' \$1*\$2\^2}
360 \key{finish alg entry without evaluating}{LFD}
361 \key{set mode where alg entry used by default}{m a}
363 \section{Stack Commands}
365 \lesssectionskip
366 Here \S{n} is the $n$th stack entry, and $N$ is the size of the stack.
368 \vskip.5ex
369 \stkkey{\it key}{\it no prefix}{\it prefix $n$}{\it prefix $-n$}
370 \stkkey{RET}{copy \S{1}}{copy \S{1..n}}{copy \S{n}}
371 \stkkey{LFD}{copy \S{2}}{copy \S{n}}{copy \S{1..n}}
372 \stkkey{DEL}{delete \S{1}}{delete \S{1..n}}{delete \S{n}}
373 \stkkey{M-DEL}{delete \S{2}}{delete \S{n}}{delete \S{1..n}}
374 \stkkey{TAB}{swap \S{1}\swap\S{2}}{roll \S{1} to \S{n}}{roll \S{n} to \S{N}}
375 \stkkey{M-TAB}{roll \S{3} to \S{1}}{roll \S{n} to \S{1}}{roll \S{N} to \S{n}}
377 With a 0 prefix, these copy, delete, or reverse \S{1..N}.
379 \section{Display}
381 \wkey{scroll horizontally, vertically}{< >\, \{ \}}
382 \key{home cursor}{o}
383 \key{line numbers on/off}{d l}
384 \key{trail display on/off}{t d}
386 \key{scientific notation}{d s}
387 \key{fixed-point notation}{d f}
388 \key{floating-point (normal) notation}{d n}
389 \key{group digits with commas}{d g}
391 For display mode commands, \kbd{H} prefix prevents screen redraw
392 and \kbd{I} prefix temporarily redraws top of stack.
394 \section{Notations}
396 \wkey{scientific notation}{6.02e23}
397 \wkey{minus sign in numeric entry}{\_23{\rm\quad or\quad}23 n}
398 \wkey{fractions}{3:4}
399 \wkey{complex numbers}{({\it x}, {\it y})}
400 \wkey{polar complex numbers}{({\it r}; $\theta$)}
401 \wkey{vectors (commas optional)}{[1, 2, 3]}
402 \wkey{matrices (or nested vectors)}{[1, 2; 3, 4]}
403 \wkey{error forms (\kbd{p} key)}{100 +/- 0.5}
404 \wkey{interval forms}{[2 ..\ 5)}
405 \wkey{modulo forms (\kbd{M} key)}{6 mod 24}
406 \wkey{HMS forms}{5@ 30' 0"}
407 \wkey{date forms}{<Jul 4, 1992>}
408 \wkey{infinity, indeterminate}{inf\, nan}
410 % Column 3
412 \section{Scientific Functions}
414 \key{ln, log${}_{\scriptscriptstyle 10}$, log${}_b$}{L\, H L\, B}
415 \key{exponential {\it e}${}^x$, 10${}^x$}{E\, H E}
416 \key{sin, cos, tan}{S\, C\, T}
417 \key{arcsin, arccos, arctan}{I S\, I C\, I T}
418 \key{inverse, hyperbolic prefix keys}{I\, H}
419 \key{two-argument arctan}{f T}
420 \key{degrees, radians modes}{m d\, m r}
421 \key{pi ($\pi$)}{P}
423 \key{factorial, double factorial}{!\, k d}
424 \key{combinations, permutations}{k c\, H k c}
425 \key{prime factorization}{k f}
426 \key{next prime, previous prime}{k n\, I k n}
427 \key{GCD, LCM}{k g\, k l}
428 \key{random number, shuffle}{k r\, k h}
429 \key{minimum, maximum}{f n\, f x}
431 \key{error functions erf, erfc}{f e\, I f e}
432 \key{gamma, beta functions}{f g\, f b}
433 \key{incomplete gamma, beta functions}{f G\, f B}
434 \key{Bessel $J_\nu$, $Y_\nu$ functions}{f j\, f y}
436 \key{complex magnitude, arg, conjugate}{A\, G\, J}
437 \key{real, imaginary parts}{f r\, f i}
438 \key{convert polar/rectangular}{c p}
440 \section{Financial Functions}
442 \key{enter percentage}{M-\%}
443 \key{convert to percentage}{c \%}
444 \key{percentage change}{b \%}
446 \key{present value}{b P}
447 \key{future value}{b F}
448 \key{rate of return}{b T}
449 \key{number of payments}{b \#}
450 \key{size of payments}{b M}
451 \key{net present value, int.\ rate of return}{b N\, b I}
453 Above computations assume payments at end of period. Use \kbd{I}
454 prefix for beginning of period, or \kbd{H} for a lump sum investment.
456 \key{straight-line depreciation}{b S}
457 \key{sum-of-years'-digits}{b Y}
458 \key{double declining balance}{b D}
460 \section{Units}
462 \wkey{enter with units}{' 55 mi/hr}
463 \key{convert to new units, base units}{u c\, u b}
464 \key{convert temperature units}{u t}
465 \key{simplify units expression}{u s}
466 \key{view units table}{u v}
468 Common units:
469 \iline{distance: \kbd{m}, \kbd{cm}, \kbd{mm}, \kbd{km};
470 \kbd{in}, \kbd{ft}, \kbd{mi}, \kbd{mfi};
471 \kbd{point}, \kbd{lyr}}
472 \iline{volume: \kbd{l} or \kbd{L}, \kbd{ml};
473 \kbd{gal}, \kbd{qt}, \kbd{pt}, \kbd{cup}, \kbd{floz},
474 \kbd{tbsp}, \kbd{tsp}}
475 \iline{mass: \kbd{g}, \kbd{mg}, \kbd{kg}, \kbd{t};
476 \kbd{lb}, \kbd{oz}, \kbd{ton}}
477 \iline{time: \kbd{s} or \kbd{sec}, \kbd{ms}, \kbd{us}, \kbd{ns}, \kbd{min},
478 \kbd{hr}, \kbd{day}, \kbd{wk}}
479 \iline{temperature: \kbd{degC}, \kbd{degF}, \kbd{K}}
481 % Column 4
483 \newcolumn
484 \title{GNU Calc Reference Card}
486 \section{Programmer's Functions}
488 \key{binary, octal, hex display}{d 2\, d 8\, d 6}
489 \key{decimal, other radix display}{d 0\, d r}
490 \key{display leading zeros}{d z}
491 \key{entering non-decimal numbers}{16\#7FFF}
493 \key{binary word size}{b w}
494 \key{binary AND, OR, XOR}{b a\, b o\, b x}
495 \key{binary DIFF, NOT}{b d\, b n}
496 \key{left shift}{b l}
497 \key{logical right shift}{b r}
498 \key{arithmetic right shift}{b R}
500 \key{integer quotient, remainder}{\\\, \%}
501 \key{integer square root, logarithm}{f Q\, f I}
502 \key{floor, ceiling, round to integer}{F\, I F\, R}
504 \section{Variables}
506 \lesssectionskip
507 Variable names are single digits or whole words.
509 \key{store to variable}{s t}
510 \key{store and keep on stack}{s s}
511 \key{recall from variable}{s r}
512 \key{shorthands for digit variables}{t {\it n}\, s {\it n}\, r {\it n}}
513 \key{unstore, exchange variable}{s u\, s x}
514 \key{edit variable}{s e}
516 \section{Vector Operations}
518 \key{vector of 1, 2, $\ldots\mskip\thinmuskip$, {\it n}}{v x {\it n}}
519 \key{vector of {\it n} counts from {\it a} by {\it b}}{C-u v x}
520 \key{vector of copies of a value}{v b}
521 \key{concatenate into vector}{|}
522 \key{pack many stack items into vector}{v p}
523 \key{unpack vector or object}{v u}
525 \key{length of vector (list)}{v l}
526 \key{reverse vector}{v v}
527 \key{sort, grade vector}{V S\, V G}
528 \key{histogram of vector data}{V H}
529 \key{extract vector element}{v r}
531 \key{matrix determinant, inverse}{V D\, \&}
532 \key{matrix transpose, trace}{v t\, V T}
533 \key{cross, dot products}{V C\, *}
534 \key{identity matrix}{v i}
535 \key{extract matrix row, column}{v r\, v c}
537 \key{intersection, union, diff of sets}{V \^\, V V\, V -}
538 \key{cardinality of set}{V \#}
540 \key{add vectors elementwise (i.e., map \kbd{+})}{V M +}
541 \key{sum elements in vector (i.e., reduce \kbd{+})}{V R +}
542 \key{sum rows in matrix}{V R \_ +}
543 \key{sum columns in matrix}{V R : +}
544 \key{sum elements, accumulate results}{V U +}
546 % Column 5
548 \section{Algebra}
550 \wkey{enter an algebraic formula}{' 2x+3y\^2}
551 \wkey{enter an equation}{' 2x\^2=18}
553 \key{symbolic (vs.\ numeric) mode}{m s}
554 \key{fractions (vs.\ float) mode}{m f}
555 \key{suppress evaluation of formulas}{m O}
556 \key{simplify formulas automatically}{m S}
557 \key{return to default evaluation rules}{m D}
559 \key{``Big'' display mode}{d B}
560 \key{C, Pascal, FORTRAN modes}{d C\, d P\, d F}
561 \key{\TeX, eqn modes}{d T\, d E}
562 \key{Unformatted mode}{d U}
563 \key{Normal language mode}{d N}
565 \key{simplify formula}{a s}
566 \key{put formula into rational form}{a n}
567 \key{evaluate variables in formula}{=}
568 \key{evaluate numerically}{N}
569 \key{let variable equal a value in formula}{s l {\it x\/}={\it val}}
570 \key{declare properties of variable}{s d}
571 \iline{Common decls: \kbd{pos}, \kbd{int}, \kbd{real},
572 \kbd{scalar}, \kbd{[{\it a}..{\it b}\hskip.1em]}.}
574 \key{expand, collect terms}{a x\, a c}
575 \key{factor, partial fractions}{a f\, a a}
576 \key{polynomial quotient, remainder, GCD}{a \\\, a \%\, a g}
577 \key{derivative, integral}{a d\, a i}
578 \key{taylor series}{a t}
580 \key{principal solution to equation(s)}{a S}
581 \key{list of solutions}{a P}
582 \key{generic solution}{H a S}
583 \key{apply function to both sides of eqn}{a M}
585 \key{rewrite formula}{a r}
586 \iline{Example: \wkbd{a r a*b + a*c := a*(b+c)}}
587 \iline{Example: \wkbd{a r sin(x)\^2 := 1-cos(x)\^2}}
588 \iline{Example: \wkbd{a r cos(n pi) := 1 ::\ integer(n) ::\ n\%2 = 0}}
589 \iline{Example: \wkbd{a r [f(0) := 1, f(n) := n f(n-1) ::\ n > 0]}}
590 \iline{Put rules in \kbd{EvalRules} to have them apply automatically.}
591 \iline{Put rules in \kbd{AlgSimpRules} to apply during \kbd{a s}
592 command.}
593 \iline{Common markers: \kbd{opt}, \kbd{plain}, \kbd{quote}, \kbd{eval},
594 \kbd{let}, \kbd{remember}.}
596 \section{Numerical Computations}
598 \key{sum formula over a range}{a +}
599 \key{product of formula over a range}{a *}
600 \key{tabulate formula over a range}{a T}
601 \key{integrate numerically over a range}{a I}
602 \key{find zero of formula or equation}{a R}
603 \key{find local min, max of formula}{a N\, a X}
604 \key{fit data to line or curve}{a F}
606 \key{mean of data in vector or variable}{u M}
607 \key{median of data}{H u M}
608 \key{geometric mean of data}{u G}
609 \key{sum, product of data}{u +\, u *}
610 \key{minimum, maximum of data}{u N\, u X}
611 \key{sample, pop.\ standard deviation}{u S\, I u S}
613 % Column 6
615 \section{Selections}
617 \key{select subformula under cursor}{j s}
618 \key{select {\it n\/}th subformula}{j {\it n}}
619 \key{select more}{j m}
620 \key{unselect this, all formulas}{j u\, j c}
622 \key{copy indicated subformula}{j RET}
623 \key{delete indicated subformula}{j DEL}
625 \key{commute selected terms}{j C}
626 \key{commute term leftward, rightward}{j L\, j R}
627 \key{distribute, merge selection}{j D\, j M}
628 \key{isolate selected term in equation}{j I}
629 \key{negate, invert term in context}{j N\, j \&}
630 \key{rewrite selected term}{j r}
632 \section{Graphics}
634 \key{graph function or data}{g f}
635 \key{graph 3D function or data}{g F}
636 \key{replot current graph}{g p}
637 \key{print current graph}{g P}
638 \key{add curve to graph}{g a}
639 \key{set number of data points}{g N}
640 \key{set line, point styles}{g s\, g S}
641 \key{set log vs.\ linear {\it x, y} axis}{g l\, g L}
642 \key{set range for {\it x, y} axis}{g r\, g R}
643 \key{close graphics window}{g q}
645 \section{Programming}
647 \key{begin, end recording a macro}{C-x (\, C-x )}
648 \key{replay keyboard macro}{X}
649 \wkey{read region as written-out macro}{\mhash m}
650 \key{if, else, endif}{Z [\, Z :\, Z ]}
651 \key{equal to, less than, member of}{a =\, a <\, a \{}
652 \key{repeat {\it n} times, break from loop}{Z <\, Z >\, Z /}
653 \key{``for'' loop: start, end; body, step}{Z (\, Z )}
654 \key{save, restore mode settings}{Z `\, Z '}
655 \key{display message during macro}{Z =}
656 \key{query user during macro}{Z \#}
657 \key{put finished macro on a key}{Z K}
659 \key{define function with formula}{Z F}
660 \key{edit definition}{Z E}
662 \key{record user-defined command permanently}{Z P}
663 \key{record variable value permanently}{s p}
664 \key{record mode settings permanently}{m m}
666 \copyrightnotice
668 \bye
670 % Local variables:
671 % compile-command: "tex calccard"
672 % End:
674 % arch-tag: a2764f34-ec23-4083-bd5c-53f9e70a5da9