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