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