summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/mandi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-06-27 16:32:09 +0000
committerKarl Berry <karl@freefriends.org>2013-06-27 16:32:09 +0000
commit6b1d2a3aee8e3f5b29fe828e0b963d43cf3a6298 (patch)
tree118a91bc90502b13b5bfd458c905243c4aa9c234 /Master/texmf-dist/source/latex/mandi
parentd44ded1db743bde915c9777d65bd2f695c153618 (diff)
mandi (16jun13)
git-svn-id: svn://tug.org/texlive/trunk@30981 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/mandi')
-rw-r--r--Master/texmf-dist/source/latex/mandi/mandi.dtx9472
-rw-r--r--Master/texmf-dist/source/latex/mandi/mandi.ins20
2 files changed, 4866 insertions, 4626 deletions
diff --git a/Master/texmf-dist/source/latex/mandi/mandi.dtx b/Master/texmf-dist/source/latex/mandi/mandi.dtx
index 564715327bd..d0ed7d89330 100644
--- a/Master/texmf-dist/source/latex/mandi/mandi.dtx
+++ b/Master/texmf-dist/source/latex/mandi/mandi.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% !TEX TS-program = dtxmk
%
-% Copyright (C) 2011,2012 by Paul J. Heafner <heafnerj@gmail.com>
+% Copyright (C) 2011, 2012, 2013 by Paul J. Heafner <heafnerj@gmail.com>
% ---------------------------------------------------------------------------
% This work may be distributed and/or modified under the conditions of the
% LaTeX Project Public License, either version 1.3 of this license or (at
@@ -15,9 +15,9 @@
% The Current Maintainer of this work is Paul J. Heafner.
%
% This work consists of the files mandi.dtx
+% README
%
-% and includes the derived files README
-% mandi.ins
+% and includes the derived files mandi.ins
% mandi.sty
% vdemo.py and
% mandi.pdf.
@@ -32,7 +32,7 @@
%</internal>
%
%<*package>
-\ProvidesPackage{mandi}[2013/04/10 2.1.0 Macros for intro physics and astronomy]
+\ProvidesPackage{mandi}[2013/06/14 2.2.0 Macros for physics and astronomy]
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%</package>
%
@@ -76,7 +76,7 @@ while 1:
\usedir{tex/latex/mandi}
\preamble
-Copyright (C) 2011,2012 by Paul J. Heafner <heafnerj@gmail.com>
+Copyright (C) 2011, 2012, 2013 by Paul J. Heafner <heafnerj@gmail.com>
---------------------------------------------------------------------------
This work may be distributed and/or modified under the conditions of the
LaTeX Project Public License, either version 1.3 of this license or (at
@@ -90,12 +90,12 @@ This work has the LPPL maintenance status `maintained'.
The Current Maintainer of this work is Paul J. Heafner.
This work consists of the files mandi.dtx
+ README
-and includes the derived files README
- mandi.ins
+and includes the derived files mandi.ins
mandi.sty
- mandi.pdf and
- vdemo.py.
+ vdemo.py and
+ mandi.pdf.
---------------------------------------------------------------------------
\endpreamble
@@ -137,40 +137,34 @@ and includes the derived files README
%</driver>
%
%<*driver>
-\documentclass{ltxdoc}
-\usepackage{\jobname}
-\usepackage{array}
-\usepackage[textwidth=1.0cm]{todonotes}
-\setlength{\marginparwidth}{1.0in} % proper placement of todonotes in left margin
-\usepackage{rotating}
-\usepackage{listings}
-\usepackage{microtype}
-%\usepackage[noprint]{dox}
-\usepackage{hypdoc}
-\usepackage[left=1.75in,right=0.5in]{geometry}
-\usepackage[listings]{tcolorbox}
-\EnableCrossrefs
-\PageIndex
-\RecordChanges
-\parindent 0.0mm
-%\OnlyDescription % only print user documentation
+\documentclass[10pt]{ltxdoc}
+\setlength{\marginparwidth}{0.50in} % placement of todonotes
+\usepackage[italicvectors]{\jobname} % load mandi
+\usepackage[textwidth=1.0cm]{todonotes} % allow for todonotes
+\usepackage[left=0.75in,right=1.00in]{geometry} % main documentation
+\usepackage{array,rotating,microtype} % accessory packages
+\usepackage[listings,documentation]{tcolorbox} % workhorse package
+\tcbset{index german settings} % set index options
\newcommandx{\ntodo}[2][1,usedefault]{%
\ifthenelse{\equal{#1}{}}
- {\todo[size=\footnotesize,fancyline,caption={#2},color=yellow!40]{\begin{sideways}
- #2\end{sideways}}}
- {\todo[size=\footnotesize,fancyline,caption={#1},color=yellow!40]{\begin{sideways}
- #2\end{sideways}}}}
-\tcbset{enlarge left by=1cm, enlarge right by=2cm,enlarge top by=-3mm,
- enlarge bottom by=3mm,width=\linewidth-2cm}
-\tcbset{coltitle=blue!50!black,colframe=blue!25,colback=blue!15}
+ {\todo[size=\footnotesize,fancyline,caption={#2},color=yellow!40]
+ {\begin{sideways}#2\end{sideways}}}
+ {\todo[size=\footnotesize,fancyline,caption={#1},color=yellow!40]
+ {\begin{sideways}#2\end{sideways}}}}
+\DisableCrossrefs % index descriptions only
+\PageIndex % index contains page numbers
+\CodelineNumbered % number source lines
+\RecordChanges % record changes
+\everymath{\displaystyle} % default math style
%\DeclareMathSizes{10}{18}{12}{8}
%\DeclareMathSizes{11}{19}{13}{9}
%\DeclareMathSizes{12}{20}{14}{10}
-\everymath{\displaystyle}
-\begin{document}
+\begin{document} % main document
\DocInput{\jobname.dtx}
+ \newgeometry{left=1.00in,right=1.00in,top=1.00in,bottom=1.00in}
\PrintIndex
-\end{document}
+ \restoregeometry
+\end{document} % end main document
%</driver>
% \fi
%
@@ -183,12 +177,12 @@ and includes the derived files README
% \newcommand{\drvdunits}{\textit{drvdunits}}
% \newcommand{\tradunits}{\textit{tradunits}}
%
-% \IndexPrologue{\section{Index}Numbers written in italic refer to the page/codeline
-% where the corresponding entry is described; numbers/codelines
-% underlined refer to the definition; numbers in roman refer to the
-% pages/codelines where the entry is used.}
+% \IndexPrologue{\section{Index}Page numbers refer to page where the
+% corresponding entry is described. Not every command defined in the
+% package is indexed. There may be commands similar to indexed commands
+% described in relevant parts of the documentation.}
%
-% \CheckSum{4843}
+% \CheckSum{5396}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -206,86 +200,43 @@ and includes the derived files README
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
-% \DoNotIndex{\,,\!,\;,\\,\{,\},\(,\),\[,
-% \active,\advance,\AtBeginOfPackageFile,\baselineskip,\begin,\begingroup,\Big,\Bigg,
-% \boolean,\bullet,\boldsymbol,\BODY,\box,\cancelto,\caption,\catcode,\cbcolor,\cbend,
-% \cbstart,\centerline,\color,\changebarsep,\changebarwidth,\char,\clist,\cr,\cs,
-% \csname,\csundef,\circ,\cdot,
-% \DeclareFontShape,\DeclareGraphicsRule,\DeclareMathAlphabet,\DeclareMathOperator,
-% \DeclareOption,\def,\definecolor,\dimen,\displaystyle,\dp,\else,\end,\endcsname,
-% \endgroup,\ensuremath,\equal,\ExecuteOptions,\expandafter,\ExplSyntaxOff,
-% \ExplSyntaxOn,\fbox,\fcolorbox,\fi,\frac,\global,\halign,\hat,\hbox,\hfil,\hfill,
-% \hline,\hspace,\ht,\iffalse,\ifnum,\ifthenelse,\IfValueT,\ifx,\includegraphics,\l,
-% \label,\langle,\left,\let,\LetLtxMacro,\linewidth,\long,\lower,\lstinline,
-% \lstinputlisting,\lstnewenvironment,\lstset,\lVert,\lvert,\mathbf,\mathcal,
-% \mathchardef,\mathcode,\mathpzc,\mathrel,\mathrm,\mbox,\meaning,\mdfdefinestyle,
-% \mi,\mskip,\newboolean,\newcommand,\newcommandx,\newcount,\NewDocumentCommand,
-% \NewEnviron,\newenvironment,\newenvironmentx,\noalign,\noexpand,\nolimits,\odot,
-% \offinterlineskip,\parbox,\partial,\phantom,\ProcessOptions,\protect,\rangle,\relax,
-% \renewcommand,\right,\romannumeral,\RequirePackage,\rVert,\rvert,\scriptstyle,
-% \seq,\setboolean,\setbox,\setcounter,\setlength,\skipper,\smart,\space,\string,
-% \sqrt,\stackrel,\sum,\text,\textbf,\textfont,\textheight,\textsf,\texttt,\textwidth,
-% \the,\tiny,\tl,\typeout,\upshape,\usetikzlibrary,\usebox,\vcenter,\vector,\vrule,
-% \vskip,\vspace,\widehat,\WithSuffix,\xdef,\xLongleftarrow,\xLongleftrightarrow,
-% \xLongrightarrow,\xrightarrow,\xspace}
-%
-% \DoNotIndex{\activity@fbox,\@eolst,\@firstofone,\@firstoftwo,\Mathstrutbox@,\mi@delim,
-% \mi@exchangeargs,\mi@forkifnull,\mi@innername,\mi@name,\mi@vector,\oldr@@t,\rc@delim,
-% \rc@vector,\response@fbox,\resetMathstrut@,\r@@t,\@tempa,\@tempb,\@tempboxa,
-% \@secondoftwo,\z@,\@ifpackageloaded}
-%
-% \DoNotIndex{\selectbaseunit,\selectdrvdunit,\selecttradunit,\selectunit,
-% \redefinephysicsquantity,\redefinephysicsconstant,\definephysicsquantity,
-% \definephysicsconstant,\innerdefinewhatsoeverquantity,
-% \innerdefinewhatsoeverquantityfork,\chkphysicsquantity}
-%
-% \DoNotIndex{\alpha,\beta,\chi,\delta,\Delta,\epsilon,\eta,\gamma,\Gamma,\iota,\kappa,
-% \lambda,\Lambda,\mu,\nu,\omega,\Omega,\phi,\Phi,\pi,\Pi,\psi,\Psi,\rho,\sigma,\Sigma,
-% \tau,\theta,\Theta,\upsilon,\Upsilon,\varepsilon,\varphi,\varpi,\varrho,\varsigma,
-% \vartheta\xi,\Xi,\zeta}
-%
-% \DoNotIndex{\approx,\bigint,\bigoint,\cos,\cosh,\cot,\coth,\csc,\csch,\ell,\hbar,\int,
-% \ldots,\ln,\log,\mathcalligra,\nabla,\oint,\oldsqrt,\prime,\pm,\sec,\sech,\sin,\sinh,
-% \sqrt,\star,\tan,\tanh,\times,\vec}
-%
-% \DoNotIndex{\ampere,\arcminute,\arcsecond,\atomicmassunit,\candela,\coulomb,
-% \degree,\electronvolt,\farad,\henry,\hertz,\hour,\joule,\kelvin,\kilogram,
-% \metre,\minute,\mole,\newton,\ohm,\pascal,\per,\radian,\second,\siemens,
-% \steradian,\tesla,\unit,\usk,\volt,\watt,\weber}
-%
-% \DoNotIndex{\C,\F,\H,\J,\N,\rad,\S,\T,\V,\W}
-%
-% \DoNotIndex{\square,\cubic,\quartic,\reciprocal,\reciprocalsquare,\reciprocalcubic,
-% \reciprocalquartic,\squared,\cubed,\quarted,\reciprocaled,\reciprocalsquared,
-% \reciprocalcubed,\reciprocalquarted}
-%
% \providecommand*{\url}{\texttt}
% \GetFileInfo{\jobname.sty}
% \title{The \textsf{mandi} package}
-% \author{Paul J. Heafner \\
-% \href{mailto:heafnerj@gmail.com?subject=[Heafner]\%20mandi}
-% {\nolinkurl{heafnerj@gmail.com}}}
+% \author{Paul J. Heafner
+% (\href{mailto:heafnerj@gmail.com?subject=[Heafner]\%20mandi}
+% {\nolinkurl{heafnerj@gmail.com}})}
% \date{Version \fileversion~dated \filedate}
%
-% \maketitle
+% \newgeometry{left=1.0in,right=1.0in,top=4.0in}
+% \maketitle
+% \restoregeometry
%
% ^^A \centerline{\textbf{PLEASE DO NOT DISTRIBUTE THIS VERSION.}}
%
% \changes{v2.0.0}{\today}{First public release}
% \changes{v2.1.0}{\today}{No longer needs \pkgname{SIunits}. It's deprecated}
% \changes{v2.1.0}{\today}{Coexists with \pkgname{siunitx}.}
-% \changes{v2.1.0}{\today}{Coexists with \pkgname{physymb}. Load \pkgname{physymb}
-% before \pkgname{mandi}.}
+% \changes{v2.1.0}{\today}{Coexists with \pkgname{physymb}.
+% Load \pkgname{physymb} before \pkgname{mandi}.}
% \changes{v2.1.0}{\today}{Added more predefined quantities.}
% \changes{v2.1.0}{\today}{Improved vector operators.}
+% \changes{v2.2.0}{\today}{Completely reformatted documentation.}
+% \changes{v2.2.0}{\today}{Many new physical quantities and constants.}
+% \changes{v2.2.0}{\today}{Physical constants are given to three or four
+% decimal places.}
+% \changes{v2.2.0}{\today}{New commands, some deprecated in favor of
+% \pkgname{mivector}.}
%
-% \tableofcontents
-% \newpage
-% \PrintChanges
-% \addcontentsline{toc}{section}{Change History}
-% \addcontentsline{toc}{section}{Possible Future Enhancements}
-% \listoftodos[Possible Future Enhancements]
-% \newpage
+% \newgeometry{left=1.0in,right=1.0in,top=1.0in,bottom=1.0in}
+% \tableofcontents
+% \newpage
+% \PrintChanges
+% \addcontentsline{toc}{section}{Change History}
+% \addcontentsline{toc}{section}{Possible Future Enhancements}
+% \listoftodos[Possible Future Enhancements]
+% \newpage
+% \restoregeometry
%
% \section{Introduction}
% This package provides a collection of commands useful in introductory physics
@@ -302,16 +253,16 @@ and includes the derived files README
% tightly tied to that textbook but can be used for typesetting any document that
% requires consistent physics notation. With \mandi\ many complicated expressions
% can be typeset with just a single command. Great thought has been given to command
-% names and I hope users find the conventions logical and easy to remember.\medskip
+% names and I hope users find the conventions logical and easy to remember.
%
% There are other underlying philosophies and goals embedded within \mandi, all of
% which are summarized here. They are
% \begin{itemize}
% \item to employ a \textit{type what you think} model for remembering commands
% \item to relieve the user of having to explicitly worry about typesetting SI units
-% \item to enforce certain concepts that are too frequently merged, which causes
-% confusion, such as the distinction between a vector quantity and its magnitude
-% (e.g.\ we often use the same name for both)
+% \item to enforce certain concepts that are too frequently merged, such as the
+% distinction between a vector quantity and its magnitude (e.g.\ we often use the
+% same name for both)
% \item to enforce consistent terminology in the naming of quantities, with names
% that are both meaningful to introductory students and accurate
% (e.g.\ \textit{duration} vs.\ \textit{time})
@@ -328,17 +279,12 @@ and includes the derived files README
%
% \newpage
% \section{Loading the Package}
-% To load the \mandi\ package, simply put the line \medskip
-%
-% |\usepackage{mandi}| \medskip
-%
-% \noindent in your document's preamble to load \mandi\ with its default
-% options. To use the package's available options, write \medskip
-%
-% |\usepackage|\textbf{[}\opt{options}\textbf{]}|{mandi}| \medskip
+% To load \mandi\ with its default options, simply put the line |\usepackage{mandi}|
+% in your document's preamble. To use the package's available options, put the line
+% |\usepackage|\textbf{[}\opt{options}\textbf{]}|{mandi}| in your document's preamble.
+% There are five available options, with one option being based on the absence of
+% two of the others. The options are described below.
%
-% There are five available options, with one option being based on the absence of two
-% of the others.
% \begin{itemize}
% \item \opt{italicvectors} gives italic letters for the kernels of vector
% names. Otherwise, the letters are in Roman.
@@ -366,39 +312,58 @@ and includes the derived files README
% temporarily or permanently.
% \end{itemize}
%
-% \newpage
+% \mandi\ coexists with the \pkgname{siunitx} package. While there is some
+% functional overlap between the two packages, \mandi\ is completely independent of
+% \pkgname{siunitx}.
+%
+% \mandi\ coexists with the \pkgname{physymb} package, with which there are also
+% functional overlaps and a few conflicts with identically named commands. If you
+% wish to use \pkgname{physymb} and \mandi\ in the same document, be certain to load
+% \pkgname{physymb} first. \mandi\ will detect its presence and behave accordingly.
+%
% \section{Usage}
% So what does \mandi\ allow you to do? Suppose you want to typeset a calculation of
% a particle's kinetic energy (assume the magnitude of the particle's velocity is much
% less than the magnitude of light's velocity). You could use
%
-% \begin{center}
-% |K \approx \frac{1}{2}\left(\unit{2}{\kg}\right)\left(\unit{2}{\m\per\s}\right)^2|
-% \end{center}
+%\iffalse
+%<*example>
+%\fi
+\begin{dispExample}
+\[ K \approx \frac{1}{2}\left(\unit{2}{\kg}\right)\left(\unit{2}{\m\per\s}\right)^2 \]
+\end{dispExample}
+%\iffalse
+%</example>
+%\fi
%
-% but it is more logical and more readable to use
+% but \mandi\ lets you do something more logical and more readable, like this
%
-% \begin{center}
-% |K \approx \onehalf (\mass{2})(\velocity{2})^2|
-% \end{center}
+%\iffalse
+%<*example>
+%\fi
+\begin{dispExample}
+\[ K \approx \onehalf (\mass{2})(\velocity{2})^2 \]
+\end{dispExample}
+%\iffalse
+%</example>
+%\fi
%
-% given that they produce the same output. The second way is what \mandi\ lets you do.
+% which produces the same output. In the second example, note that the units are abstracted
+% so the user need not remember them.
%
-% \[ K \approx \onehalf (\mass{2})(\velocity{2})^2 \]
-%
-% The second way is more readable if you come back to the document, perhaps having
-% not looked at the source code for a while. Suppose you want to use vectors quantities.
-% That's no problem because \mandi\ handles vector quantities.
+% The second way is more readable if you come back to the source document, perhaps having
+% not looked at it for a while. Suppose you want to use vectors quantities. That's no problem
+% because \mandi\ handles vector quantities.
%
-% \begin{center}
-% |Calculate the magnitude of \momentum{\mivector{3,2,5}}.|
-% \end{center}
-%
-% produces
-%
-% \begin{center}
-% Calculate the magnitude of \momentum{\mivector{3,2,5}}.
-% \end{center}
+%\iffalse
+%<*example>
+%\fi
+\begin{dispExample}
+Calculate the magnitude of \momentum{\mivector{3,2,5}}.
+\end{dispExample}
+%\iffalse
+%</example>
+%\fi
%
% The underlying strategy is to \textit{think about how you would say what you want
% to write and then write it the way you would say it}. With a few exceptions, this
@@ -409,22 +374,21 @@ and includes the derived files README
%
% If you want to save time in writing out the energy principle, just use
%
-% \begin{center}
-% |\energyprinciple|
-% \end{center}
-%
-% which gives
-%
-% \[
-% \energyprinciple
-% \]
+%\iffalse
+%<*example>
+%\fi
+\begin{dispExample}
+\energyprinciple
+\end{dispExample}
+%\iffalse
+%</example>
+%\fi
%
-% with fewer keystrokes, and it's easier to remember.
+% which, as you can see, takes fewer keystrokes and it's easier to remember.
%
% This barely scratches the surface in describing \mandi\ so continue reading this
% document to see everything this package can do.
%
-% \newpage
% \section{Features and Commands}
% \subsection{Autosized Parentheses}
% An experimental feature of \mandi\ is autosized parentheses in math mode. This means
@@ -432,8 +396,25 @@ and includes the derived files README
% size correctly. Note that this only works in math mode, only works for parentheses and
% not for other delimiters.
%
-% To illustrate, |(\oofpezmathsymbol)| gives (\oofpezmathsymbol) but
-% |\((\oofpezmathsymbol)\)| gives \((\oofpezmathsymbol)\).
+%\iffalse
+%<*example>
+%\fi
+\begin{dispExample}
+(\oofpezmathsymbol) is how it looks in text mode.
+\end{dispExample}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{dispExample}
+\( (\oofpezmathsymbol) \) is how it looks in math mode.
+\end{dispExample}
+%\iffalse
+%</example>
+%\fi
%
% \subsection{SI Base Units}
% This is not a tutorial on SI units and the user is assumed to be familiar with SI
@@ -444,91 +425,82 @@ and includes the derived files README
% it \textit{duration} in most cases), \textit{electric current}, \textit
% {thermodynamic temperature}, \textit{amount}, and \textit{luminous intensity}.
% These shortcuts are used internally and need not explicitly be invoked by the
-% user.\medskip
+% user.
%
-% \DescribeMacro{\m}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=metre or SI unit of spatial displacement (length)}
-\m
-\end{tcblisting}
+\begin{docCommand}{m}{}
+ Command for metre, the SI unit of spatial displacement (length).
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\kg}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=kilogram or SI unit of mass}
-\kg
-\end{tcblisting}
+\begin{docCommand}{kg}{}
+ Command for kilogram, the SI unit of mass.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\s}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=second or SI unit of temporal displacement (duration)}
-\s
-\end{tcblisting}
+\begin{docCommand}{s}{}
+ Command for second, the SI unit of temporal displacement (duration).
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\A}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=ampere or SI unit of electric current}
-\A
-\end{tcblisting}
+\begin{docCommand}{A}{}
+ Command for ampere, the SI unit of electric current.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\K}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=kelvin or SI unit of thermodynamic temperature}
-\K
-\end{tcblisting}
+\begin{docCommand}{K}{}
+Command for kelvin, the SI unit of thermodynamic temperature.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\mol}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=mole or SI unit of amount}
-\mol
-\end{tcblisting}
+\begin{docCommand}{mol}{}
+Command for mole, the SI unit of amount.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\cd}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=candela or SI unit of luminous intensity}
-\cd
-\end{tcblisting}
+\begin{docCommand}{cd}{}
+Command for candela, the SI unit of luminous intensity.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% If \mandi\ was invoked with \opt{baseunits}, then every physical
-% quantity will have a unit that is some product of powers of these seven base SI
-% units. Exceptions are angular quantities, which will include either degrees or
-% radians depending upon the application. Again, this is what we mean by
-% \baseunits\ form.\medskip
+% If \mandi\ was invoked with \opt{baseunits}, then every physical quantity will
+% have a unit that is some product of powers of these seven base SI units. Exceptions
+% are angular quantities, which will include either degrees or radians depending upon
+% the application. Again, this is what we mean by \baseunits\ form.
%
% Certain combinations of the SI base units have nicknames and each such
% combination and nickname constitutes a \textit{derived unit}. Derived units are
@@ -543,141 +515,855 @@ and includes the derived files README
% not Newton. Again, using these select nicknames for certain combinations of base units
% is what we mean by \drvdunits\ form.
%
-% \newpage
% \subsection{Defining Physics Quantities}
%
-% \DescribeMacro{\newphysicsquantity}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only,title=define a physics quantity\\
- \cs{newphysicsquantity}\marg{newname}\marg{\baseunits}\oarg{\drvdunits}
- \oarg{\tradunits}}
-Here is how spatial displacement is defined internally.
-\newphysicsconstant{displacement}{\m}[\m][\m]
-\end{tcblisting}
+\begin{docCommand}{newphysicsquantity}
+ {\marg{newname}\marg{\baseunits}\oarg{\drvdunits}\oarg{\tradunits}}
+ Defines a new physics quantity and its associated commands.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
% Using this command causes several things to happen.
% \begin{itemize}
-% \item A command |\newname|\marg{magnitude}, where |newname| is the first
-% argument passed to \\
-% |\newphysicsquantity|, is created that takes one mandatory
+% \item A command \colDef{\cs{newname}}\marg{magnitude}, where \colDef{newname} is the
+% first argument of
+% \colDef{\cs{newphysicsquantity}}, is created that takes one mandatory
% argument, a numerical magnitude. Subsequent use of your defined scalar quantity
-% can be invoked by typing \\ |\newname|\marg{magnitude} and the units will be
+% can be invoked by typing \colDef{\cs{newname}}\marg{magnitude} and the units will be
% typeset according to the options given when \mandi\ was loaded. Note that if the
% \drvdunits\ and \tradunits\ forms are not specified, they will be
% populated with the \baseunits\ form.
-% \item A command |\newnamebaseunit|\marg{magnitude} is created that expresses
+% \item A command \colDef{\cs{newnamebaseunit}}\marg{magnitude} is created that expresses
% the quantity and its units in \baseunits\ form.
-% \item A command |\newnamedrvdunit|\marg{magnitude} is created that expresses
+% \item A command \colDef{\cs{newnamedrvdunit}}\marg{magnitude} is created that expresses
% the quantity and its units in \drvdunits\ form. This command is created whether
% or not the first optional argument is provided.
-% \item A command |\newnametradunit|\marg{magnitude} is created that
+% \item A command \colDef{\cs{newnametradunit}}\marg{magnitude} is created that
% expresses the quantity and its units in \tradunits\ form. This command is
% created whether or not the first optional argument is provided.
-% \item A command |\newnameonlybaseunit|\marg{magnitude} is created that
-% expresses
-% \textbf{only} the quantity's units in \baseunits\ form.
-% \item A command |\newnameonlydrvdunit|\marg{magnitude} is created that
+% \item A command \colDef{\cs{newnameonlybaseunit}}\marg{magnitude} is created that
+% expresses \textbf{only} the quantity's units in \baseunits\ form.
+% \item A command \colDef{\cs{newnameonlydrvdunit}}\marg{magnitude} is created that
% expresses \textbf{only} the quantity's units in \drvdunits\ form.
-% \item A command |\newnameonlytradunit|\marg{magnitude} is created that
+% \item A command \colDef{\cs{newnameonlytradunit}}\marg{magnitude} is created that
% expresses \textbf{only} the quantity's units in \tradunits\ form.
-% \item A command |\newnamevalue|\marg{magnitude} is created that expresses
+% \item A command \colDef{\cs{newnamevalue}}\marg{magnitude} is created that expresses
% \textbf{only} the quantity's numerical value.
% \end{itemize}
%
-% To typeset a numerical displacement, you would merely type |\displacement{3}|
-% to get \displacement{3} in a calculation.
-%
% \subsubsection{Defining Vector Quantities}
%
% Nothing special is necessary for defining vector quantities, but a formatted
-% vector is used when invoking the value of that quantity. Thus, typing
-% |\displacement{\mivector{3,2,-1}}| gives \displacement{\mivector{3,2,-1}} precisely
-% as expected.
+% vector is used when invoking the value of that quantity.
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{dispExample}
+\displacement{\mivector{3,2,-1}}
+\end{dispExample}
+%\iffalse
+%</example>
+%\fi
%
-% \newpage
% \subsection{First Semester Physics}
-% The first semester of \mi\ focuses on mechanics, dynamics, and statistical mechanics.
+% The first semester of \mi\, and indeed most traditional introductory calculus-based
+% physics course, focuses on mechanics, dynamics, and statistical mechanics.
%
% \subsubsection{Predefined Quantities}
%
% The seven fundamental quantities are similarly defined and examples of their
% usage is given in the following table.
%
-% \begin{center}
-% \begin{tabular}{c c}
-% |\displacement{3.14}| & \displacement{3.14} \\
-% |\mass{2.81}| & \mass{2.81} \\
-% |\duration{4.32}| & \duration{4.32} \\
-% |\current{5.19}| & \current{5.19} \\
-% |\temperature{273}| & \temperature{273} \\
-% |\amount{2.87}| & \amount{2.87} \\
-% |\luminous{5.64}| & \luminous{5.64} \\
-% \end{tabular}
-% \end{center}
-%
-% Okay, so much for the base quantities. While we're at it, let's also go ahead and
-% define plane angle, solid angle, and a few non-SI units of angular measure, energy,
-% and distance.
-%
-% \begin{center}
-% \begin{tabular}{c c}
-% |\planeangle{2.88}| & \planeangle{2.88} \\
-% |\solidangle{4\pi}| & \solidangle{4\pi} \\
-% |\indegrees{30.1}| & \indegrees{30.1} \\
-% |\inarcminutes{30.1}| & \inarcminutes{30.1} \\
-% |\inarcseconds{30.1}| & \inarcseconds{30.1} \\
-% |\ineV{10.2}| & \ineV{10.2} \\
-% |\inAU{5.2}| & \inAU{5.2}
-% \end{tabular}
-% \end{center}
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{displacement}{\marg{magnitude}}
+Command for displacement.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a displacement of \displacement{5} \\
+a displacement of \displacement{\mivector{3,2,-1}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{mass}{\marg{magnitude}}
+Command for mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a mass of \mass{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{duration}{\marg{magnitude}}
+Command for duration.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a duration of \duration{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{current}{\marg{magnitude}}
+Command for current.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a current of \current{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{temperature}{\marg{magnitude}}
+Command for temperature.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a temperature of \temperature{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{amount}{\marg{magnitude}}
+Command for amount.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an amount of \amount{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{luminous}{\marg{magnitude}}
+Command for luminous intensity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a luminous intensity of \luminous{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+% While we're at it, let's also go ahead and define a few non-SI units from astronomy
+% and astrophysics.
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{planeangle}{\marg{magnitude}}
+Command for plane angle in radians.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a plane angle of \planeangle{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{solidangle}{\marg{magnitude}}
+Command for solidangle.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a solid angle of \solidangle{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{indegrees}{\marg{magnitude}}
+Command for plane angle in degrees.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a plane angle of \indegrees{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inarcminutes}{\marg{magnitude}}
+Command for plane angle in minutes of arc.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an angle of \inarcminutes{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inarcseconds}{\marg{magnitude}}
+Command for plane angle in seconds of arc.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an angle of \inarcseconds{5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inFarenheit}{\marg{magnitude}}
+Command for temperature in degrees Farenheit.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a temperature of \inFarenheit{68}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inCelsius}{\marg{magnitude}}
+Command for temperature in degrees Celsius.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a temperature of \inCelsius{20}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{ineV}{\marg{magnitude}}
+Command for energy in electron volts.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an energy of \ineV{10.2}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inMeVocs}{\marg{magnitude}}
+Command for mass in \(\mathrm{MeV}\per\msup{c}{2}\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a mass of \inMeVocs{0.511}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inMeVoc}{\marg{magnitude}}
+Command for momentum in \(\mathrm{MeV}\per c\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a momentum of \inMeVoc{3.6}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inAU}{\marg{magnitude}}
+Command for displacement in astronomical units.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a semimajor axis of \inAU{5.2}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inly}{\marg{magnitude}}
+Command for displacement in light years.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a distance of \inly{4.3}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{incyr}{\marg{magnitude}}
+Command for displacement in light years written differently.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a distance of \incyr{4.3}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inpc}{\marg{magnitude}}
+Command for displacement in parsecs.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a distance of \inpc{4.3}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarL}{\marg{magnitude}}
+Command for luminosity in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a luminosity of \insolarL{4.3}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarT}{\marg{magnitude}}
+Command for temperature in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a temperature of \insolarT{2}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarR}{\marg{magnitude}}
+Command for radius in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a radius of \insolarR{4.3}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarM}{\marg{magnitude}}
+Command for mass in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a mass of \insolarM{4.3}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarF}{\marg{magnitude}}
+Command for flux in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a flux of \insolarF{4.3}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarf}{\marg{magnitude}}
+Command for apparent flux in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an apparent flux of \insolarf{4.3}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarMag}{\marg{magnitude}}
+Command for absolute magnitude in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an absolute magnitude of \insolarMag{2}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarmag}{\marg{magnitude}}
+Command for apparent magnitude in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an apparent magnitude of \insolarmag{2}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolarD}{\marg{magnitude}}
+Command for distance in solar multiples.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a distance of \insolarD{2}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{insolard}{\marg{magnitude}}
+Identical to \cs{insular} but uses \(d\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a distance of \insolard{2}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
% Angles are confusing in introductory physics because sometimes we write the unit
% and sometimes we do not. Some concepts, such as flux, are simplified by
-% introducing solid angle.\medskip
+% introducing solid angle.
%
% Now let us move on into first semester physics, defining quantities in the approximate
% order in which they appear in \mi. Use |\scin[]{}| to get
% scientific notation, with the mantissa as the optional first argument and the exponent
-% as the required second argument. An optional third argument specifies a unit, but that
-% is not needed in the following examples.
-%
-% \begin{center}
-% \begin{tabular}{c c}
-% |\velocityc{0.24}| & \velocityc{0.24} \\
-% |\velocity{2.99}| & \velocity{2.99} \\
-% |\gamman{4.32}| & \gamman{4.32} \\
-% |\momentum{\scin[2.44]{4}}| & \momentum{\scin[2.44]{4}} \\
-% |\acceleration{9.81}| & \acceleration{9.81} \\
-% |\impulse{3.56}| & \impulse{3.56} \\
-% |\force{2.84}| & \force{2.84} \\
-% |\springstiffness{6.92}| & \springstiffness{6.92} \\
-% |\springstretch{0.212}| & \springstretch{0.212} \\
-% |\area{0.125}| & \area{0.125} \\
-% |\volume{5.33}| & \volume{5.33} \\
-% |\linearmassdensity{2.33}| & \linearmassdensity{2.33} \\
-% |\areamassdensity{3.60}| & \areamassdensity{3.60} \\
-% |\volumemassdensity{27.4}| & \volumemassdensity{27.4} \\
-% |\youngsmodulus{\scin[2.12]{9}}| & \youngsmodulus{\scin[2.12]{9}} \\
-% |\work{4.04}| & \work{4.04} \\
-% |\energy{4.40}| & \energy{4.40} \\
-% |\power{100.2}| & \power{100.2} \\
-% |\angularvelocity{3.02}| & \angularvelocity{3.02} \\
-% |\angularacceleration{5.32}| & \angularacceleration{5.32} \\
-% |\angularmomentum{6.81}| & \angularmomentum{6.81} \\
-% |\momentofinertia{4.59}| & \momentofinertia{4.59} \\
-% |\torque{3.40}| & \torque{3.40} \\
-% |\entropy{5.95}| & \entropy{5.95} \\
-% |\wavelength{\scin[4.00]{-7}}| & \wavelength{\scin[4.00]{-7}} \\
-% |\wavenumber{\scin[2.50]{6}}| & \wavenumber{\scin[2.50]{6}} \\
-% |\frequency{\scin[7.50]{14}}| & \frequency{\scin[7.50]{14}} \\
-% |\angularfrequency{\scin[4.70]{15}}| & \angularfrequency{\scin[4.70]{15}}
-% \end{tabular}
-% \end{center}
+% as the required second argument. |\scin| has an optional third argument that specifies
+% a unit, but that is not needed or used in the following examples.
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{velocityc}{\marg{magnitude}}
+Command for magnitude of velocity as a fraction of \(c\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a velocity of \velocityc{0.9987} \\
+a velocity of \velocityc{\mivector{0,0.9987,0}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{velocity}{\marg{magnitude}}
+Command for magnitude of velocity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a velocity of \velocity{2.34} \\
+a velocity of \velocity{\mivector{3,2,-1}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{lorentz}{\marg{magnitude}}
+Command for relativistic Lorentz factor.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a Lorentz factor of \lorentz{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{momentum}{\marg{magnitude}}
+Command for momentum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a momentum of \momentum{2.34} \\
+a momentum of \momentum{\mivector{3,2,-1}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{acceleration}{\marg{magnitude}}
+Command for acceleration.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an acceleration of \acceleration{2.34} \\
+an acceleration of \acceleration{\mivector{3,2,-1}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{impulse}{\marg{magnitude}}
+Command for impulse.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an impulse of \impulse{2.34} \\
+an impulse of \impulse{\mivector{3,2,-1}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{force}{\marg{magnitude}}
+Command for force.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a force of \force{2.34} \\
+a force of \force{\mivector{3,2,-1}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{springstiffness}{\marg{magnitude}}
+Command for spring stiffness.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a spring stiffness of \springstiffness{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{springstretch}{\marg{magnitude}}
+Command for spring stretch.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a spring stretch of \springstretch{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{area}{\marg{magnitude}}
+Command for area.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an area of \area{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{volume}{\marg{magnitude}}
+Command for volume.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a volume of \volume{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{linearmassdensity}{\marg{magnitude}}
+Command for linear mass density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a linear mass density of \linearmassdensity{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{areamassdensity}{\marg{magnitude}}
+Command for area mass density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an area mass density of \areamassdensity{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{volumemassdensity}{\marg{magnitude}}
+Command for volume mass density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a volume mass density of \volumemassdensity{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{youngsmodulus}{\marg{magnitude}}
+Command for Young's modulus.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a Young's modulus of \youngsmodulus{\scin[2.34]{9}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{work}{\marg{magnitude}}
+Command for work.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an amount of work \work{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{energy}{\marg{magnitude}}
+Command for energy. Work and energy have the same unit, but are conceptually different.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an amount of energy \energy{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{power}{\marg{magnitude}}
+Command for power.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an amount of power \power{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{angularvelocity}{\marg{magnitude}}
+Command for angular velocity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an angular velocity of \angularvelocity{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{angularacceleration}{\marg{magnitude}}
+Command for angular acceleration.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an angular acceleration of \angularacceleration{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{angularmomentum}{\marg{magnitude}}
+Command for angular momentum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an angular momentum of \angularmomentum{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{momentofinertia}{\marg{magnitude}}
+Command for moment of inertia.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a moment of inertia of \momentofinertia{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{torque}{\marg{magnitude}}
+Command for torque.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a torque of \torque{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{entropy}{\marg{magnitude}}
+Command for entropy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an entropy of \entropy{2.34}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{wavelength}{\marg{magnitude}}
+Command for wavelength.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a wavelength of \wavelength{\scin[4.00]{-7}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{wavenumber}{\marg{magnitude}}
+Command for wavenumber.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a wavenumber of \wavenumber{\scin[2.50]{6}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{frequency}{\marg{magnitude}}
+Command for frequency.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a frequency of \frequency{\scin[7.50]{14}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{angularfrequency}{\marg{magnitude}}
+Command for angularfrequency.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an angular frequency of \angularfrequency{\scin[4.70]{15}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
% Two quick thoughts here. First, work and energy are similar to momentum and impulse
% in that they come from two different concepts. Work comes from force acting through
@@ -687,62 +1373,456 @@ Here is how spatial displacement is defined internally.
% have different names for the vector and the magnitude of the vector. I decided to put
% it on the same footing as momentum, acceleration, and force.
%
-% \newpage
% \subsection{Second Semester Physics}
% The second semester of \mi\ focuses on electromagnetic theory, and there are many
% primary and secondary quantities.
%
% \subsubsection{Predefined Quantities}
%
-% \begin{center}
-% \begin{tabular}{c c}
-% |\charge{\scin[2]{-9}}| & \charge{\scin[2]{-9}} \\
-% |\permittivity{\scin[9]{-12}}| & \permittivity{\scin[9]{-12}} \\
-% |\electricfield{\scin[2]{5}}| & \electricfield{\scin[2]{5}} \\
-% |\electricdipolemoment{\scin[3]{-22}}| & \electricdipolemoment{\scin[3]{-22}} \\
-% |\permeability{\scin[4\pi]{-7}}| & \permeability{\scin[4\pi]{-7}} \\
-% |\magneticfield{1.25}| & \magneticfield{1.25} \\
-% |\cmagneticfield{1.25}| & \cmagneticfield{1.25} \\
-% |\linearchargedensity{1.25}| & \linearchargedensity{1.25} \\
-% |\areachargedensity{1.25}| & \areachargedensity{1.25} \\
-% |\volumechargedensity{1.25}| & \volumechargedensity{1.25} \\
-% |\mobility{\scin[4.5]{-3}}| & \mobility{\scin[4.5]{-3}} \\
-% |\numberdensity{\scin[2]{18}}| & \numberdensity{\scin[2]{18}} \\
-% |\polarizability{\scin[1.96]{-40}}| & \polarizability{\scin[1.96]{-40}} \\
-% |\electricpotential{1.5}| & \electricpotential{1.5} \\
-% |\emf{1.5}| & \emf{1.5} \\
-% |\dielectricconstant{1.5}| & \dielectricconstant{1.5} \\
-% |\indexofrefraction{1.5}| & \indexofrefraction{1.5} \\
-% |\relativepermittivity{0.9}| & \relativepermittivity{0.9} \\
-% |\relativepermeability{0.9}| & \relativepermeability{0.9} \\
-% |\energydensity{1.25}| & \energydensity{1.25} \\
-% |\electroncurrent{\scin[2]{18}}| & \electroncurrent{\scin[2]{18}} \\
-% |\conventionalcurrent{0.003}| & \conventionalcurrent{0.003} \\
-% |\magneticdipolemoment{1.25}| & \magneticdipolemoment{1.25} \\
-% |\currentdensity{1.25}| & \currentdensity{1.25} \\
-% |\capacitance{1.00}| & \capacitance{1.00} \\
-% |\conductivity{1.25}| & \conductivity{1.25} \\
-% |\resistivity{1.25}| & \resistivity{1.25} \\
-% |\resistance{\scin[1]{6}}| & \resistance{\scin[1]{6}} \\
-% |\conductance{1.25}| & \conductance{1.25}
-% \end{tabular}
-% \end{center}
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{charge}{\marg{magnitude}}
+Command for electric charge.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a charge of \charge{\scin[2]{-9}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{permittivity}{\marg{magnitude}}
+Command for permittivity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a permittivity of \permittivity{\scin[9]{-12}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{electricdipolemoment}{\marg{magnitude}}
+Command for electric dipole moment.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an electric dipole moment of \electricdipolemoment{\scin[2]{5}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{permeability}{\marg{magnitude}}
+Command for permeability.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a permeability of \permeability{\scin[4\pi]{-7}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magneticfield}{\marg{magnitude}}
+Command for magnetic field (also called magnetic induction).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a magnetic field of \magneticfield{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{cmagneticfield}{\marg{magnitude}}
+Command for product of \(\mathrm{c}\) and magnetic field. This quantity is convenient
+for symmetry.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a magnetic field of \cmagneticfield{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{linearchargedensity}{\marg{magnitude}}
+Command for linear charge density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a linear charge density of \linearchargedensity{\scin[4.5]{-3}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{areachargedensity}{\marg{magnitude}}
+Command for area charge density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an area charge density of \areachargedensity{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{volumechargedensity}{\marg{magnitude}}
+Command for volume charge density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a volume charge density of \volumechargedensity{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{mobility}{\marg{magnitude}}
+Command for electron mobility.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a mobility of \areachargedensity{\scin[4.5]{-3}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{numberdensity}{\marg{magnitude}}
+Command for electron number density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a number density of \numberdensity{\scin[2]{18}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{polarizability}{\marg{magnitude}}
+Command for polarizability.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a polarizability of \polarizability{\scin[1.96]{-40}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{electricpotential}{\marg{magnitude}}
+Command for electric potential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an electric potential of \polarizability{1.5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{emf}{\marg{magnitude}}
+Command for emf.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an emf of \emf{1.5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dielectricconstant}{\marg{magnitude}}
+Command for dielectric constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a dielectric constant of \dielectricconstant{1.5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{indexofrefraction}{\marg{magnitude}}
+Command for index of refraction.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an index of refraction of \indexofrefraction{1.5}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{relativepermittivity}{\marg{magnitude}}
+Command for relative permittivity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a relative permittivity of \relativepermittivity{0.9}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{relativepermeability}{\marg{magnitude}}
+Command for relative permeability.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a relative permeability of \relativepermeability{0.9}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{energydensity}{\marg{magnitude}}
+Command for energy density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an energy density of \energydensity{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{electroncurrent}{\marg{magnitude}}
+Command for electron current.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an electron current of \electroncurrent{\scin[2]{18}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{conventionalcurrent}{\marg{magnitude}}
+Command for conventional current.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a conventional current of \conventionalcurrent{0.003}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magneticdipolemoment}{\marg{magnitude}}
+Command for magnetic dipole moment.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a magnetic dipole moment of \magneticdipolemoment{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{currentdensity}{\marg{magnitude}}
+Command for current density.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a current density of \currentdensity{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{electricflux}{\marg{magnitude}}
+Command for electric flux.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an electric flux of \electricflux{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magneticflux}{\marg{magnitude}}
+Command for magnetic flux.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a magnetic flux of \magneticflux{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{capacitance}{\marg{magnitude}}
+Command for capacitance.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a capacitance of \capacitance{1.00}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{inductance}{\marg{magnitude}}
+Command for inductance.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an inductance of \inductance{1.00}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{conductivity}{\marg{magnitude}}
+Command for conductivity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a conductivity of \conductivity{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{resistivity}{\marg{magnitude}}
+Command for resistivity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a resistivity of \resistivity{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{resistance}{\marg{magnitude}}
+Command for resistance.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a resistance of \resistance{\scin[1]{6}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{conductance}{\marg{magnitude}}
+Command for conductance.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a conductance of \conductance{\scin[1]{6}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magneticcharge}{\marg{magnitude}}
+Command for magnetic charge, in case it actually exists.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a magnetic charge of \magneticcharge{1.25}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{energyflux}{\marg{magnitude}}
+Command for energy flux.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+an energy flux of \energyflux{\scin[4]{26}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
-% \newpage
% \subsection{Further Words on Units}
% As you recall, when a new scalar or vector is defined, a host of other commands
% is also automatically defined. Consider momentum. The following commands are
% defined:
%
% \begin{quotation}
-% \begin{tabular}{c c c}
-% |\momentum{3}| & \momentum{3} & unit determined by global options\\
-% |\momentumbaseunit{3}| & \momentumbaseunit{3} & quantity with base unit \\
-% |\momentumdrvdunit{3}| & \momentumdrvdunit{3} & quantity with derived unit \\
-% |\momentumtradunit{3}| & \momentumtradunit{3} & quantity with traditional unit \\
-% |\momentumvalue{3}| & \momentumvalue{3} & numerical value of quantity \\
-% |\momentumonlybaseunit| & \momentumonlybaseunit & selects only base unit \\
-% |\momentumonlydrvdunit| & \momentumonlydrvdunit & selects only derived unit \\
+% \begin{tabular}{l l l}
+% |\momentum{3}| & \momentum{3} & unit determined by global options \\
+% |\momentumbaseunit{3}| & \momentumbaseunit{3} & quantity with base unit \\
+% |\momentumdrvdunit{3}| & \momentumdrvdunit{3} & quantity with derived unit \\
+% |\momentumtradunit{3}| & \momentumtradunit{3} & quantity with traditional unit \\
+% |\momentumvalue{3}| & \momentumvalue{3} & selects numerical value of quantity \\
+% |\momentumonlybaseunit| & \momentumonlybaseunit & selects only base unit \\
+% |\momentumonlydrvdunit| & \momentumonlydrvdunit & selects only derived unit \\
% |\momentumonlytradunit| & \momentumonlytradunit & selects only traditional unit
% \end{tabular}
% \end{quotation}
@@ -752,418 +1832,725 @@ Here is how spatial displacement is defined internally.
% in the table above, is to append |baseunit|, |drvdunit|, |tradunit| to the
% quantity's name, and this will override the global options for that instance.
%
-% \DescribeMacro{\hereusebaseunit}
-% \DescribeMacro{\hereusedrvdunit}
-% \DescribeMacro{\hereusetradunit}
-% A second way is to use the commands |\hereusebaseunit{}|, |\hereusedrvdunit{}|, or
-% |\hereusetradunit{}| with the quantity as the argument.
+% A second way is to use the commands that change a quantity's unit on the fly.
%
-% \begin{quotation}
-% \begin{tabular}{c c}
-% |\hereusebaseunit{\momentum{3}}| & \hereusebaseunit{\momentum{3}} \\
-% |\hereusedrvdunit{\momentum{3}}| & \hereusedrvdunit{\momentum{3}} \\
-% |\hereusetradunit{\momentum{3}}| & \hereusetradunit{\momentum{3}}
-% \end{tabular}
-% \end{quotation}
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{hereusebaseunit}{\marg{magnitude}}
+Command for using base units in place.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a momentum of \hereusebaseunit{\momentum{3}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
-% \DescribeEnv{usebaseunit}
-% \DescribeEnv{usedrvdunit}
-% \DescribeEnv{usetradunit}
-% A third way is to use the |usebaseunit|, |usedrvdunit|, |usetradunit|
-% environments. \\
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{hereusedrvdunit}{\marg{magnitude}}
+Command for using derived units in place.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a momentum of \hereusedrvdunit{\momentum{3}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
-% \begin{quotation}
-% \begin{tabular}{c c}
-% |\begin{usebaseunit}| & \\
-% | \momentum{3} | & \begin{usebaseunit}\momentum{3}\end{usebaseunit}\\
-% |\end{usebaseunit} | & \\
-% |\begin{usedrvdunit}| & \\
-% | \momentum{3} | & \begin{usedrvdunit}\momentum{3}\end{usedrvdunit}\\
-% |\end{usedrvdunit} | & \\
-% |\begin{usetradunit}| & \\
-% | \momentum{3} | & \begin{usetradunit}\momentum{3}\end{usetradunit}\\
-% |\end{usetradunit} | & \\
-% \end{tabular}
-% \end{quotation}
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{hereusetradunit}{\marg{magnitude}}
+Command for using traditional units in place.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a momentum of \hereusetradunit{\momentum{3}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
-% \DescribeMacro{\perpusebaseunit}
-% \DescribeMacro{\perpusedrvdunit}
-% \DescribeMacro{\perpusetradunit}
-% A fourth way is to use the global switches |\perpusebaseunit|, |\perpusedrvdunit|,
-% and \\
-% |\perpusetradunit| (think \textit{perpetually use\ldots}). \textbf{It's important to
-% remember that these switches override the global options for the rest of the document
-% or until overridden by one of the other two switches.}
+% A third way is to use the environments that change a quantity's unit for the
+% duration of the environment.
%
-% \newpage
-% \subsection{Expressions with Vectors}
+%\iffalse
+%<*example>
+%\fi
+\begin{docEnvironment}{usebaseunit}{}
+Environment for using base units.
+\end{docEnvironment}
+\begin{dispExample*}{sidebyside}
+\begin{usebaseunit}
+ \momentum{3}
+\end{usebaseunit}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docEnvironment}{usedrvdunit}{}
+Environment for using derived units.
+\end{docEnvironment}
+\begin{dispExample*}{sidebyside}
+\begin{usedrvdunit}
+ \momentum{3}
+\end{usedrvdunit}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docEnvironment}{usetradunit}{}
+Environment for using traditional units.
+\end{docEnvironment}
+\begin{dispExample*}{sidebyside}
+\begin{usetradunit}
+ \momentum{3}
+\end{usetradunit}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+% A fourth way is to use the three global switches that perpetually change the
+% default unit. \textbf{It's important to remember that these switches override
+% the global options for the rest of the document or until overridden by one of
+% the other two switches.}
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{perpusebaseunit}{}
+Command for perpetually using base units.
+\end{docCommand}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{perpusedrvdunit}{\marg{magnitude}}
+Command for perpetually using derived units..
+\end{docCommand}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{perpusetradunit}{\marg{magnitude}}
+Command for perpetually using traditional units..
+\end{docCommand}
+%\iffalse
+%</example>
+%\fi
+%
+% \subsection{Symbolic Expressions with Vectors}
% \subsubsection{Basic Vectors}
%
-% \DescribeMacro{\vect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for a vector quantity\\
- \cs{vect}\marg{kernel}}
+\begin{docCommand}{vect}{\marg{kernel}}
+Symbol for a vector quantity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vect{p}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\magvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for a vector quantity's magnitude\\
- \cs{magvect}\marg{kernel}}
+\begin{docCommand}{magvect}{\marg{kernel}}
+Symbol for magnitude of a vector quantity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\magvect{p}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dirvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for a vector quantity's direction\\
- \cs{dirvect}\marg{kernel}}
+\begin{docCommand}{dirvect}{\marg{kernel}}
+Symbol for direction of a vector quantity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\dirvect{p}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ncompszerovect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for the zero vector expressed in components \\
- Deprecated. Use \cs{mivector} instead.\\
- \cs{ncompszerovect}}
+\begin{docCommand}{mivector}
+ {\oarg{printeddelimiter}\marg{commadelimitedlistofcomps}\oarg{unit}}
+Generic workhorse command for vectors formatted as in \mi.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\begin{align*}
+\msub{u}{\mu} &= \mivector{\ezero,\eone,\etwo,\ethree} \\
+\vect{v} &= \mivector{1,3,5}[\velocityonlytradunit] \\
+\vect{E} &= \mivector{\oofpezmathsymbol \frac{Q}{\msup{x}{2}},0,0}
+\end{align*}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{ncompszerovect}{}
+Symbol for the zero vector expressed in components. Deprecated. Use \cs{mivector} instead.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\ncompszerovect
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-%\newpage
-% \DescribeMacro{\symvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for vector with expressions as components\\
- Deprecated. Use \cs{mivector} instead.\\
- \cs{symvect}\marg{listofcomps}}
-\symvect{\magvect{E}\cos\theta,\magvect{E}\sin\theta,0}
-\end{tcblisting}
+\begin{docCommand}{symvect}{\marg{listofcomps}}
+Command for a vector with symbolic components. Deprecated. Use \cs{mivector} instead.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\symvect{\magvect{E}\cos\theta,
+ \magvect{E}\sin\theta,0}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ncompsvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=vector with numerical components and an
- Deprecated. Use \cs{mivector} instead.\\
- optional unit\\ \cs{ncompsvect}\marg{listofcomps}\oarg{unit}}
-\ncompsvect{3,4,6}[\m\per\s]
-\end{tcblisting}
+\begin{docCommand}{ncompsvect}{\marg{listofcomps}\oarg{unit}}
+Command for a vector with numerical components and an optional unit. Deprecated.
+Use \cs{mivector} instead.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\ncompsvect{3,4,6}[\velocityonlytradunit]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\magvectncomps}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for a vector's magnitude with numerical
- components and an optional unit\\
- \cs{magvectncomps}\marg{listofcomps}\oarg{unit}}
-\magvectncomps{3.12,4.04,6.73}[\m\per\s]
-\end{tcblisting}
+\begin{docCommand}{magvectncomps}{\marg{listofcomps}\oarg{unit}}
+Expression for a vector's magnitude with numerical components and an optional unit.
+\end{docCommand}
+\begin{dispExample}
+\magvectncomps{3.12,4.04,6.73}[\velocityonlytradunit]
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompsvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of a vector\\
- \cs{scompsvect}\marg{kernel}}
+\begin{docCommand}{scompsvect}{\marg{kernel}}
+Expression for a vector's symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\scompsvect{E}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic component of a vector\\
- \cs{compvect}\marg{kernel}\marg{comp}}
+\begin{docCommand}{compvect}{\marg{kernel}\marg{component}}
+Isolates one of a vector's symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\compvect{E}{y}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\magvectscomps}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for a vector's magnitude in
- terms of its symbolic components\\ \cs{magvectscomps}\marg{kernel}}
+\begin{docCommand}{magvectscomps}{\marg{kernel}}
+Expression for a vector's magnitude in terms of its symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\magvectscomps{B}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
% \subsubsection{Position Vectors}
%
-% \DescribeMacro{\scompspos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of a position vector\\
- \cs{scompspos}}
+\begin{docCommand}{scompspos}{}
+Expression for a position vector's traditional symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\scompspos
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\comppos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of a position vector\\
- \cs{comppos}\marg{comp}}
-\comppos{y}
-\end{tcblisting}
+\begin{docCommand}{comppos}{\marg{component}}
+Isolates one symbolic component of a position vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\comppos{z}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
% \subsubsection{Differentials and Derivatives of Vectors}
-% \DescribeMacro{\dvect}
-% \DescribeMacro{\Dvect}
+%
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for the differential of a vector\\
- \cs{dvect}\marg{kernel} or \cs{Dvect}\marg{kernel}}
-\dvect{E} or \Dvect{E}
-\end{tcblisting}
+\begin{docCommand}{dvect}{\marg{kernel}}
+Symbol for the differential of a vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a change \dvect{E} in electric field
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dirdvect}
-% \DescribeMacro{\dirDvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for the direction of the differential
- of a vector\\ \cs{dirdvect}\marg{kernel} or \cs{dirDvect}\marg{kernel}}
-\dirdvect{E} or \dirDvect{E}
-\end{tcblisting}
+\begin{docCommand}{Dvect}{\marg{kernel}}
+Identical to \cs{dvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+a change \Dvect{E} in electric field
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ddirvect}
-% \DescribeMacro{\Ddirvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for the differential of a vector's
- direction\\ \cs{ddirvect}\marg{kernel} or \cs{Ddirvect}\marg{kernel}}
-\ddirvect{E} or \Ddirvect{E}
-\end{tcblisting}
+\begin{docCommand}{dirdvect}{\marg{kernel}}
+Symbol for the direction of a vector's differential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the direction \dirdvect{E} of the change
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\magdvect}
-% \DescribeMacro{\magDvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=magnitude of the differential of a vector\\
- \cs{magdvect}\marg{kernel} or \cs{magDvect}\marg{kernel}}
-\magdvect{E} or \magDvect{E}
-\end{tcblisting}
+\begin{docCommand}{dirDvect}{\marg{kernel}}
+Identical to \cs{dirdvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the direction \dirDvect{E} of the change
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dmagvect}
-% \DescribeMacro{\Dmagvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=differential of the magnitude of a vector\\
- \cs{dmagvect}\marg{kernel} or \cs{Dmagvect}\marg{kernel}}
-\dmagvect{E} or \Dmagvect{E}
-\end{tcblisting}
+\begin{docCommand}{ddirvect}{\marg{kernel}}
+Symbol for the differential of a vector's direction.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the change \ddirvect{E} in the direction
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\scompsdvect}
-% \DescribeMacro{\scompsDvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of the differential
- of a vector\\ \cs{scompsdvect}\marg{kernel} or \cs{scompsDvect}\marg{kernel}}
-\scompsdvect{E} or \scompsDvect{E}
-\end{tcblisting}
+\begin{docCommand}{Ddirvect}{\marg{kernel}}
+Identical to \cs{ddirvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the direction \Ddirvect{E} of the change
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compdvect}
-% \DescribeMacro{\compDvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one symbolic component of the differential of
- a vector\\ \cs{compdvect}\marg{kernel}\marg{comp} or \cs{compDvect}\marg{kernel}
- \marg{comp}}
-\compdvect{E}{z} or \compDvect{E}{y}
-\end{tcblisting}
+\begin{docCommand}{magdvect}{\marg{kernel}}
+Symbol for the magnitude of a vector's differential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the magnitude \magdvect{E} of the change
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompsdpos}
-% \DescribeMacro{\scompsDpos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of the differential of a
- position vector\\ \cs{scompsdpos} or \cs{scompsDpos}}
-\scompsdpos\ or \scompsDpos
-\end{tcblisting}
+\begin{docCommand}{magDvect}{\marg{kernel}}
+Identical to \cs{magdvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the magnitude \magDvect{E} of the change
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compdpos}
-% \DescribeMacro{\compDpos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of the differential of a
- position vector\\ \cs{compdpos}\marg{comp} or \cs{compDpos}\marg{comp}}
-\compdpos{z} or \compDpos{y}
-\end{tcblisting}
+\begin{docCommand}{dmagvect}{\marg{kernel}}
+Symbol for the differential of a vector's magnitude.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the change \dmagvect{E} in the magnitude
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dervect}
-% \DescribeMacro{\Dervect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for the derivative of a vector\\
- \cs{dervect}\marg{kernel}\marg{indvar} or \cs{Dervect}\marg{kernel}\marg{indvar}}
-\dervect{E}{t} or \Dervect{E}{t}
-\end{tcblisting}
+\begin{docCommand}{Dmagvect}{\marg{kernel}}
+Identical to \cs{dmagvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the change \Dmagvect{E} in the magnitude
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\dermagvect}
-% \DescribeMacro{\Dermagvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for the derivative of the magnitude of a
- vector\\ \cs{dermagvect}\marg{kernel}\marg{indvar} or
- \cs{Dermagvect}\marg{kernel}\marg{indvar}}
-\dermagvect{E}{t} or \Dermagvect{E}{t}
-\end{tcblisting}
+\begin{docCommand}{scompsdvect}{\marg{kernel}}
+Symbolic components of a vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsdvect{E}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompsdervect}
-% \DescribeMacro{\scompsDervect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of the derivative of a
- vector\\ \cs{scompsdervect}\marg{kernel}\marg{indvar} or\\
- \cs{scompsDervect}\marg{kernel}\marg{indvar}}
-\scompsdervect{E}{t} or \scompsDervect{E}{t}
-\end{tcblisting}
+\begin{docCommand}{scompsDvect}{\marg{kernel}}
+Identical to \cs{scompsdvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsDvect{E}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compdervect}
-% \DescribeMacro{\compDervect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of the derivative of a vector\\
- \cs{compdervect}\marg{kernel}\marg{indvar}\marg{comp} or\\
- \cs{compDervect}\marg{kernel}\marg{indvar}\marg{comp}}
-\compdervect{E}{t}{y} or \compDervect{E}{t}{y}
-\end{tcblisting}
+\begin{docCommand}{compdvect}{\marg{kernel}\marg{component}}
+Isolates one symbolic component of a vector's differential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the \compdvect{E}{y} component of the change
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\magdervect}
-% \DescribeMacro{\magDervect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=magnitude of the derivative of a vector\\
- \cs{magdervect}\marg{kernel}\marg{indvar} or \cs{magDervect}\marg{kernel}\marg{indvar}}
-\magdervect{E}{t} or \magDervect{E}{t}
-\end{tcblisting}
+\begin{docCommand}{compDvect}{\marg{kernel}\marg{component}}
+Identical to \cs{compdvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the \compDvect{E}{y} component of the change
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompsdpos}{}
+Symbolic components of a position vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the change in position \scompsdpos
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompsDpos}{}
+Identical to \cs{scompsdpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the change in position \scompsDpos
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compdpos}{\marg{component}}
+Isolates one component of a position vector's differential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compdpos{z} of the change
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compDpos}{\marg{component}}
+Identical to \cs{compdpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compDpos{z} of the change
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervect}{\marg{kernel}\marg{indvar}}
+Symbol for a vector's derivative with respect to an independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \dervect{E}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dervect}{\marg{kernel}\marg{indvar}}
+Identical to \cs{dervect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \Dervect{E}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dermagvect}{\marg{kernel}\marg{indvar}}
+Symbol for the derivative of a vector's magnitude with respect to an independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \dermagvect{E}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dermagvect}{\marg{kernel}\marg{indvar}}
+Identical to \cs{dermagvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \Dermagvect{E}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompsdervect}{\marg{kernel}\marg{indvar}}
+Symbolic components of a vector's derivative with respect to an independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \scompsdervect{E}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompsDervect}{\marg{kernel}\marg{indvar}}
+Identical to \cs{scompsdervect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \scompsdervect{E}{t}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\scompsderpos}
-% \DescribeMacro{\scompsDerpos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of the derivative of a
- position vector\\ \cs{scompsderpos}\marg{indvar} or \cs{scompsDerpos}\marg{indvar}}
-\scompsderpos{t} or \scompsDerpos{t}
-\end{tcblisting}
+\begin{docCommand}{compdervect}{\marg{kernel}\marg{component}\marg{indvar}}
+Isolates one component of a vector's derivative with respect to an independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \compdervect{E}{y}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compDervect}{\marg{kernel}\marg{component}\marg{indvar}}
+Identical to \cs{compdervect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \compDervect{E}{y}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magdervect}{\marg{kernel}\marg{indvar}}
+Symbol for the magnitude of a vector's derivative with respect to an independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \magdervect{E}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magDervect}{\marg{kernel}\marg{indvar}}
+Identical to \cs{magdervect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \magDervect{E}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompsderpos}{\marg{indvar}}
+Symbolic components of a position vector's derivative with respect to an independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \scompsderpos{t}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compderpos}
-% \DescribeMacro{\compDerpos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of the derivative of a position
- vector\\ \cs{compderpos}\marg{comp}\marg{indvar} or\\
- \cs{compDerpos}\marg{comp}\marg{indvar}}
-\compderpos{z}{t} or \compDerpos{z}{t}
-\end{tcblisting}
+\begin{docCommand}{scompsDerpos}{\marg{indvar}}
+Identical to \cs{scompsderpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \scompsDerpos{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compderpos}{\marg{component}\marg{indvar}}
+Isolates one component of a vector's derivative with respect to an independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \compderpos{z}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compDerpos}{\marg{component}\marg{indvar}}
+Identical to \cs{compderpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \compDerpos{z}{t}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
@@ -1174,743 +2561,1377 @@ Here is how spatial displacement is defined internally.
% you should think of a single component. Every time you see |scomps| you should
% think of a set of symbolic components. Every time you see |der| you should
% think derivative. Every time you see |dir| you should think direction. I have
-% tried to make the names simple both logically and lexically. \\
+% tried to make the names simple both logically and lexically.
%
-% \newpage
-% \subsubsection{Subscripted Vectors}
-% Now we have commands for vectors that carry subscripts, usually to identify an
+% \subsubsection{Subscripted or Indexed Vectors}
+% Now we have commands for vectors that carry subscripts or indices, usually to identify an
% object or something similar. Basically, |vect| becomes |vectsub| and |pos|
% becomes |possub|. Ideally, a subscript should not contain mathematical
% symbols. However, if you wish to do so, just wrap the symbol with
% |\(|\(\ldots \)|\)| as you normally would. All of the commands for non-subscripted
-% vectors are available for subscripted vectors. \\
+% vectors are available for subscripted vectors.
%
-% \DescribeMacro{\vectsub}
-% \DescribeMacro{\magvectsub}
-% \DescribeMacro{\dirvectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=name magnitude and direction of a subscripted
- vector\\ \cs{vectsub}\marg{kernel}\marg{sub}\\
- \cs{dirvectsub}\marg{kernel}\marg{sub}\\
- \cs{magvectsub}\marg{kernel}\marg{sub}}
-\vectsub{p}{ball} and \magvectsub{p}{ball} and \dirvectsub{p}{ball}
-\end{tcblisting}
+\begin{docCommand}{vectsub}{\marg{kernel}\marg{sub}}
+Symbol for a subscripted vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \vectsub{p}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompsvectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of a subscripted vector\\
- \cs{scompsvectsub}\marg{kernel}\marg{sub}}
-\scompsvectsub{p}{ball}
-\end{tcblisting}
+\begin{docCommand}{magvectsub}{\marg{kernel}\marg{sub}}
+Symbol for a subscripted vector's direction.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the direction \dirvectsub{p}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compvectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of a subscripted vector\\
- \cs{compvectsub}\marg{kernel}\marg{sub}\marg{comp}}
-\compvectsub{p}{ball}{z}
-\end{tcblisting}
+\begin{docCommand}{dirvectsub}{\marg{kernel}\marg{sub}}
+Symbol for a subscripted vector's magnitude.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the magnitude \magvectsub{p}{ball}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompsvectsub}{\marg{kernel}\marg{sub}}
+Symbolic components of a subscripted vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsvectsub{p}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\magvectsubscomps}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=magnitude of a subscripted vector in terms of its
- symbolic components\\ \cs{magvectsubscomps}\marg{kernel}\marg{sub}}
-\magvectsubscomps{p}{ball}
-\end{tcblisting}
+\begin{docCommand}{compvectsub}{\marg{kernel}\marg{component}\marg{sub}}
+Isolates one component of a subscripted vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compvectsub{p}{z}{ball}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magvectsubscomps}{\marg{kernel}\marg{sub}}
+Expression for a subscripted vector's magnitude in terms of symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the magnitude \magvectsubscomps{p}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompspossub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of a subscripted position
- vector\\ \cs{scompspossub}\marg{sub}}
-\scompspossub{ball}
-\end{tcblisting}
+\begin{docCommand}{scompspossub}{\marg{sub}}
+Symbolic components of a subscripted position vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompspossub{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\comppossub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of a subscripted position vector\\
- \cs{comppossub}\marg{sub}\marg{comp}}
-\comppossub{ball}{x}
-\end{tcblisting}
+\begin{docCommand}{comppossub}{\marg{component}\marg{sub}}
+Isolates one component of a subscripted position vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \comppossub{x}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dvectsub}
-% \DescribeMacro{\Dvectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=differential of a subscripted vector\\
- \cs{dvectsub}\marg{kernel}\marg{sub} or \cs{Dvectsub}\marg{kernel}\marg{sub}}
-\dvectsub{p}{ball} or \Dvectsub{p}{ball}
-\end{tcblisting}
+\begin{docCommand}{dvectsub}{\marg{kernel}\marg{sub}}
+Differential of a subscripted vector.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the change \dvectsub{p}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompsdvectsub}
-% \DescribeMacro{\scompsDvectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components the differential of a
- subscripted vector\\ \cs{scompsdvectsub}\marg{kernel}\marg{sub} or\\
- \cs{scompsDvectsub}\marg{kernel}\marg{sub}}
-\scompsdvectsub{p}{ball} or \scompsDvectsub{p}{ball}
-\end{tcblisting}
+\begin{docCommand}{Dvectsub}{\marg{kernel}\marg{sub}}
+Identical to \cs{dvectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the change \Dvectsub{p}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\compdvectsub}
-% \DescribeMacro{\compDvectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of the differential of a
- subscripted vector\\ \cs{compdvectsub}\marg{kernel}\marg{sub}\marg{comp} or\\
- \cs{compDvectsub}\marg{kernel}\marg{sub}\marg{comp}}
-\compdvectsub{p}{ball}{y} or \compDvectsub{p}{ball}{y}
-\end{tcblisting}
+\begin{docCommand}{scompsdvectsub}{\marg{kernel}\marg{sub}}
+Symbolic components of a subscripted vector's differential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsdvectsub{p}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompsdpossub}
-% \DescribeMacro{\scompsDpossub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of the differential of a
- subscripted position vector\\ \cs{scompsdpossub}\marg{sub} or\\
- \cs{scompsDpossub}\marg{sub}}
-\scompsdpossub{ball} or \scompsDpossub{ball}
-\end{tcblisting}
+\begin{docCommand}{scompsDvectsub}{\marg{kernel}\marg{sub}}
+Identical to \cs{scompsdvectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsDvectsub{p}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compdpossub}
-% \DescribeMacro{\compDpossub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of the differential of a
- subscripted position vector\\ \cs{compdpossub}\marg{sub}\marg{comp} or\\
- \cs{compDpossub}\marg{sub}\marg{comp}}
-\compdpossub{ball}{x} or \compDpossub{ball}{x}
-\end{tcblisting}
+\begin{docCommand}{compdvectsub}{\marg{kernel}\marg{component}\marg{sub}}
+Isolates one component of a subscripted vector's differential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compdvectsub{p}{y}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dervectsub}
-% \DescribeMacro{\Dervectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=derivative of a subscripted vector\\
- \cs{dervectsub}\marg{kernel}\marg{sub}\marg{indvar} or\\
- \cs{Dervectsub}\marg{kernel}\marg{sub}\marg{indvar}}
-\dervectsub{p}{ball}{t} or \Dervectsub{p}{ball}{t}
-\end{tcblisting}
+\begin{docCommand}{compDvectsub}{\marg{kernel}\marg{component}\marg{sub}}
+Identical to \cs{compdvectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compDvectsub{p}{y}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\dermagvectsub}
-% \DescribeMacro{\Dermagvectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for the derivative of the magnitude of a
- subscripted vector\\ \cs{dermagvectsub}\marg{kernel}\marg{sub}\marg{indvar} or\\
- \cs{Dermagvectsub}\marg{kernel}\marg{sub}\marg{indvar}}
-\dermagvectsub{E}{ball}{t} or \Dermagvectsub{E}{ball}{t}
-\end{tcblisting}
+\begin{docCommand}{scompsdpossub}{\marg{sub}}
+Symbolic components of a subscripted position vector's differential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsdpossub{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompsdervectsub}
-% \DescribeMacro{\scompsDervectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of the derivative of a
- subscripted vector\\ \cs{scompsdervectsub}\marg{kernel}\marg{sub}\marg{indvar} or\\
- \cs{scompsDervectsub}\marg{kernel}\marg{sub}\marg{indvar}}
-\scompsdervectsub{p}{ball}{t} or \scompsDervectsub{p}{ball}{t}
-\end{tcblisting}
+\begin{docCommand}{scompsDpossub}{\marg{sub}}
+Identical to \cs{scopmsdpossub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsDpossub{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compdervectsub}
-% \DescribeMacro{\compDervectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of the derivative of a subscripted
- vector\\ \cs{compdervectsub}\marg{kernel}\marg{sub}\marg{indvar}\marg{comp} or\\
- \cs{compDervectsub}\marg{kernel}\marg{sub}\marg{indvar}\marg{comp}}
-\compdervectsub{p}{ball}{t}{y} or \compDervectsub{p}{ball}{t}{y}
-\end{tcblisting}
+\begin{docCommand}{compdpossub}{\marg{component}\marg{sub}}
+Isolates one component of a subscripted position vector's differential.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compdpossub{x}{ball}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\magdervectsub}
-% \DescribeMacro{\magDervectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=magnitude of the derivative of a subscripted
- vector\\ \cs{magdervectsub}\marg{kernel}\marg{sub}\marg{indvar} or\\
- \cs{magDervectsub}\marg{kernel}\marg{sub}\marg{indvar}}
-\magdervectsub{p}{ball}{t} or \magDervectsub{p}{ball}{t}
-\end{tcblisting}
+\begin{docCommand}{compDpossub}{\marg{component}\marg{sub}}
+Identical to \cs{compdpossub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compDpossub{x}{ball}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectsub}{\marg{kernel}\marg{sub}\marg{indvar}}
+Symbol for derivative of a subscripted vector with respect to an independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \dervectsub{p}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dervectsub}{\marg{kernel}\marg{sub}\marg{indvar}}
+Identical to \cs{dervectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \Dervectsub{p}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dermagvectsub}{\marg{kernel}\marg{sub}\marg{indvar}}
+Symbol for the derivative of a subscripted vector's magnitude with respect to an independent
+variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \dermagvectsub{E}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dermagvectsub}{\marg{kernel}\marg{sub}\marg{indvar}}
+Identical to \cs{dermagvectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \Dermagvectsub{E}{ball}{t}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\scompsderpossub}
-% \DescribeMacro{\scompsDerpossub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbolic components of the derivative of an indexed
- position vector\\ \cs{scompsderpossub}\marg{sub}\marg{indvar} or\\
- \cs{scompsDerpossub}\marg{sub}\marg{indvar}}
-\scompsderpossub{ball}{t} or \scompsDerpossub{ball}{t}
-\end{tcblisting}
+\begin{docCommand}{scompsdervectsub}{\marg{kernel}\marg{sub}\marg{indvar}}
+Symbolic components of a subscripted vector's derivative with respect to an independent
+variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsdervectsub{p}{ball}{t}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\compderpossub}
-% \DescribeMacro{\compDerpossub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=one component of the derivative of a subscripted
- position vector\\ \cs{compderpossub}\marg{sub}\marg{indvar}\marg{comp} or\\
- \cs{compDerpossub}\marg{sub}\marg{indvar}\marg{comp}}
-\compderpossub{ball}{t}{z} or \compDerpossub{ball}{t}{z}
-\end{tcblisting}
+\begin{docCommand}{scompsDervectsub}{\marg{kernel}\marg{sub}\marg{indvar}}
+Identical to \cs{scompsdervectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsDervectsub{p}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compdervectsub}{\marg{kernel}\marg{component}\marg{sub}\marg{indvar}}
+Isolates one component of a subscripted vector's derivative with respect to an independent
+variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compdervectsub{p}{y}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compDervectsub}{\marg{kernel}\marg{component}\marg{sub}\marg{indvar}}
+Identical to \cs{compdervectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compDervectsub{p}{y}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magdervectsub}{\marg{kernel}\marg{sub}\marg{indvar}}
+Symbol for magnitude of a subscripted vector's derivative with respect to an independent
+variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \magdervectsub{p}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magDervectsub}{\marg{kernel}\marg{sub}\marg{indvar}}
+Identical to \cs{magdervectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the derivative \magDervectsub{p}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompsderpossub}{\marg{sub}\marg{indvar}}
+Symbolic components of a subscripted position vector's derivative with respect to an
+independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsderpossub{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompsDerpossub}{\marg{sub}\marg{indvar}}
+Identical to \cs{scompsderpossub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \scompsDerpossub{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compderpossub}{\marg{component}\marg{sub}\marg{indvar}}
+Isolates one component of a subscripted position vector's derivative with respect to an
+independent variable.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compderpossub{y}{ball}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{compDerpossub}{\marg{component}\marg{sub}\marg{indvar}}
+Identical to \cs{compderpossub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the component \compDerpossub{y}{ball}{t}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
% \subsubsection{Relative Vectors}
-% Sometimes we need the position, velocity, momentum, or force of/on one thing
-% relative to/due to another thing. \\
+% Sometimes it's convenient to think of the position, velocity, momentum, or force of/on
+% one thing relative to/due to another thing.
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{relpos}{\marg{sub}}
+Symbol for relative position.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \relpos{12}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{relvel}{\marg{sub}}
+Symbol for relative velocity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \relvel{12}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
-% \DescribeMacro{\relpos}
-% \DescribeMacro{\relvel}
-% \DescribeMacro{\relmom}
-% \DescribeMacro{\relfor}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=relative position or velocity or
- momentum or force vectors for two objects\\
- \cs{relpos}\marg{sub} and \cs{relvel}\marg{sub} and \cs{relmom}\marg{sub}\\
- and \cs{relfor}\marg{sub}}
-\relpos{12} and \relvel{12} and \relmom{12} and \relfor{12}
-\end{tcblisting}
+\begin{docCommand}{relmom}{\marg{sub}}
+Symbol for relative momentum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \relmom{12}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \subsubsection{Expressions Containing Dot Products}
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{relfor}{\marg{sub}}
+Symbol for relative force.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+the vector \relfor{12}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+% \subsubsection{Expressions Containing Dots}
% Now we get to commands that will save you many, many keystrokes. All of the
% naming conventions documented in earlier commands still apply. There are some
% new ones though. Every time you see |dot| you should think \textit{dot product}.
% When you see |dots| you should think \textit{dot product in terms of symbolic
% components}. When you see |dote| you should think \textit{dot product
% expanded as a sum}. These, along with the previous naming conventions, handle
-% many dot product expressions. \\
+% many dot product expressions.
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdotvect}{\marg{kernel1}\marg{kernel2}}
+Symbol for dot of two vectors as a single symbol.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotvect{\vect{F}}{\vect{v}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
-% \newpage
-% \DescribeMacro{\vectdotvect}
-% \DescribeMacro{\vectdotsvect}
-% \DescribeMacro{\vectdotevect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of two vectors as a single symbol or with
- symbolic components or as an expanded sum\\
- \cs{vectdotvect}\marg{vector1}\marg{vector2}\\
- \cs{vectdotsvect}\marg{kernel1}\marg{kernel2}\\
- \cs{vectdotevect}\marg{kernel1}\marg{kernel2}}
-\vectdotvect{\vect{F}}{\vect{v}} \\
-\vectdotsvect{F}{v} \\
+\begin{docCommand}{vectdotsvect}{\marg{kernel1}\marg{kernel2}}
+Symbol for dot of two vectors with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotsvect{F}{v}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdotevect}{\marg{kernel1}\marg{kernel2}}
+Symbol for dot of two vectors as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vectdotevect{F}{v}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\vectdotspos}
-% \DescribeMacro{\vectdotepos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of a vector and a position vector with symbolic
- components or as an expanded sum\\
- \cs{vectdotspos}\marg{kernel} or \cs{vectdotepos}\marg{kernel}}
-\vectdotspos{F} \\
+\begin{docCommand}{vectdotspos}{\marg{kernel}}
+Dot of a vector and a position vector with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotspos{F}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdotepos}{\marg{kernel}}
+Dot of a vector and a position vector as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vectdotepos{F}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\vectdotsdvect}
-% \DescribeMacro{\vectdotsDvect}
-% \DescribeMacro{\vectdotedvect}
-% \DescribeMacro{\vectdoteDvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of a vector and the differential of a vector
- with symbolic components or expanded as a sum \\
- \cs{vectdotsdvect}\marg{kernel1}\marg{kernel2}\\
- \cs{vectdotsDvect}\marg{kernel1}\marg{kernel2}\\
- \cs{vectdotedvect}\marg{kernel1}\marg{kernel2}\\
- \cs{vectdoteDvect}\marg{kernel1}\marg{kernel2}}
-\vectdotsdvect{F}{r} or \vectdotsDvect{F}{r} \\
-\vectdotedvect{F}{r} or \vectdoteDvect{F}{r} \\
-\end{tcblisting}
+\begin{docCommand}{vectdotsdvect}{\marg{kernel1}\marg{kernel2}}
+Dot of a vector a vector's differential with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotsdvect{F}{r}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\vectdotsdpos}
-% \DescribeMacro{\vectdotsDpos}
-% \DescribeMacro{\vectdotedpos}
-% \DescribeMacro{\vectdoteDpos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of a vector and the differential position
- vector with symbolic components or expanded as a sum \\
- \cs{vectdotsdpos}\marg{kernel} or \cs{vectdotsDpos}\marg{kernel}\\
- \cs{vectdotedpos}\marg{kernel} or \cs{vectdoteDpos}\marg{kernel}}
-\vectdotsdpos{F} or \vectdotsDpos{F} \\
-\vectdotedpos{F} or \vectdoteDpos{F}
-\end{tcblisting}
+\begin{docCommand}{vectdotsDvect}{\marg{kernel1}\marg{kernel2}}
+Identical to \cs{vectdotsdvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotsDvect{F}{r}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\vectsubdotsvectsub}
-% \DescribeMacro{\vectsubdotevectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of two subscripted vectors with symbolic
- components or expanded as a sum \\
- \cs{vectsubdotsvectsub}\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}\\
- \cs{vectsubdotevectsub}\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}}
-\vectsubdotsvectsub{F}{grav}{r}{ball} \\
+\begin{docCommand}{vectdotedvect}{\marg{kernel1}\marg{kernel2}}
+Dot of a vector a vector's differential as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotedvect{F}{r}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdoteDvect}{\marg{kernel1}\marg{kernel2}}
+Identical to \cs{vectdotedvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdoteDvect{F}{r}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdotsdpos}{\marg{kernel}}
+Dot of a vector and a position vector's differential with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotsdpos{F}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdotsDpos}{\marg{kernel}}
+Identical to \cs{vectdotsdpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotsDpos{F}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdotedpos}{\marg{kernel}}
+Dot of a vector and a position vector's differential as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotedpos{F}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdoteDpos}{\marg{kernel}}
+Identical to \cs{vectdotedpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdoteDpos{F}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotsvectsub}{\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}}
+Dot of two subscripted vectors with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotsvectsub{F}{grav}{r}{ball}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotevectsub}{\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}}
+Dot of two subscripted vectors as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vectsubdotevectsub{F}{grav}{r}{ball}
-\end{tcblisting}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotsdvectsub}{\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}}
+Dot of a subscripted vector and a subscripted vector's differential with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotsdvectsub{A}{ball}{B}{car}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotsDvectsub}{\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}}
+Identical to \cs{vectsubdotsdvectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotsDvectsub{A}{ball}{B}{car}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotedvectsub}{\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}}
+Dot of a subscripted vector and a subscripted vector's differential as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotedvectsub{A}{ball}{B}{car}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\vectsubdotsdvectsub}
-% \DescribeMacro{\vectsubdotsDvectsub}
-% \DescribeMacro{\vectsubdotedvectsub}
-% \DescribeMacro{\vectsubdoteDvectsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of a subscripted vector and the differential
- of a subscripted vector with symbolic components or expanded as a sum \\
- \cs{vectsubdotsdvectsub}\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2} \\
- \cs{vectsubdotsDvectsub}\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2} \\
- \cs{vectsubdotedvectsub}\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2} \\
- \cs{vectsubdoteDvectsub}\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}}
-\vectsubdotsdvectsub{A}{ball}{B}{car} \\
-\vectsubdotsDvectsub{A}{ball}{B}{car} \\
-\vectsubdotedvectsub{A}{ball}{B}{car} \\
+\begin{docCommand}{vectsubdoteDvectsub}{\marg{kernel1}\marg{sub1}\marg{kernel2}\marg{sub2}}
+Identical to \cs{vectsubdotedvectsub} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vectsubdoteDvectsub{A}{ball}{B}{car}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\vectsubdotsdvect}
-% \DescribeMacro{\vectsubdotsDvect}
-% \DescribeMacro{\vectsubdotedvect}
-% \DescribeMacro{\vectsubdoteDvect}
-%\iffalse
-%<*example>
-%\fi
-\begin{tcblisting}{title=dot product of a subscripted vector and the differential
- of a vector with symbolic components or expanded as a sum \\
- \cs{vectsubdotsdvect}\marg{kernel1}\marg{sub1}\marg{kernel2}\\
- \cs{vectsubdotsDvect}\marg{kernel1}\marg{sub1}\marg{kernel2}\\
- \cs{vectsubdotedvect}\marg{kernel1}\marg{sub1}\marg{kernel2}\\
- \cs{vectsubdoteDvect}\marg{kernel1}\marg{sub1}\marg{kernel2}}
-\vectsubdotsdvect{A}{ball}{B} \\
-\vectsubdotsDvect{A}{ball}{B} \\
-\vectsubdotedvect{A}{ball}{B} \\
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotsdvect}{\marg{kernel1}\marg{sub1}\marg{kernel2}}
+Dot of a subscripted vector and a vector's differential with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotsdvect{A}{ball}{B}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotsDvect}{\marg{kernel1}\marg{sub1}\marg{kernel2}}
+Identical to \cs{vectsubdotsdvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotsDvect{A}{ball}{B}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotedvect}{\marg{kernel1}\marg{sub1}\marg{kernel2}}
+Dot of a subscripted vector and a vector's differential as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotedvect{A}{ball}{B}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdoteDvect}{\marg{kernel1}\marg{sub1}\marg{kernel2}}
+Identical to \cs{vectsubdotedvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vectsubdoteDvect{A}{ball}{B}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\vectsubdotsdpos}
-% \DescribeMacro{\vectsubdotsDpos}
-% \DescribeMacro{\vectsubdotedpos}
-% \DescribeMacro{\vectsubdoteDpos}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of a subscripted vector and a differential
- position vector with symbolic components or expanded as a sum \\
- \cs{vectsubdotsdpos}\marg{kernel}\marg{sub} \\
- \cs{vectsubdotsDpos}\marg{kernel}\marg{sub} \\
- \cs{vectsubdotedpos}\marg{kernel}\marg{sub} \\
- \cs{vectsubdoteDpos}\marg{kernel}\marg{sub}}
-\vectsubdotsdpos{A}{ball}\\
-\vectsubdotsDpos{A}{ball}\\
-\vectsubdotedpos{A}{ball}\\
+\begin{docCommand}{vectsubdotsdpos}{\marg{kernel}\marg{sub}}
+Dot of a subscripted vector and a position vector's differential with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotsdpos{A}{ball}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotsDpos}{\marg{kernel}\marg{sub}}
+Identical to \cs{vectsubdotsdpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotsDpos{A}{ball}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdotedpos}{\marg{kernel}\marg{sub}}
+Dot of a subscripted vector and a position vector's differential as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectsubdotedpos{A}{ball}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectsubdoteDpos}{\marg{kernel}\marg{sub}}
+Identical to \cs{vectsubdotedpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vectsubdoteDpos{A}{ball}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\dervectdotsvect}
-% \DescribeMacro{\Dervectdotsvect}
-% \DescribeMacro{\dervectdotevect}
-% \DescribeMacro{\Dervectdotevect}
-%\iffalse
-%<*example>
-%\fi
-\begin{tcblisting}{title=dot product of the derivative of a vector and a vector
- with symbolic components or expanded as a sum\\
- \cs{dervectdotsvect}\marg{kernel1}\marg{indvar}\marg{kernel2}\\
- \cs{Dervectdotsvect}\marg{kernel1}\marg{indvar}\marg{kernel2}\\
- \cs{dervectdotevect}\marg{kernel1}\marg{indvar}\marg{kernel2}\\
- \cs{Dervectdotevect}\marg{kernel1}\marg{indvar}\marg{kernel2}}
-\dervectdotsvect{A}{t}{B} \\
-\Dervectdotsvect{A}{t}{B} \\
-\dervectdotevect{A}{t}{B} \\
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectdotsvect}{\marg{kernel1}\marg{indvar}\marg{kernel2}}
+Dot of a vector's derivative and a vector with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dervectdotsvect{A}{t}{B}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dervectdotsvect}{\marg{kernel1}\marg{indvar}\marg{kernel2}}
+Identical to \cs{dervectdotsvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Dervectdotsvect{A}{t}{B}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectdotevect}{\marg{kernel1}\marg{indvar}\marg{kernel2}}
+Dot of a vector's derivative and a vector as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dervectdotevect{A}{t}{B}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dervectdotevect}{\marg{kernel1}\marg{indvar}\marg{kernel2}}
+Identical to \cs{dervectdotevect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Dervectdotevect{A}{t}{B}
-\end{tcblisting}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdotsdervect}{\marg{kernel1}\marg{kernel2}\marg{indvar}}
+Dot of a vector and a vector's derivative with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotsdervect{A}{B}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdotsDervect}{\marg{kernel1}\marg{kernel2}\marg{indvar}}
+Identical to \cs{vectdotsdervect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotsDervect{A}{B}{t}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\vectdotsdervect}
-% \DescribeMacro{\vectdotsDervect}
-% \DescribeMacro{\vectdotedervect}
-% \DescribeMacro{\vectdoteDervect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of a vector and the derivative of a vector with \\
- symbolic components or expanded as a sum \\
- \cs{vectdotsdervect}\marg{kernel1}\marg{kernel2}\marg{indvar}\\
- \cs{vectdotsDervect}\marg{kernel1}\marg{kernel2}\marg{indvar}\\
- \cs{vectdotedervect}\marg{kernel1}\marg{kernel2}\marg{indvar}\\
- \cs{vectdoteDervect}\marg{kernel1}\marg{kernel2}\marg{indvar}}
-\vectdotsdervect{A}{B}{t} \\
-\vectdotsDervect{A}{B}{t} \\
-\vectdotedervect{A}{B}{t} \\
+\begin{docCommand}{vectdotedervect}{\marg{kernel1}\marg{kernel2}\marg{indvar}}
+Dot of a vector and a vector's derivative as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectdotedervect{A}{B}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectdoteDervect}{\marg{kernel1}\marg{kernel2}\marg{indvar}}
+Identical to \cs{vectdotedervect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vectdoteDervect{A}{B}{t}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\dervectdotspos}
-% \DescribeMacro{\Dervectdotspos}
-% \DescribeMacro{\dervectdotepos}
-% \DescribeMacro{\Dervectdotepos}
-%\iffalse
-%<*example>
-%\fi
-\begin{tcblisting}{title=dot product of the derivative of a vector and a position
- vector using symbolic components or expanded as a sum \\
- \cs{dervectdotspos}\marg{kernel}\marg{indvar}\\
- \cs{Dervectdotspos}\marg{kernel}\marg{indvar}\\
- \cs{dervectdotepos}\marg{kernel}\marg{indvar}\\
- \cs{Dervectdotepos}\marg{kernel}\marg{indvar}}
-\dervectdotspos{A}{t} \\
-\Dervectdotspos{A}{t} \\
-\dervectdotepos{A}{t} \\
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectdotspos}{\marg{kernel}\marg{indvar}}
+Dot of a vector's derivative and a position vector with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dervectdotspos{A}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dervectdotspos}{\marg{kernel}\marg{indvar}}
+Identical to \cs{dervectdotspos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Dervectdotspos{A}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectdotepos}{\marg{kernel}\marg{indvar}}
+Dot of a vector's derivative and a position vector as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dervectdotepos{A}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dervectdotepos}{\marg{kernel}\marg{indvar}}
+Identical to \cs{dervectdotepos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Dervectdotepos{A}{t}
-\end{tcblisting}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectdotsdvect}{\marg{kernel1}\marg{indvar}\marg{kernel2}}
+Dot of a vector's derivative and a vector's differential with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dervectdotsdvect{A}{t}{B}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{DervectdotsDvect}{\marg{kernel1}\marg{indvar}\marg{kernel2}}
+Identical to \cs{dervectdotsdvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\DervectdotsDvect{A}{t}{B}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectdotedvect}{\marg{kernel1}\marg{indvar}\marg{kernel2}}
+Dot of a vector's derivative and a vector's differential as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dervectdotedvect{A}{t}{B}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dervectdotsdvect}
-% \DescribeMacro{\DervectdotsDvect}
-% \DescribeMacro{\dervectdotedvect}
-% \DescribeMacro{\DervectdoteDvect}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=dot product of the derivative of a vector and the
- differential of a vector using symbolic components or expanded as a sum \\
- \cs{dervectdotsdvect}\marg{kernel1}\marg{indvar}\marg{kernel2}\\
- \cs{DervectdotsDvect}\marg{kernel1}\marg{indvar}\marg{kernel2}\\
- \cs{dervectdotedvect}\marg{kernel1}\marg{indvar}\marg{kernel2}\\
- \cs{DervectdoteDvect}\marg{kernel1}\marg{indvar}\marg{kernel2}}
-\dervectdotsdvect{A}{t}{B} \\
-\DervectdotsDvect{A}{t}{B} \\
-\dervectdotedvect{A}{t}{B} \\
+\begin{docCommand}{DervectdoteDvect}{\marg{kernel1}\marg{indvar}\marg{kernel2}}
+Identical to \cs{dervectdotedvect} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DervectdoteDvect{A}{t}{B}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\dervectdotsdpos}
-% \DescribeMacro{\DervectdotsDpos}
-% \DescribeMacro{\dervectdotedpos}
-% \DescribeMacro{\DervectdoteDpos}
-%\iffalse
-%<*example>
-%\fi
-\begin{tcblisting}{title=dot product of the derivative of a vector and the
- differential of a position vector using symbolic components or expanded as a sum \\
- \cs{dervectdotsdpos}\marg{kernel}\marg{indvar}\\
- \cs{DervectdotsDpos}\marg{kernel}\marg{indvar}\\
- \cs{dervectdotedpos}\marg{kernel}\marg{indvar}\\
- \cs{DervectdoteDpos}\marg{kernel}\marg{indvar}}
-\dervectdotsdpos{A}{t} \\
-\DervectdotsDpos{A}{t} \\
-\dervectdotedpos{A}{t} \\
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectdotsdpos}{\marg{kernel}\marg{indvar}}
+Dot of a vector's derivative and a position vector's differential with symbolic components.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dervectdotsdpos{A}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{DervectdotsDpos}{\marg{kernel}\marg{indvar}}
+Identical to \cs{dervectdotsdpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\DervectdotsDpos{A}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dervectdotedpos}{\marg{kernel}\marg{indvar}}
+Dot of a vector's derivative and a position vector's differential as an expanded sum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dervectdotedpos{A}{t}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{DervectdoteDpos}{\marg{kernel}\marg{indvar}}
+Identical to \cs{dervectdotedpos} but uses \(\Delta\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DervectdoteDpos{A}{t}
-\end{tcblisting}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+% \subsubsection{Expressions Containing Crosses}
+% All of the naming conventions documented in earlier commands still apply.
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{vectcrossvect}{\marg{kernel1}\marg{kernel2}}
+Cross of two vectors.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\vectcrossvect{\vect{r}}{\vect{p}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{ltriplecross}{\marg{kernel1}\marg{kernel2}\marg{kernel3}}
+Symbol for left associated triple cross product.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\ltriplecross{\vect{A}}{\vect{B}}{\vect{C}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{rtriplecross}{\marg{kernel1}\marg{kernel2}\marg{kernel3}}
+Symbol for right associated triple cross product.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\rtriplecross{\vect{A}}{\vect{B}}{\vect{C}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{ltriplescalar}{\marg{kernel1}\marg{kernel2}\marg{kernel3}}
+Symbol for left associated triple scalar product.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\ltriplescalar{\vect{A}}{\vect{B}}{\vect{C}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{rtriplescalar}{\marg{kernel1}\marg{kernel2}\marg{kernel3}}
+Symbol for right associated triple scalar product.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\rtriplescalar{\vect{A}}{\vect{B}}{\vect{C}}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
% \subsubsection{Basis Vectors and Bivectors}
% If you use geometric algebra or tensors, eventually you will need symbols for
-% basis vectors and basis bivectors. \\
+% basis vectors and basis bivectors.
%
-% \DescribeMacro{\ezero}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=basis vectors with lower indices 0 to 4
- (use \cs{ek} or \cs{e} for indices > 4)\\ \cs{zero}}
-\ezero \(\cdots\) \efour
-\end{tcblisting}
+\begin{docCommand}{ezero}{}
+Symbols for basis vectors with lower indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\ezero \eone \etwo \ethree \efour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\uezero}
-%\if false
+%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=normalized basis vectors with lower
- indices 0 to 4 (use \cs{uek} or \cs{ue} for indices > 4)\\ \cs{uezero}}
-\uezero \(\cdots\) \uefour
-\end{tcblisting}
+\begin{docCommand}{uezero}{}
+Symbols for normalized basis vectors with lower indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\uezero \ueone \uetwo \uethree \uefour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\ezerozero}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=basis bivectors with lower indices
- (use \cs{ek} or \cs{e} for indices > 4)\\ \cs{ezerozero}}
-\ezerozero \(\cdots\) \efourfour
-\end{tcblisting}
+\begin{docCommand}{ezerozero}{}
+Symbols for basis bivectors with lower indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\ezerozero \ezeroone \ezerotwo \ezerothree \ezerofour up to \efourfour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\euzero}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=basis vectors with upper indices 0 to 4
- (use \cs{euk} or \cs{eu} for indices > 4)\\ \cs{euzero}}
-\euzero \(\cdots\) \eufour
-\end{tcblisting}
+\begin{docCommand}{euzero}{}
+Symbols for basis vectors with upper indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\euzero \euone \eutwo \euthree \eufour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\euzerozero}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=basis bivectors with upper indices
- (use \cs{euk} or \cs{eu} for indices > 4)\\ \cs{euzerozero}}
-\euzerozero \(\cdots\) \eufourfour
-\end{tcblisting}
+\begin{docCommand}{euzerozero}{}
+Symbols for basis bivectors with upper indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\euzerozero \euzeroone \euzerotwo \euzerothree \euzerofour up to \eufourfour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\gzero}
-% \DescribeMacro{\guzero}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=basis vectors with \(\gamma\) as the kernel
- (use \cs{guk} or \cs{gu} for indices > 4)\\ \cs{gzero} or \cs{guzero}}
-\gzero \(\cdots\) \gfour \\
-\guzero \(\cdots\) \gufour
-\end{tcblisting}
+\begin{docCommand}{gzero}{}
+Symbols for basis vectors, with \(\gamma\) as the kernel, with lower indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\gzero \gone \gtwo \gthree \gfour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\gzerozero}
-% \DescribeMacro{\guzerozero}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=basis bivectors with \(\gamma\) as the kernel
- (use \cs{guk} or \cs{gu} for indices > 4)\\ \cs{gzerozero} or \cs{guzerozero}}
-\gzerozero \(\cdots\) \gfourfour \\
-\guzerozero \(\cdots\) \gufourfour
-\end{tcblisting}
+\begin{docCommand}{guzero}{}
+Symbols for basis vectors, with \(\gamma\) as the kernel, with upper indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\guzero \guone \gutwo \guthree \gufour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\mivector}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=generic command for vectors formatted as in \mi \\
- \cs{mivector}\oarg{printeddelimiter}\marg{commadelimitedlistofcomps}\oarg{unit}}
-\begin{align*}
- \msub{u}{\mu} &= \mivector{\ezero,\eone,\etwo,\ethree} \\
- \vect{v} &= \mivector{1,3,5}[\m\per\s] \\
- \vect{E} &= \mivector{\oofpezmathsymbol \frac{Q}{\msup{x}{2}},0,0}
-\end{align*}
-\end{tcblisting}
+\begin{docCommand}{gzerozero}{}
+Symbols for basis bivectors, with \(\gamma\) as the kernel, with lower indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\gzerozero \gzeroone \gzerotwo \gzerothree \gzerofour up to \gfourfour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\colvector}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=typesets column vectors\\
- \cs{colvect}\marg{commadelimitedlistofcomps}}
-\colvector{\msup{x}{0},\msup{x}{1},\msup{x}{2},\msup{x}{3}}
-\end{tcblisting}
+\begin{docCommand}{guzerozero}{}
+Symbols for basis bivectors, with \(\gamma\) as the kernel, with upper indices up to 4.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\guzerozero \guzeroone \guzerotwo \guzerothree \guzerofour up to \gufourfour
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\rowvector}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=typesets row vectors\\
- \cs{rowvect}\marg{commadelimitedlistofcomps}}
-\rowvector{\msup{x}{0},\msup{x}{1},\msup{x}{2},\msup{x}{3}}
-\end{tcblisting}
+\begin{docCommand}{colvector}{\marg{commadelimitedlistofcomps}}
+Typesets column vectors.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\colvector{\msup{x}{0},\msup{x}{1},\msup{x}{2},
+\msup{x}{3}}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompscvect}
-% \ntodo[Suggestion]{Allow for superscripts.}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=typesets symbolic components of column 3- or 4-vectors
-(use any nonzero value for the optional argument to typeset a 4-vector\\
- \cs{scompscvect}\oarg{anynonzero}\marg{kernel}}
+\begin{docCommand}{rowvector}{\marg{commadelimitedlistofcomps}}
+Typesets row vectors.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\rowvector{\msup{x}{0},\msup{x}{1},\msup{x}{2},
+\msup{x}{3}}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{scompscvect}{\oarg{anynonzero}\marg{kernel}}
+\ntodo[Suggestion]{Allow for superscripts.}Typesets symbolic components of column 3- or
+4-vectors (use any nonzero value for the optional argument to typeset a 4-vector).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\begin{align*}
- \vect{p} &= \scompscvect{p} \\
- \vect{p} &= \scompscvect[4]{p}
+\vect{p} &= \scompscvect{p} \\
+\vect{p} &= \scompscvect[4]{p}
\end{align*}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scompsrvect}
-% \ntodo[Suggestion]{Allow for superscripts.}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=typesets symbolic components of row 3- or 4-vectors
-(use any nonzero value for the optional argument to typeset a 4-vector\\
- \cs{scompscvect}\oarg{anynonzero}\marg{kernel}}
+\begin{docCommand}{scompsrvect}{\oarg{anynonzero}\marg{kernel}}
+\ntodo[Suggestion]{Allow for superscripts.}Typesets symbolic components of row 3- or
+4-vectors (use any nonzero value for the optional argument to typeset a 4-vector).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\begin{align*}
- \vect{p} &= \scompsrvect{p} \\
- \vect{p} &= \scompsrvect[4]{p}
+\vect{p} &= \scompsrvect{p} \\
+\vect{p} &= \scompsrvect[4]{p}
\end{align*}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
% \subsection{Physical Constants}
% \subsubsection{Defining Physical Constants}
-% \DescribeMacro{\newphysicsconstant}
+%
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only,title=define a physical constant\\
- \cs{newphysicsconstant}\marg{newname}\marg{symbol}\marg{value}\marg{\baseunits}
- \oarg{\drvdunits}\oarg{\tradunits}}
+\begin{docCommand}{newphysicsconstant}
+ {\marg{newname}\marg{symbol}\marg{value}\marg{\baseunits}\oarg{\drvdunits}\oarg{\tradunits}}
+Defines a new physical constant.
+\end{docCommand}
+\begin{dispListing}
Here is how \oofpez (the Coulomb constant) is defined internally.
\newphysicsconstant{oofpez}
{\ensuremath{\frac{1}{\phantom{_o}4\pi\ssub{\epsilon}{o}}}}
@@ -1918,7 +3939,7 @@ Here is how \oofpez (the Coulomb constant) is defined internally.
{\ensuremath{\m\cubed\usk\kg\usk\s^{-4}\usk\A\rpsquared}}
[\m\per\farad]
[\newton\usk\m\squared\per\coulomb\squared]
-\end{tcblisting}
+\end{dispListing}
%\iffalse
%</example>
%\fi
@@ -1947,720 +3968,1080 @@ Here is how \oofpez (the Coulomb constant) is defined internally.
% None of these commands takes any arguments.
%
% \subsubsection{Predefined Physical Constants}
-% \DescribeMacro{\oofpez}
+%
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Coulomb constant\\ \cs{oofpez}}
+\begin{docCommand}{oofpez}{}
+Coulomb constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\oofpezmathsymbol \approx \oofpez\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\oofpezcs}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=alternate form for Coulomb constant\\ \cs{oofpezcs}}
-\(\oofpezcsmathsymbol = \oofpezcs\)
-\end{tcblisting}
+\begin{docCommand}{oofpezcs}{}
+Alternate form of Coulomb constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\oofpezcsmathsymbol \approx \oofpezcs\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\epsz}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=vacuum permittivity\\ \cs{epsz}}
-\(\epszmathsymbol = \epsz\)
-\end{tcblisting}
+\begin{docCommand}{vacuumpermittivity}{}
+Vacuum permittivity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\vacuumpermittivitymathsymbol \approx \vacuumpermittivity\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\mzofp}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Biot-Savart constant\\ \cs{mzofp}}
-\(\mzofpmathsymbol = \mzofp\)
-\end{tcblisting}
+\begin{docCommand}{mzofp}{}
+Biot-Savart constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\mzofpmathsymbol \approx \mzofp\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\muz}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=vacuum permeability\\ \cs{muz}}
-\(\muzmathsymbol = \muz\)
-\end{tcblisting}
+\begin{docCommand}{vacuumpermeability}{}
+Vacuum permeability.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\vacuumpermeabilitymathsymbol \approx \vacuumpermeability\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\kboltz}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Boltzmann constant\\ \cs{kboltz}}
-\(\kboltzmathsymbol \approx \kboltz\)
-\end{tcblisting}
+\begin{docCommand}{boltzmann}{}
+Boltzmann constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\boltzmannmathsymbol \approx \boltzmann\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\kboltznev}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=anternate Boltzmann constant\\ \cs{kboltznev}}
-\(\kboltzmathsymbol \approx \kboltznev\)
-\end{tcblisting}
+\begin{docCommand}{boltzmanninev}{}
+Alternate form of Boltlzmann constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\boltzmanninevmathsymbol \approx \boltzmanninev\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\stefan}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Stefan-Boltzmann constant\\ \cs{stefan}}
-\(\stefanmathsymbol \approx \stefan\)
-\end{tcblisting}
+\begin{docCommand}{stefan}{}
+Stefan-Boltzmann constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\stefanboltzmannmathsymbol \approx \stefanboltzmann\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\planck}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Planck constant\\ \cs{planck}}
+\begin{docCommand}{planck}{}
+Planck constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\planckmathsymbol \approx \planck\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\plancknev}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=alternate Planck constant\\ \cs{plancknev}}
-\(\planckmathsymbol \approx \plancknev\)
-\end{tcblisting}
+\begin{docCommand}{planckinev}{}
+Alternate form of Planck constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\planckmathsymbol \approx \planckinev\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\planckbar}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=reduced Planck constant (Dirac constant)\\ \cs{planckbar}}
+\begin{docCommand}{planckbar}{}
+Reduced Planck constant (Dirac constant).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\planckbarmathsymbol \approx \planckbar\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\planckbarnev}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=alternate reduced Planck constant (Dirac constant)\\
- \cs{planckbarnev}}
-\(\planckbarmathsymbol \approx \planckbarnev\)
-\end{tcblisting}
+\begin{docCommand}{planckbarinev}{}
+Alternate form of reduced Planck constant (Dirac constant).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\planckbarmathsymbol \approx \planckbarinev\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Navogadro}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Avogadro constant\\ \cs{Navogadro}}
-\(\planckbarmathsymbol \approx \Navogadro\)
-\end{tcblisting}
+\begin{docCommand}{planckc}{}
+Planck constant times light speed.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\planckcmathsymbol \approx \planckc\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\bigG}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=gravitational constant\\ \cs{bigG}}
-\(\bigGmathsymbol \approx \bigG\)
-\end{tcblisting}
+\begin{docCommand}{planckcinev}{}
+Alternate form of Planck constant times light speed.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\planckcinevmathsymbol \approx \planckcinev\)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{rydberg}{}
+Rydberg constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\rydbergmathsymbol \approx \rydberg\)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{bohrradius}{}
+Bohr radius.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\bohrradiusmathsymbol \approx \bohrradius\)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{finestructure}{}
+Fine structure constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\finestructuremathsymbol \approx \finestructure\)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{avogadro}{}
+Avogadro constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\avogadromathsymbol \approx \avogadro\)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{universalgrav}{}
+Universal gravitational constant.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\universalgravmathsymbol \approx \universalgrav\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\littleg}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Earth's surface gravitational field strength\\ \cs{littleg}}
-\(\littlegmathsymbol \approx \littleg\)
-\end{tcblisting}
+\begin{docCommand}{surfacegravfield}{}
+Earth's surface gravitational field strength.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\surfacegravfieldmathsymbol \approx \surfacegravfield\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\clight}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=magnitude of light's velocity\\ \cs{clight}}
+\begin{docCommand}{clight}{}
+Magnitude of light's velocity (photon constant).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\clightmathsymbol \approx \clight\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\clightnfn}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=magnitude of light's velocity (alternate)\\ \cs{clightnfn}}
-\(\clightnfn\)
-\end{tcblisting}
+\begin{docCommand}{clightinfeet}{}
+Alternate of magnitude of light's velocity (photon constant).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\clightinfeetmathsymbol \approx \clightinfeet\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Ratom}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=approximate atomic radius\\ \cs{Ratom}}
+\begin{docCommand}{Ratom}{}
+Approximate atomic radius.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\Ratommathsymbol \approx \Ratom\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Mproton}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=proton's mass\\ \cs{Mproton}}
+\begin{docCommand}{Mproton}{}
+Proton mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\Mprotonmathsymbol \approx \Mproton\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Mneutron}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=neutron's mass\\ \cs{Mneutron}}
+\begin{docCommand}{Mneutron}{}
+Neutron mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\Mneutronmathsymbol \approx \Mneutron\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Mhydrogen}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=hydrogen atom's mass\\ \cs{Mhydrogen}}
+\begin{docCommand}{Mhydrogen}{}
+Hydrogen atom mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\Mhydrogenmathsymbol \approx \Mhydrogen\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Melectron}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=electron's mass\\ \cs{Melectron}}
+\begin{docCommand}{Melectron}{}
+Electron mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\Melectronmathsymbol \approx \Melectron\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\echarge}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=elementary charge quantum\\ \cs{echarge}}
+\begin{docCommand}{echarge}{}
+Elementary charge quantum.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\echargemathsymbol \approx \echarge\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Qelectron}
-% \DescribeMacro{\qelectron}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=electron's charge\\ \cs{Qelectron} or \cs{qelectron}}
-\(\qelectronmathsymbol \approx \qelectron\)
-\end{tcblisting}
+\begin{docCommand}{Qelectron}{}
+Electron charge.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\Qelectronmathsymbol \approx \Qelectron\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Qproton}
-% \DescribeMacro{\qproton}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=proton's charge\\ \cs{Qproton} or \cs{qproton}}
-\(\qprotonmathsymbol \approx \qproton\)
-\end{tcblisting}
+\begin{docCommand}{qelectron}{}
+Alias for \cs{Qelectron}.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\MEarth}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Earth's mass\\ \cs{MEarth}}
+\begin{docCommand}{Qproton}{}
+Proton charge.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\Qprotonmathsymbol \approx \Qproton\)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{qproton}{}
+Alias for \cs{Qproton}.
+\end{docCommand}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{MEarth}{}
+Earth's mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\MEarthmathsymbol \approx \MEarth\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\MMoon}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Moon's mass\\ \cs{MMoon}}
+\begin{docCommand}{MMoon}{}
+Moon's mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\MMoonmathsymbol \approx \MMoon\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\MSun}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Sun's mass\\ \cs{MSun}}
+\begin{docCommand}{MSun}{}
+Sun's mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\MSunmathsymbol \approx \MSun\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\REarth}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Earth's radius\\ \cs{REarth}}
+\begin{docCommand}{REarth}{}
+Earth's radius.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\REarthmathsymbol \approx \REarth\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\RMoon}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Moon's radius\\ \cs{RMoon}}
+\begin{docCommand}{RMoon}{}
+Moon's radius.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\RMoonmathsymbol \approx \RMoon\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\RSun}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Sun's radius\\ \cs{RSun}}
+\begin{docCommand}{RSun}{}
+Sun's radius.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\RSunmathsymbol \approx \RSun\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ESdist}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Sun-Earth distance or Earth-Sun distance\\ \cs{ESdist} or
- \cs{SEdist}}
+\begin{docCommand}{ESdist}{}
+Earth-Sun distance.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\ESdistmathsymbol \approx \SEdist\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\EMdist}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Earth-Moon distance or Moon-Earth distance\\ \cs{EMdist} or
- \cs{MEdist}}
+\begin{docCommand}{SEdist}{}
+Alias for \cs{ESdist}.
+\end{docCommand}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{EMdist}{}
+Earth-Moon distance.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\EMdistmathsymbol \approx \EMdist\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \subsection{Astronomical Constants and Quantities}
-% \DescribeMacro{\lightyear}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=various ways of denoting light years and years and parsecs
- as units}
-\lightyear\ or \Lightyear\ or \cyear\ or \cyr\ or \yyear\ or \yr \\
-\parsec
-\end{tcblisting}
+\begin{docCommand}{MEdist}{}
+Alias for \cs{EMdist}.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\LSun}
+% \subsection{Astronomical Constants and Quantities}
+%
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Sun's luminosity\\
- \cs{LSun}}
+\begin{docCommand}{LSun}{}
+Sun's luminosity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\LSunmathsymbol \approx \LSun\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\TSun}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Sun's effective temperature\\
- \cs{TSun}}
+\begin{docCommand}{TSun}{}
+Sun's effective temperature.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\TSunmathsymbol \approx \TSun\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\MagSun}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Sun's absolute magnitude\\
- \cs{MagSun}}
+\begin{docCommand}{MagSun}{}
+Sun's absolute magnitude.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\MagSunmathsymbol \approx \MagSun\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\magSun}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Sun's apparent magnitude\\
- \cs{magSun}}
+\begin{docCommand}{magSun}{}
+Sun's apparent magnitude.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\magSunmathsymbol \approx \magSun\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Lstar}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=stellar luminosity\\
- \cs{Lstar}\oarg{object}}
-\Lstar or \Lstar[Sirius] or \Lsolar
-\end{tcblisting}
+\begin{docCommand}{Lstar}{\oarg{object}}
+Symbol for stellar luminosity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Lstar \Lstar[Sirius]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Lsolar}{}
+Symbol for solar luminosity as a unit. Really just an alias for |\Lstar[\(\odot\)]|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Lsolar
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Tstar}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=stellar and solar temperature\\
- \cs{Tstar}\oarg{object}}
-\Tstar or \Tstar[Sirius] or \Tsolar
-\end{tcblisting}
+\begin{docCommand}{Tstar}{\oarg{object}}
+Symbol for stellar temperature.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Tstar \Tstar[Sirius]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Rstar}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=stellar and solar radius\\
- \cs{Rstar}\oarg{object}}
-\Rstar or \Rstar[Sirius] or \Rsolar
-\end{tcblisting}
+\begin{docCommand}{Tsolar}{}
+Symbol for solar temperature as a unit. Really just an alias for |\Tstar[\(\odot\)]|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Tsolar
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Mstar}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=stellar and solar mass\\
- \cs{Mstar}\oarg{object}}
-\Mstar or \Mstar[Sirius] or \Msolar
-\end{tcblisting}
+\begin{docCommand}{Rstar}{\oarg{object}}
+Symbol for stellar radius.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Rstar \Rstar[Sirius]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Fstar}
-% \DescribeMacro{\fstar}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=stellar and solar flux\\
- \cs{Fstar}\oarg{object} or \cs{fstar}\oarg{object}}
-\Fstar or \Fstar[Sirius] or \FSun or \Fsolar or \fstar or
-\fstar[Sirius] or \fSun or \fsolar
-\end{tcblisting}
+\begin{docCommand}{Rsolar}{}
+Symbol for solar radius as a unit. Really just an alias for |\Rstar[\(\odot\)]|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Rsolar
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Mstar}{\oarg{object}}
+Symbol for stellar mass.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Mstar \Mstar[Sirius]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Msolar}{}
+Symbol for solar mass as a unit. Really just an alias for |\Mstar[\(\odot\)]|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Msolar
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Fstar}{\oarg{object}}
+Symbol for stellar flux.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Fstar \Fstar[Sirius]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Fsolar}{}
+Symbol for solar flux as a unit. Really just an alias for |\Fstar[\(\odot\)]|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Fsolar
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{fstar}{}
+Alias for \cs{Fstar}.
+\end{docCommand}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{fsolar}{}
+Alias for \cs{fsolar}.
+\end{docCommand}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Magstar}{\oarg{object}}
+Symbol for stellar absolute magnitude.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Magstar \Magstar[Sirius]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Magstar}
-% \DescribeMacro{\magstar}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=stellar and solar magnitude\\
- \cs{Magstar}\oarg{object} or \cs{magstar}\oarg{object}}
-\Magstar or \Magstar[Sirius] or \magstar or \magstar[Sirius] or
-\Magsolar or \magsolar
-\end{tcblisting}
+\begin{docCommand}{Magsolar}{}
+Symbol for solar absolute magnitude as a unit. Really just an alias for |\Magstar[\(\odot\)]|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Magsolar
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Dstar}
-% \DescribeMacro{\dstar}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=stellar and solar distance (or diameter)\\
- \cs{Dstar}\oarg{object} or \cs{dstar}\oarg{object}}
-\Dstar or \Dstar[Sirius] or \Dsolar or \dstar or \dstar[Sirius] or
-\dsolar
-\end{tcblisting}
+\begin{docCommand}{magstar}{\oarg{object}}
+Symbol for stellar apparent magnitude.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\magstar \magstar[Sirius]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{magsolar}{}
+Symbol for solar apparent magnitude as a unit. Really just an alias for |\magstar[\(\odot\)]|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\magsolar
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dstar}{\oarg{object}}
+Symbol for stellar distance.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Dstar \Dstar[Sirius]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Dsolar}{}
+Symbol for solar distance as a unit. Really just an alias for |\Dstar[\(\odot\)]|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Dsolar
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dstar}{}
+Alias for \cs{Dstar} that uses a lower case d.
+\end{docCommand}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dsolar}{}
+Alias for \cs{Dsolar} that uses a lower case d.
+\end{docCommand}
%\iffalse
%</example>
%\fi
%
% \subsection{Frequently Used Fractions}
%
-% \DescribeMacro{\onehalf}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=small fractions with numerator 1\\
- \cs{onehalf}}
+\begin{docCommand}{onehalf}{}
+Small fractions with numerator 1 and denominators up to 10.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\onehalf \cdots \onetenth\)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\twothirds}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=small fractions with numerator 2\\
- \cs{twothirds}}
-\(\twothirds \cdots \twoninths\)
-\end{tcblisting}
+\begin{docCommand}{twooneths}{}
+Small fractions with numerator 2 and denominators up to 10.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\twooneths \cdots \twotenths\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\threehalves}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=small fractions with numerator 3\\
- \cs{threehalves}}
-\(\threehalves \cdots \threetenths\)
-\end{tcblisting}
+\begin{docCommand}{threeoneths}{}
+Small fractions with numerator 3 and denominators up to 10.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\threeoneths \cdots \threetenths\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\fourthirds}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=small fractions with numerator 4\\
- \cs{fourthirds}}
-\fourthirds
-\end{tcblisting}
+\begin{docCommand}{fouroneths}{\marg{magnitude}}
+Small fractions with numerator 4 and denominators up to 10.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\(\fouroneths \cdots \fourtenths\)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
% \subsection{Calculus}
%
-% \DescribeMacro{\dx}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=properly typesets variables of integration (the d should
- not be in italics and should be properly spaced relative to the integrand)\\
- \cs{dx}\marg{integrationvariable}}
-\[ \int y^{2}\dx{y} \]
-\end{tcblisting}
+\begin{docCommand}{dx}{\marg{variable}}
+Properly typesets variables of integration (the d should not be in italics and should
+be properly spaced relative to the integrand).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \dx{y} \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\evalfromto}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=properly typesets evaluation of definite integrals\\
- \cs{evalfromto}\marg{antiderivative}\marg{lowerlimit}\marg{upperlimit}}
-\[ \evalfromto{\onethird y^3}{0}{3} \]
-\end{tcblisting}
+\begin{docCommand}{evalfromto}{\marg{antiderivative}\marg{lower}\marg{upper}}
+Properly typesets the evaluation of definite integrals.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \evalfromto{\onethird y^3}{0}{3} \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\evalat}
-% \ntodo[Suggestion]{Combine with \cs{evaluatedat}?}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=properly typesets quantities evaluated at a
- particular point or value\\ \cs{evalat}\marg{expression}\marg{evaluationpoint}}
-\[ \evalat{\dbydt[x]}{t=1} \]
-\end{tcblisting}
+\begin{docCommand}{evalat}{\marg{expression}\marg{evaluationpoint}}
+Properly typesets quantities evaluated at a particular point or value.
+\ntodo[Suggestion]{Combine with \cs{evaluatedat}?}
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \evalat{\dbydt[x]}{t=1} \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\evaluatedat}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=properly indicates evaluation at a particular point or
- value without specifying the quantity\\
- \cs{evaluatedat}\marg{evaluationpoint}}
-\[ \mbox{LMST}\evaluatedat{\longitude{0}} \]
-\end{tcblisting}
+\begin{docCommand}{evaluatedat}{\marg{evaluationpoint}}
+Properly indicates evaluation at a particular point or value without specifying the quantity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \mbox{LMST}\evaluatedat{\longitude{0}} \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\integral}
-% \DescribeMacro{\Integral}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=typesets indefinite and definite integrals\\
- \cs{integral}\oarg{lowerlimit}\oarg{upperlimit}\marg{integrand}\marg{variable}\\
- \cs{Integral}\oarg{lowerlimit}\oarg{upperlimit}\marg{integrand}\marg{variable}}
+\begin{docCommand}{integral}{\oarg{lower}\oarg{upper}\marg{integrand}\marg{var}}
+Typesets indefinite and definite integrals.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \integral{y^2}{y} \]
\[ \integral[0][3]{y^2}{y} \]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{Integral}{\oarg{lower}\oarg{upper}\marg{integrand}\marg{var}}
+Typesets indefinite and definite integrals.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \Integral{y^2}{y} \]
\[ \Integral[0][3]{y^2}{y} \]
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\opensurfintegral}
-% \DescribeMacro{\opensurfIntegral}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=integral over an open surface of the normal component of
- a vector field\\
- \cs{opensurfintegral}\marg{surfacename}\marg{vectorname}\\
- \cs{opensurfIntegral}\marg{surfacename}\marg{vectorname}}
+\begin{docCommand}{opensurfintegral}{\marg{surfacename}\marg{vectorname}}
+Integral over an open surface of the normal component of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \opensurfintegral{S}{E} \]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{opensurfIntegral}{\marg{surfacename}\marg{vectorname}}
+Integral over an open surface of the normal component of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \opensurfIntegral{S}{E} \]
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\closedsurfintegral}
-% \DescribeMacro{\closedsurfIntegral}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=integral over a closed surface of the normal component of
- a vector field\\
- \cs{closedsurfintegral}\marg{surfacename}\marg{vectorname}\\
- \cs{closedsurfIntegral}\marg{surfacename}\marg{vectorname}}
+\begin{docCommand}{closedsurfintegral}{\marg{surfacename}\marg{vectorname}}
+Integral over a closed surface of the normal component of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \closedsurfintegral{S}{E} \]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{closedsurfIntegral}{\marg{surfacename}\marg{vectorname}}
+Integral over a closed surface of the normal component of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \closedsurfIntegral{S}{E} \]
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\openlineintegral}
-% \DescribeMacro{\openlineIntegral}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=integral over an open path of the tangential component of
- a vector field\\
- \cs{openlineintegral}\marg{pathname}\marg{vectorname}\\
- \cs{openlineIntegral}\marg{pathname}\marg{vectorname}}
+\begin{docCommand}{openlineintegral}{\marg{pathname}\marg{vectorname}}
+Integral over an open path of the tangential component of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \openlineintegral{C}{E} \]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{openlineIntegral}{\marg{pathname}\marg{vectorname}}
+Integral over an open path of the tangential component of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \openlineIntegral{C}{E} \]
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\closedlineintegral}
-% \DescribeMacro{\closedlineIntegral}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=integral over a closed path of the tangential component of
- a vector field\\
- \cs{closedlineintegral}\marg{pathname}\marg{vectorname}\\
- \cs{closedlineIntegral}\marg{pathname}\marg{vectorname}}
+\begin{docCommand}{closedlineintegral}{\marg{pathname}\marg{vectorname}}
+Integral over a closed path of the tangential component of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \closedlineintegral{C}{E} \]
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{closedlineIntegral}{\marg{pathname}\marg{vectorname}}
+Integral over a closed path of the tangential component of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\[ \closedlineIntegral{C}{E} \]
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
@@ -2669,1456 +5050,1571 @@ Here is how \oofpez (the Coulomb constant) is defined internally.
% Instead, I use \(\hat{t}\dx{\ell}\) for two main reason. The first is that
% line integrals require the component of a vector that is tangent to a curve,
% and I use \(\hat{t}\) to denote a unit tangent. The second is that the new
-% notation looks more like that for surface integrals. \\
+% notation looks more like that for surface integrals.
%
-% \newpage
-% \DescribeMacro{\dbydt}
-% \DescribeMacro{\DbyDt}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=first time derivative operator with optional operand\\
- \cs{dbydt}\oarg{operand} or \cs{DbyDt}\oarg{operand}}
-\[ \dbydt \]
-\[ \dbydt x \]
-\[ \dbydt[x] \]
-\[ \DbyDt \]
-\[ \DbyDt x \]
-\[ \DbyDt[x] \]
-\end{tcblisting}
+\begin{docCommand}{dbydt}{\oarg{operand}}
+First time derivative operator. Use \cs{DbyDt} to get \(\Delta\) instead of d.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \dbydt \) or \( \dbydt x \) or \dbydt[x]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\ddbydt}
-% \DescribeMacro{\DDbyDt}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=second time derivative operator with optional operand\\
- \cs{ddbydt}\oarg{operand} or \cs{DDbyDt}\oarg{operand}}
-\[ \ddbydt \]
-\[ \ddbydt x \]
-\[ \ddbydt[x] \]
-\[ \DDbyDt \]
-\[ \DDbyDt x \]
-\[ \DDbyDt[x] \]
-\end{tcblisting}
+\begin{docCommand}{ddbydt}{\oarg{operand}}
+Second time derivative operator. Use \cs{DDbyDt} to get \(\Delta\) instead of d.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \ddbydt \) or \( \ddbydt x \) or \ddbydt[x]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\pbypt}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=first time partial derivative operator with optional operand\\
- \cs{pbypt}\oarg{operand}}
-\[ \pbypt \]
-\[ \pbypt x \]
-\[ \pbypt[x] \]
-\end{tcblisting}
+\begin{docCommand}{pbypt}{\oarg{operand}}
+First partial time derivative operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \pbypt \) or \( \pbypt x \) or \pbypt[x]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\ppbypt}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=second time partial derivative operator with optional operand\\
- \cs{ppbypt}\oarg{operand}}
-\[ \ppbypt \]
-\[ \ppbypt x \]
-\[ \ppbypt[x] \]
-\end{tcblisting}
+\begin{docCommand}{ppbypt}{\oarg{operand}}
+Second partial time derivative operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \ppbypt \) or \( \ppbypt x \) or \ppbypt[x]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dbyd}
-% \DescribeMacro{\DbyD}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=generic first derivative operator\\
- \cs{dbyd}\marg{dependentvariable}\marg{indvar} or \cs{dbyd}\marg{dependentvariable}
- \marg{indvar}}
-\[ \dbyd{f}{y} \]
-\[ \DbyD{f}{y} \]
-\end{tcblisting}
+\begin{docCommand}{dbyd}{\marg{dependentvariable}\marg{indvar}}
+Generic first derivative operator. Use \cs{DbyD} to get \(\Delta\) instead of d.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \dbyd{f}{y} \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ddbyd}
-% \DescribeMacro{\DDbyD}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=generic second derivative operator\\
- \cs{ddbyd}\marg{dependentvariable}\marg{indvar} or \cs{ddbyd}\marg{dependentvariable}
- \marg{indvar}}
-\[ \ddbyd{f}{y} \]
-\[ \DDbyD{f}{y} \]
-\end{tcblisting}
+\begin{docCommand}{ddbyd}{\marg{dependentvariable}\marg{indvar}}
+Generic second derivative operator. Use \cs{DDbyD} to get \(\Delta\) instead of d.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \ddbyd{f}{y} \)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{pbyp}{\marg{dependentvariable}\marg{indvar}}
+Generic first partial derivative operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \pbyp{f}{y} \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\pbyp}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=generic first partial derivative operator\\
- \cs{pbyp}\marg{dependentvariable}\marg{indvar}}
-\[ \pbyp{f}{y} \]
-\end{tcblisting}
+\begin{docCommand}{ppbyp}{\marg{dependentvariable}\marg{indvar}}
+Generic second partial derivative operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \ppbyp{f}{y} \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ppbyp}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=generic second partial derivative operator\\
- \cs{ppbyp}\marg{dependentvariable}\marg{indvar}}
-\[ \ppbyp{f}{y} \]
-\end{tcblisting}
+\begin{docCommand}{gradient}{}
+Gradient operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\gradient
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\gradient}
-% \DescribeMacro{\divergence}
-% \DescribeMacro{\curl}
-% \DescribeMacro{\laplacian}
-% \DescribeMacro{\dalembertian}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=vector operators\\
- \cs{gradiant} and\cs{divergence} and \cs{curl} and \cs{laplacian} and \cs{dalembertian}}
-\gradient\(f\) and \divergence\vect{E} and \curl\vect{E} and \laplacian\(f\)
- and \dalembertian\(F\)
-\end{tcblisting}
+\begin{docCommand}{divergence}{}
+Divergente operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\divergence
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\seriesfofx}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=series expansion of \(f(x)\) \\
- \cs{seriesfofx}}
+\begin{docCommand}{curl}{}
+Curl operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\curl
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{laplacian}{}
+Laplacian operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\laplacian
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{dalembertian}{}
+D'Alembertian operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\dalembertian
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{seriesfofx}{}
+Series expansion of \(f(x)\) around \(x=a\).
+\end{docCommand}
+\begin{dispExample}
\seriesfofx
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\seriesexpx}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=series expansion of \msup{e}{x} \\
- \cs{seriesexpx}}
+\begin{docCommand}{seriesexpx}{}
+Series expansion of \msup{e}{x}.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\seriesexpx
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\seriessinx}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=series expansion of \(\sin x\) \\
- \cs{seriessinx}}
+\begin{docCommand}{seriessinx}{}
+Series expansion of \(\sin x\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\seriessinx
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\seriescosx}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=series expansion of \(\cos x\) \\
- \cs{seriescosx}}
+\begin{docCommand}{seriescosx}{}
+Series expansion of \(\cos x\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\seriescosx
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\seriestanx}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=series expansion of \(\tan x\) \\
- \cs{seriestanx}}
+\begin{docCommand}{seriestanx}{}
+Series expansion of \(\tan x\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\seriestanx
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\seriesatox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=series expansion of \msup{a}{x} \\
- \cs{seriesatox}}
+\begin{docCommand}{seriesatox}{}
+Series expansion of \msup{a}{x}.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\seriesatox
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\serieslnoneplusx}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=series expansion of \(\ln\quant{1+x}\) \\
- \cs{serieslnoneplusx}}
+\begin{docCommand}{serieslnoneplusx}{}
+Series expansion of \(\ln\quant{1+x}\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\serieslnoneplusx
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\binomialseries}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=series expansion of \msup{\quant{1+x}}{n} \\
- \cs{binomialseries}}
+\begin{docCommand}{binomialseries}{}
+Series expansion of \msup{\quant{1+x}}{n}.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\binomialseries
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\diracdelta}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Dirac delta function\\
- \cs{diracdelta}\marg{arg}}
+\begin{docCommand}{diracdelta}{\marg{arg}}
+Dirac delta function.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\diracdelta{x}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
% \subsection{Other Useful Commands}
%
-% \DescribeMacro{\asin}
-% \DescribeMacro{\acos}
-% \DescribeMacro{\atan}
-% \DescribeMacro{\asec}
-% \DescribeMacro{\acsc}
-% \DescribeMacro{\acot}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=trigonometric and inverse trigonometric functions
- not defined in \LaTeX\\
- \cs{asin} and \cs{acos} and \cs{atan} and \cs{asec} and \cs{acsc} and \cs{acot}}
-\(\asin\) and \(\acos\) and \(\atan\) and \(\asec\) and \(\acsc\) and \(\acot\)
-\end{tcblisting}
+\begin{docCommand}{asin}{}
+Symbol for inverse sine and other inverse circular trig functions.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \asin \acos \atan \asec \acsc \acot \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\sech}
-% \DescribeMacro{\csch}
-% \DescribeMacro{\asinh}
-% \DescribeMacro{\acosh}
-% \DescribeMacro{\atanh}
-% \DescribeMacro{\asech}
-% \DescribeMacro{\acsch}
-% \DescribeMacro{\acoth}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=hyperbolic and inverse hyperbolic functions
- not defined in \LaTeX\\
- \cs{sech} and \cs{csch} and \cs{asinh} and \cs{acosh} \\
- \cs{atanh} and \cs{asech} and \cs{acsch} and \cs{acoth}}
-\(\sech\) and \(\csch\) and \(\asinh\) and \(\acosh\) \\
-\(\atanh\) and \(\asech\) and \(\acsch\) and \(\acoth\)
-\end{tcblisting}
+\begin{docCommand}{sech}{}
+Hyperbolic and inverse hyperbolic functions not defined in \LaTeX.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \sech \csch \asinh \acosh \atanh \asech \acsch \acoth \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\sgn}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=signum function\\
- \cs{sgn}}
-\(\sgn\)
-\end{tcblisting}
+\begin{docCommand}{sgn}{\marg{arg}}
+Signum function.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \sgn \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dex}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=decimal exponentiation function (used in astrophysics)\\
- \cs{dex}}
-\(\dex\)
-\end{tcblisting}
+\begin{docCommand}{dex}{}
+Decimal exponentiation function (used in astrophysics).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \dex \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\eV}
-% \DescribeMacro{\ev}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=shortcuts for \cs{electronvolt}\\
- \cs{eV} or \cs{ev}}
-\eV\ or \eV
-\end{tcblisting}
+\begin{docCommand}{logb}{\oarg{base}}
+Logarithm to an arbitrary base.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\logb 8 \logb[2] 8
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\logb}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=logarithms to arbitrary bases \\
- \cs{logb}\oarg{base}}
-\logb 8 or \logb[2] 8
-\end{tcblisting}
+\begin{docCommand}{cB}{}
+Alternate symbol for magnetic field inspired by Tom Moore.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\cB \vect{\cB}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\cB}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=alternate symbol for magnetic field inspired by
- Tom Moore \\
- \cs{cB}}
-\cB\ or \vect{\cB}
-\end{tcblisting}
+\begin{docCommand}{newpi}{}
+Bob Palais' symbol for \(2\pi\).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\newpi
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\newpi}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Bob Palais' symbol for \(2\pi\) \\
- \cs{newpi}}
-\newpi
-\end{tcblisting}
+\begin{docCommand}{scripty}{\marg{kernel}}
+Command to get fonts in Griffith's electrodynamics textbook.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\scripty{r}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scripty}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=use to get fonts in Griffith's electrodynamics textbook \\
- \cs{scripty}\marg{kernel}}
-\scripty{r}
-\end{tcblisting}
+\begin{docCommand}{flux}{\oarg{label}}
+Symbol for flux of a vector field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\flux \flux[E]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\flux}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for flux of a vector field\\
- \cs{flux}\oarg{label}}
-\flux or \flux[E]
-\end{tcblisting}
+\begin{docCommand}{abs}{\marg{arg}}
+Absolute value function.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\abs{-4}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\abs}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=absolute value function\\
- \cs{abs}\marg{arg}}
-\abs{-4}
-\end{tcblisting}
+\begin{docCommand}{magof}{\marg{arg}}
+Magnitude of a quantity (lets you selectively use double bars without setting the
+\opt{doubleabsbars} option).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\magof{\vect{E}}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\magof}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=magnitude of a quantity (lets you selectively use
- double bars without setting the \opt{doubleabsbars} option)\\
- \cs{magof}\marg{arg}}
-\magof{\vect{E}}
-\end{tcblisting}
+\begin{docCommand}{dimsof}{\marg{arg}}
+Notation for showing the dimensions of a quantity.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\( \dimsof{\vect{v}} = L \cdot T^{-1} \)
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\dimsof}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=notation for showing the dimensions of a quantity\\
- \cs{dimsof}\marg{arg}}
-\(\dimsof{\vect{v}} = L \cdot T^{-1}\)
-\end{tcblisting}
+\begin{docCommand}{unitsof}{\marg{arg}}
+Notation for showing the units of a quantity. I propose this notation and hope to propagate
+it because I could not find any standard notation for this same idea in other sources.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\unitsof{\vect{v}} = \velocityonlytradunit
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\unitsof}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=notation for showing the units of a quantity (I propose
- this notation and hope to propagate it because I could not find any standard
- notation for this same idea in other sources)\\
- \cs{unitsof}\marg{arg}}
-\unitsof{\vect{v}} = \m\per\s
-\end{tcblisting}
+\begin{docCommand}{quant}{\marg{arg}}
+Surrounds the argument with variable sized parentheses. Use \cs{bquant} to get square brackets.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\quant{\oofpez}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\quant}
-% \DescribeMacro{\bquant}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=surrounds the argument with variable sized parentheses
- (use \cs{bquant} to get square brackets)\\
- \cs{quant}\marg{arg} or \cs{bquant}\marg{arg}}
-\quant{\oofpez} or \bquant{\oofpez}
-\end{tcblisting}
+\begin{docCommand}{Changein}{\marg{arg}}
+Nnotation for \textit{the change in a quantity}.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Changein{\vect{E}}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Changein}
-% \DescribeMacro{\changein}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=notation for \textit{the change in a quantity}\\
- \cs{Changein}\marg{quantity} or \cs{changein}\marg{quantity}}
-\Changein{\vect{E}} or \changein{\vect{E}}
-\end{tcblisting}
+\begin{docCommand}{scin}{\oarg{mantissa}\marg{exponent}\oarg{unit}}
+Command for scientific notation with an optional unit.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\scin[2.99]{8}[\velocityonlytradunit]
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\scin}
-% \DescribeMacro{\ee}
-% \DescribeMacro{\EE}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=scientific notation (use \cs{ee} or \cs{EE} for computer code)\\
- \cs{scin}\oarg{mantissa}\marg{exponent}\oarg{unit}\\
- \cs{ee}\marg{mantissa}\marg{exponent}\\
- \cs{EE}\marg{mantissa}\marg{exponent}}
-\scin[2.99]{8}[\m\per\s] \\
-\ee{2.99}{8} \\
-\EE{2.99}{8}
-\end{tcblisting}
+\begin{docCommand}{ee}{\marg{mantissa}\marg{exponent}}
+Command for scientific notation for computer code. Use \cs{EE} for |EE|.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\ee{2.99}{8}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\dms}
-% \DescribeMacro{\hms}
-% \DescribeMacro{\clockreading}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=formatted angles and times\\
- \cs{dms}\marg{deg}\marg{min}\marg{sec}\\
- \cs{hms}\marg{hour}\marg{min}\marg{sec}\\
- \cs{clock reading}\marg{hour}\marg{minute}\marg{second}}
+\begin{docCommand}{dms}{\marg{deg}\marg{min}\marg{sec}}
+Command for formatting angles and time. Use \cs{hms} for time. Note that other packages
+may do this better.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\dms{23}{34}{10.27} \\
-\hms{23}{34}{10.27} \\
+\hms{23}{34}{10.27}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{clockreading}{\marg{hrs}\marg{min}\marg{sec}}
+Command for formatting a clock reading. Really an alias for \cs{hms}, but conceptually
+a very different idea that introductory textbooks don't do a good enough job at articulating.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\clockreading{23}{34}{10.27}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\latitude}
-% \DescribeMacro{\latitudeN}
-% \DescribeMacro{\latitudeS}
-% \DescribeMacro{\longitude}
-% \DescribeMacro{\longitudeE}
-% \DescribeMacro{\longitudeW}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=formatted latitude and longitude}
-\latitude{+35} or \latitudeN{35} or \latitudeS{35} \\
-\longitude{-81} or \longitudeE{81} or \longitudeW{81}
-\end{tcblisting}
+\begin{docCommand}{latitude}{\marg{arg}}
+Command for formatting latitude, useful in astronomy. Use \cs{latitudeN} or \cs{latitudeS}
+to include a letter.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\latitude{+35} \latitudeN{35} \latitudeS{35}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ssub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=text subscripts\\
- \cs{ssub}\marg{kernel}\marg{sub}}
-\ssub{N}{AB}
-\end{tcblisting}
+\begin{docCommand}{longitude}{\marg{arg}}
+Command for formatting longitude, useful in astronomy. Use \cs{longitudeE} or
+\cs{longitudeW} to include a letter.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\longitude{-81} \longitudeE{81} \longitudeW{81}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ssup}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=text superscripts\\
- \cs{ssup}\marg{kernel}\marg{sup}}
+\begin{docCommand}{ssup}{\marg{kernel}\marg{sup}}
+Command for typesetting text superscripts.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\ssup{N}{contact}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\ssud}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=text superscripts and subscripts\\
- \cs{ssud}\marg{kernel}\marg{sup}\marg{sub}}
-\ssud{N}{contact}{AB}
-\end{tcblisting}
+\begin{docCommand}{ssub}{\marg{kernel}\marg{sub}}
+Command for typesetting text subscripts.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\ssub{N}{AB}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\msub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=mathematical subscripts\\
- \cs{msub}\marg{kernel}\marg{sub}}
-\msub{R}{\alpha\beta}
-\end{tcblisting}
+\begin{docCommand}{ssud}{\marg{sup}\marg{sub}}
+Command for typesetting text superscripts and subscripts.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\ssud{N}{contact}{AB}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\msup}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=mathematical superscripts\\
- \cs{msup}\marg{kernel}\marg{sup}}
+\begin{docCommand}{msup}{\marg{kernel}\marg{sup}}
+Command for typesetting mathematical superscripts.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\msup{R}{\gamma}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\msud}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=mathematical superscripts and subscripts\\
- \cs{msud}\marg{kernel}\marg{sup}\marg{sub}}
+\begin{docCommand}{msub}{\marg{kernel}\marg{sub}}
+Command for typesetting mathematical subscripts.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\msub{R}{\alpha\beta}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{msud}{\marg{kernel}\marg{sup}\marg{sub}}
+Command for typesetting mathematical superscripts and subscripts.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\msud{\Gamma}{\gamma}{\alpha\beta}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\levicivita}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=Levi-Civita symbol\\
- \cs{levicivita}\marg{indices}}
+\begin{docCommand}{levicivita}{\marg{indices}}
+Command for Levi-Civita symbol.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\levicivita{ijk}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\xaxis}
-% \DescribeMacro{\yaxis}
-% \DescribeMacro{\zaxis}
-% \DescribeMacro{\naxis}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=shortcuts for coordinate axes\\
- \cs{xaxis} or \cs{yaxis} or \cs{zaxis} or \cs{naxis}\marg{axis}}
-\xaxis or \yaxis or \zaxis or \naxis{t}
-\end{tcblisting}
+\begin{docCommand}{kronecker}{\marg{indices}}
+Command for Kronecker delta symbol.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\kronecker{ij}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\xyplane}
-% \DescribeMacro{\yzplane}
-% \DescribeMacro{\zxplane}
-% \DescribeMacro{\yxplane}
-% \DescribeMacro{\zyplane}
-% \DescribeMacro{\xzplane}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=shortcuts for coordinate planes\\
- \cs{xyplane} or \cs{yzplane} or \cs{zxplane} or \cs{yzplane} or \cs{zyplane}
- or \cs{xzplane}}
-\xyplane or \yzplane or \zxplane or \yxplane or \zyplane or \xzplane
-\end{tcblisting}
+\begin{docCommand}{xaxis}{}
+Command for coordinate axes.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+ \xaxis \yaxis \zaxis
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\cuberoot}
-% \DescribeMacro{\fourthroot}
-% \DescribeMacro{\fifthroot}
-% \DescribeMacro{\fsqrt}
-% \DescribeMacro{\fcuberoot}
-% \DescribeMacro{\ffourthroot}
-% \DescribeMacro{\ffifthroot}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=frequently used roots as radicals\\
- \cs{cuberoot}\marg{arg} or \cs{fourthroot}\marg{arg} or \cs{fifthroot}\marg{arg}
- or \cs{fsqrt}\marg{arg} or \cs{fcuberoot}\marg{arg} or \cs{ffourthroot}\marg{arg}
- or \cs{ffifthroot}\marg{arg}}
-\cuberoot{x} or \fourthroot{x} or \fifthroot{x} or \fsqrt{x}
-or \fcuberoot{x} or \ffourthroot{x} or \ffifthroot{x}
-\end{tcblisting}
+\begin{docCommand}{naxis}{\oarg{axis}}
+Command for custom naming a coordinate axis.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\naxis{t}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\relgamma}
-% \DescribeMacro{\frelgamma}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expressions for relativistic gamma factor\\
- \cs{relgamma}\marg{arg} or \cs{frelgamma}\marg{arg}}
-\relgamma{\magvect{v}} or \relgamma{(0.5c)} \\
-\frelgamma{\magvect{v}} or \frelgamma{(0.5c)}
-\end{tcblisting}
+\begin{docCommand}{xyplane}{}
+Commands for naming coordinate planes. All combinations are defined.
+\end{docCommand}
+\begin{dispExample}
+\xyplane \yzplane \zxplane \yxplane \zyplane \xzplane
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\oosqrtomxs}
-% \DescribeMacro{\oosqrtomx}
-% \DescribeMacro{\ooomx}
-% \DescribeMacro{\ooopx}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expressions convenient for numerically evaluating \(\gamma\)\\
- \cs{oosqrtomxs}\marg{arg} (\textit{one over square root of one minus x squared})\\
- \cs{oosqrtomx}\marg{arg} (\textit{one over square root of one minus x})\\
- \cs{ooomx}\marg{arg} (\textit{one over one minus x})\\
- \cs{ooopx}\marg{arg} (\textit{one over one plus x})}
-\oosqrtomxs{0.22} \\
-\oosqrtomx{0.22} \\
-\ooomx{0.22} \\
-\ooopx{0.11}
-\end{tcblisting}
+\begin{docCommand}{fsqrt}{\marg{arg}}
+Command for square root as a fractional exponent.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\fsqrt{x}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \subsection{Custom Operators}
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{cuberoot}{\marg{arg}}
+Command for cube root of an argument. Use \cs{fcuberoot} to get fractional exponent.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\cuberoot{x} \fcuberoot{x}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
%
-% \DescribeMacro{\isequals}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=typesets \textit{test-for-equality} operator \\
- \cs{isequals}}
-5 \isequals 3
-\end{tcblisting}
+\begin{docCommand}{fourthroot}{\marg{arg}}
+Command for fourth root of an argument. Use \cs{ffourthroot} to get fractional exponent.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\fourthroot{x} \ffourthroot{x}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\wordoperator}
-% \DescribeMacro{\pwordoperator}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=typesets two lines of tiny text to be use as an
- operator without using mathematical symbols\\
- \cs{wordoperator}\marg{firstline}\marg{secondline}\\
- \cs{pwordoperator}\marg{firstline}\marg{secondline}}
-\wordoperator{added}{to} \\
-\pwordoperator{added}{to}
-\end{tcblisting}
+\begin{docCommand}{fifthroot}{\marg{arg}}
+Command for fifth root of an argument. Use \cs{ffifthroot} to get fractional exponent.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\fifthroot{x} \ffifthroot{x}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{relgamma}{\marg{arg}}
+Expression for Lorentz factor. Use \cs{frelgamma} to get fractional exponent.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\begin{align*}
+\gamma&=\relgamma{\magvect{v}}\\
+\gamma&=\relgamma{(0.5c)}\\
+\gamma&=\frelgamma{\magvect{v}}\\
+\gamma&=\frelgamma{(0.5c)}
+\end{align*}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\definedas}
-% \DescribeMacro{\associated}
-% \DescribeMacro{\adjustedby}
-% \DescribeMacro{\earlierthan}
-% \DescribeMacro{\laterthan}
-% \DescribeMacro{\forevery}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=frequently used word operators \\
- \cs{definedas} or \cs{associated} or \cs{adjustedby} or \cs{earlierthan} or
- \cs{laterthan} or \cs{forevery}}
-\definedas or \associated or \adjustedby \\
-\earlierthan or \laterthan or \forevery
-\end{tcblisting}
+\begin{docCommand}{oosqrtomxs}{\marg{arg}}
+Commands for expressions convenient in numerically evaluating Lorentz factors. Say each
+expression out loud and you'll see where the command names come from.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\oosqrtomxs{0.22}
+\oosqrtomx{0.22}
+\ooomx{0.22}
+\ooopx{0.11}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\pdefinedas}
-% \DescribeMacro{\passociated}
-% \DescribeMacro{\padjustedby}
-% \DescribeMacro{\pearlierthan}
-% \DescribeMacro{\platerthan}
-% \DescribeMacro{\pforevery}
+% \subsection{Custom Operators}
+% The \(=\) operator is frequently misused, and we need other operators for other situations.
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=frequently used word operators with parentheses \\
- \cs{pdefinedas} or \cs{passociated} or \cs{padjustedby} or \cs{pearlierthan} or
- \cs{platerthan} or \cs{pforevery}}
-\pdefinedas or \passociated or \padjustedby \\
-\pearlierthan or \platerthan or \pforevery
-\end{tcblisting}
+\begin{docCommand}{isequals}{}
+Command for \textit{test-for-equality} operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+5 \isequals 3
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\defines}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=\textit{defines} or \textit{defined by} operator \\
- \cs{defines}}
+\begin{docCommand}{wordoperator}{\marg{firstline}\marg{secondline}}
+Command for two lines of tiny text to be use as an operator without using mathematical
+symbols. Use \cs{pwordoperator} to get parentheses around the operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\wordoperator{added}{to} \\
+\pwordoperator{added}{to}
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{definedas}{}
+Commands for frequently used word operators. Prepend |p| to each to get parentheses around
+the operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\definedas and \associated and \adjustedby \\
+\earlierthan and \laterthan and \forevery \\
+\pdefinedas and \passociated and \padjustedby \\
+\pearlierthan and \platerthan and \pforevery
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{defines}{}
+Command for \textit{defines} or \textit{defined by} operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vect{p} \defines \(\gamma m\)\vect{v}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\inframe}
-% \ntodo[Suggestion]{Make the arrow's length fixed.}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=operator for indicating the coordinate representation of
- a vector in a particular reference frame denoted by a capital letter\\
- \cs{inframe}\oarg{frame}}
+\begin{docCommand}{inframe}{\oarg{frame}}
+Command for operator indicating the coordinate representation of a vector in a particular
+reference frame denoted by a capital letter.\ntodo[Suggestion]{Make the arrow's length fixed.}
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vect{p} \inframe[S] \momentum{\mivector{1,2,3}} \\
\vect{p} \inframe[S'] \momentum{\mivector{\sqrt{14},0,0}}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\associates}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=\textit{associated with} or \textit{associates with}
- operator (for verbal concepts) \\
- \cs{associates}}
+\begin{docCommand}{associates}{}
+Command for \textit{associated with} or \textit{associates with} operator (for verbal
+concepts).
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
kinetic energy \associates velocity
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\becomes}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=\textit{becomes} operator \\
- \cs{becomes}}
+\begin{docCommand}{becomes}{}
+Command for \textit{becomes} operator.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\(\gamma m\)\vect{v} \becomes \(m\)\vect{v}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\rrelatedto}
-% \DescribeMacro{\lrelatedto}
-% \DescribeMacro{\brelatedto}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=operators for directional mathematical relationships
- without mathematical notation \\
- \cs{rrelatedto}\marg{loperation} \\
- \cs{lrelatedto}\marg{roperation} \\
- \cs{brelatedto}\marg{loperation}\marg{roperation}}
-(flux ratio) \rrelatedto{taking logarithm} (mag diff) \\
-(flux ratio) \lrelatedto{exponentiation} (mag diff) \\
+\begin{docCommand}{rrelatedto}{\marg{leftoperation}}
+Command for left-to-right relationship.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+(flux ratio) \rrelatedto{taking logarithm} (mag diff)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{lrelatedto}{\marg{roperation}}
+Command for right-to-left relationship.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+(flux ratio) \lrelatedto{exponentiation} (mag diff)
+\end{dispExample*}
+%\iffalse
+%</example>
+%\fi
+%
+%\iffalse
+%<*example>
+%\fi
+\begin{docCommand}{brelatedto}{\marg{leftoperation}\marg{roperation}}
+Command for bidirectional relationship.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
(mag diff) \brelatedto{taking logarithm}{exponentiation}(flux ratio)
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
% \subsection{Commands Specific to \mi}
%
-% \DescribeMacro{\momprinciple}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=momentum principle \\
- \cs{LHSmomprinciple} or \cs{RHSmomprinciple} or \cs{momprinciple}}
-\LHSmomprinciple \\
-\RHSmomprinciple \\
-\momprinciple
-\end{tcblisting}
+\begin{docCommand}{momentumprinciple}{}
+Expression for the momentum principle. Prepend \cs{LHS} to get just the left
+hand side and \cs{RHS} to get just the right hand side.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\momentumprinciple
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\energyprinciple}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=energy principle \\
- \cs{LHSenergyprinciple} or \cs{RHSenergyprinciple} or \cs{energyprinciple}}
-\LHSenergyprinciple \\
-\RHSenergyprinciple \\
+\begin{docCommand}{energyprinciple}{}
+Expression for the energy principle. Prepend \cs{LHS} to get just the left
+hand side and \cs{RHS} to get just the right hand side.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\energyprinciple
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\angularmomprinciple}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=angular momentum principle \\
- \cs{LHSangularmomprinciple} or \cs{RHSangularmomprinciple} or \cs{angularmomprinciple}}
-\LHSangularmomprinciple \\
-\RHSangularmomprinciple \\
-\angularmomprinciple
-\end{tcblisting}
+\begin{docCommand}{angularmomentumprinciple}{}
+Expression for the angular momentum principle. Prepend \cs{LHS} to get just
+the left hand side and \cs{RHS} to get just the right hand side.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\angularmomentumprinciple
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\gravinteraction}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for gravitational interaction \\
- \cs{gravinteraction}}
-\gravinteraction
-\end{tcblisting}
+\begin{docCommand}{gravitationalinteraction}{}
+Expression for gravitational interaction.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\gravitationalinteraction
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\elecinteraction}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=xxpression for electric interaction \\
- \cs{elecinteraction}}
-\elecinteraction
-\end{tcblisting}
+\begin{docCommand}{electricinteraction}{}
+Expression for electric interaction.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\electricinteraction
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Efieldofparticle}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for electric field of a particle \\
- \cs{Efieldofparticle}}
+\begin{docCommand}{Efieldofparticle}{}
+Expression for a particle's electric field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Efieldofparticle
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Bfieldofparticle}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for magnetic field of a particle \\
- \cs{Bfieldofparticle}}
+\begin{docCommand}{Bfieldofparticle}{}
+Expression for a particle's magnetic field.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Bfieldofparticle
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Esys}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for energy of system \\
- \cs{Esys}}
+\begin{docCommand}{Esys}{}
+Symbol for system energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Esys
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Us}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for spring potential energy \\
- \cs{Us}}
+\begin{docCommand}{Us}{}
+Symbol for spring potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Us
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Ug}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for gravitational potential energy \\
- \cs{Ug}}
+\begin{docCommand}{Ug}{}
+Symbol for gravitational potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Ug
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Ue}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for electric potential energy \\
- \cs{Ue}}
+\begin{docCommand}{Ue}{}
+Symbol for electric potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Ue
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Ktrans}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for translational kinetic energy \\
- \cs{Ktrans}}
+\begin{docCommand}{Ktrans}{}
+Symbol for translational kinetic energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Ktrans
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Krot}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for rotational kinetic energy \\
- \cs{Krot}}
+\begin{docCommand}{Krot}{}
+Symbol for rotational kinetic energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Krot
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Eparticle}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for particle energy \\
- \cs{Eparticle}}
+\begin{docCommand}{Eparticle}{}
+Symbol for particle energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Eparticle
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Einternal}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for internal energy \\
- \cs{Einternal}}
+\begin{docCommand}{Einternal}{}
+Symbol for internal energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Einternal
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Erest}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for rest energy \\
- \cs{Erest}}
+\begin{docCommand}{Erest}{}
+Symbol for rest energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Erest
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Echem}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for chemical energy \\
- \cs{Echem}}
+\begin{docCommand}{Echem}{}
+Symbol for chemical energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Echem
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Etherm}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for thermal energy \\
- \cs{Etherm}}
+\begin{docCommand}{Etherm}{}
+Symbol for thermal energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Etherm
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Evib}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for vibrational energy \\
- \cs{Evib}}
+\begin{docCommand}{Evib}{}
+Symbol for vibrational energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Evib
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Ephoton}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for photon energy \\
- \cs{Ephoton}}
+\begin{docCommand}{Ephoton}{}
+Symbol for photon energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Ephoton
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DUs}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in spring potential energy \\
- \cs{DUs}}
+\begin{docCommand}{DUs}{}
+Symbol for change in spring potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DUs
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DUg}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in gravitational potential energy \\
- \cs{DUg}}
+\begin{docCommand}{DUg}{}
+Symbol for change in gravitational potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DUg
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\DUe}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in electric potential energy \\
- \cs{DUe}}
+\begin{docCommand}{DUe}{}
+Symbol for change in electric potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DUe
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DKtrans}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in translational kinetic energy \\
- \cs{DKtrans}}
+\begin{docCommand}{DKtrans}{}
+Symbol for change in translational kinetic energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DKtrans
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DKrot}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in rotational kinetic energy \\
- \cs{DKrot}}
+\begin{docCommand}{DKrot}{}
+Symbol for change in rotational kinetic energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DKrot
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DEparticle}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in particle energy \\
- \cs{DEparticle}}
+\begin{docCommand}{DEparticle}{}
+Symbol for change in particle energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DEparticle
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DEinternal}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in internal energy \\
- \cs{DEinternal}}
+\begin{docCommand}{DEinternal}{}
+Symbol for change in internal energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DEinternal
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\DErest}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in rest energy \\
- \cs{DErest}}
+\begin{docCommand}{DErest}{}
+Symbol for change in rest energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DErest
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DEchem}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in chemical energy \\
- \cs{DEchem}}
+\begin{docCommand}{DEchem}{}
+Symbol for change in chemical energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DEchem
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DEtherm}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in thermal energy \\
- \cs{DEtherm}}
+\begin{docCommand}{DEtherm}{}
+Symbol for change in thermal energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DEtherm
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DEvib}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in vibrational energy \\
- \cs{DEvib}}
+\begin{docCommand}{DEvib}{}
+Symbol for change in vibrational energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DEvib
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\DEphoton}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for change in photon energy \\
- \cs{DEphoton}}
+\begin{docCommand}{DEphoton}{}
+Symbol for change in photon energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\DEphoton
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Usfinal}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for final spring potential energy \\
- \cs{Usfinal}}
+\begin{docCommand}{Usfinal}{}
+Expression for final spring potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\Usfinal
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Usinitial}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for initial spring potential energy \\
- \cs{Usinitial}}
-\Usfinal
-\end{tcblisting}
+\begin{docCommand}{Usinitial}{}
+Expression for initial spring potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Usinitial
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Ugfinal}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for final gravitational potential energy \\
- \cs{Ugfinal}}
-\Ugfinal
-\end{tcblisting}
+\begin{docCommand}{Uefinal}{}
+Expression for final electric potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Uefinal
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Uginitial}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for initial gravitational potential energy \\
- \cs{Uginitial}}
-\Ugfinal
-\end{tcblisting}
+\begin{docCommand}{Ueinitial}{}
+Expression for initial electric potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Ueinitial
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\Uefinal}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for final electric potential energy \\
- \cs{Uefinal}}
-\Uefinal
-\end{tcblisting}
+\begin{docCommand}{Ugfinal}{}
+Expression for final gravitational potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Ugfinal
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Ueinitial}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=expression for initial electric potential energy \\
- \cs{Ueinitial}}
-\Uefinal
-\end{tcblisting}
+\begin{docCommand}{Uginitial}{}
+Expression for initial gravitational potential energy.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Uginitial
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\ks}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=symbol for spring stiffness \\
- \cs{ks}}
+\begin{docCommand}{ks}{}
+Symbol for spring stiffness.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\ks
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\Fnet}
-% \DescribeMacro{\Fnetext}
-% \DescribeMacro{\Fnetsys}
-% \DescribeMacro{\Fsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=various symbols for net force \\
- \cs{Fnet} or \cs{Fnetext} or \cs{Fnetsys} or \cs{Fsub}\marg{label}}
-\Fnet or \Fnetext or \Fnetsys or \Fsub{ball,bat}
-\end{tcblisting}
+\begin{docCommand}{Fnet}{}
+Various symbols for net force.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Fnet \Fnetext \Fnetsys \Fsub{ball,bat}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-%
-% \DescribeMacro{\Tnet}
-% \DescribeMacro{\Tnetext}
-% \DescribeMacro{\Tnetsys}
-% \DescribeMacro{\Tsub}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=various symbols for net torque \\
- \cs{Tnet} or \cs{Tnetext} or \cs{Tnetsys} or \cs{Tsub}\marg{label}}
-\Tnet or \Tnetext or \Tnetsys or \Tsub{ball,bat}
-\end{tcblisting}
+\begin{docCommand}{Tnet}{}
+Various symbols for net torque.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
+\Tnet \Tnetext \Tnetsys \Tsub{ball,bat}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\vpythonline}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=single line of VPython code used inline\\
- \cs{vpythonline}\marg{vpythoncode}}
+\begin{docCommand}{vpythonline}{\marg{vpythoncode}}
+Command for a single line of VPython code used inline.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\vpythonline{from visual import *}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeEnv{vpythonblock}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=environment for a block of VPython code\\
- \cs{begin\{vpythonblock\}}\\
- \meta{vpythoncode}\\
- \cs{end\{vpythonblock\}}}
+\begin{docEnvironment}{vpythonblock}{}
+Environment for a block of VPython code.
+\end{docEnvironment}
+\begin{dispExample}
\begin{vpythonblock}
from visual import *
sphere(center=pos(1,2,3),color=color.green)
MyArrow=arrow(pos=earth.pos, axis=fscale*Fnet, color=color.green)
print ("arrow.pos = "), arrow.pos
\end{vpythonblock}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\vpythonfile}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=file in the current directory containing VPython code\\
- \cs{vpythonfile}\meta{filename}}
+\begin{docCommand}{vpythonfile}{\meta{filename}}
+Typesets a file in the current directory containing VPython code.
+\end{docCommand}
+\begin{dispExample}
\vpythonfile{vdemo.py}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
% \subsection{Boxes and Environments}
%
-% \DescribeMacro{\emptyanswer}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only, title=empty space for filling answer boxes so
- there is nothing to see\\ \cs{emptyanswer}\oarg{wdth}\oarg{hght}}
+\begin{docCommand}{emptyanswer}{\oarg{wdth}\oarg{hght}}
+Typesets empty space for filling answer boxes, so there is nothing to see.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\emptyanswer[0.75][0.2]
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeEnv{activityanswer}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=main environment for typesetting boxed answers\\
- \cs{begin\{activityanswer\}}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}
- \\
- \meta{content}\\
- \cs{end\{activityanswer\}}}
+\begin{docEnvironment}{activityanswer}
+ {\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+Main environment for typesetting boxed answers.
+\end{docEnvironment}
+\begin{dispExample}
\begin{activityanswer}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Morbi commodo, ipsum sed pharetra gravida, orci magna
rhoncus neque, id pulvinar odio lorem non turpis. Nullam
sit amet enim.
\end{activityanswer}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeEnv{adjactivityanswer}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=like \cs{activityanswer} but adjusts vertically to
- tightly surround text\\
-\cs{begin\{adjactivityanswer\}}
-\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght} \\
- \meta{content}\\
- \cs{end\{adjactivityanswer\}}}
+\begin{docEnvironment}{adjactivityanswer}
+ {\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+Like \cs{activityanswer} but adjusts vertically to tightly surround text.
+\end{docEnvironment}
+\begin{dispExample}
\begin{adjactivityanswer}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi
commodo, ipsum sed pharetra gravida, orci magna rhoncus neque,
@@ -4131,171 +6627,180 @@ kinetic energy \associates velocity
eu dolor. Maecenas vitae nulla consequat libero cursus venenatis.
Nam magna enim, accumsan eu, blandit sed, blandit a, eros.
\end{adjactivityanswer}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\emptybox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=provides a fixed-size box with optional text\\
- \cs{emptybox}\oarg{txt}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+\begin{docCommand}{emptybox}
+ {\oarg{txt}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+Provides a fixed-size box with optional text.
+\end{docCommand}
+\begin{dispExample}
\emptybox[Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque,
id pulvinar odio lorem non turpis. Nullam sit amet enim.]
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\adjemptybox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=like \cs{emptybox} but adjusts vertically to tightly surround
- text\\
-\cs{adjemptybox}\oarg{txt}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+\begin{docCommand}{adjemptybox}
+ {\oarg{txt}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+Like \cs{emptybox} but adjusts vertically to tightly surround text.
+\end{docCommand}
+\begin{dispExample}
\adjemptybox[Lorem ipsum dolor sit amet, consectetuer adipiscing
elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus
neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\answerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=wrapper for \cs{emptybox}\\
-\cs{answerbox}\oarg{txt}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+\begin{docCommand}{answerbox}
+ {\oarg{txt}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+Wrapper for \cs{emptybox}.
+\end{docCommand}
+\begin{dispExample}
\answerbox[Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque,
id pulvinar odio lorem non turpis. Nullam sit amet enim.]
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\adjanswerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=wrapper for \cs{adjemptybox}\\
-\cs{adjanswerbox}\oarg{txt}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+\begin{docCommand}{adjanswerbox}
+ {\oarg{txt}\oarg{bgclr}\oarg{frmclr}\oarg{txtclr}\oarg{wdth}\oarg{hght}}
+Wrapper for \cs{adjemptybox}.
+\end{docCommand}
+\begin{dispExample}
\adjanswerbox[Lorem ipsum dolor sit amet, consectetuer adipiscing
elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus
neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\smallanswerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=answer box with height 0.10 that of current \cs{textheight}
- and width 0.90 that of current \cs{linewidth}\\
- \cs{smallanswerbox}\oarg{txt}\oarg{bgclr}}
+\begin{docCommand}{smallanswerbox}{\oarg{txt}\oarg{bgclr}}
+Answer box with height 0.10 that of current \cs{textheight} and width 0.90 that of current
+\cs{linewidth}.
+\end{docCommand}
+\begin{dispExample}
\smallanswerbox[][red]
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\mediumanswerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=answer box with height 0.20 that of current \cs{textheight}
- and width 0.90 that of current \cs{linewidth}\\
- \cs{mediumanswerbox}\oarg{txt}\oarg{bgclr}}
+\begin{docCommand}{mediumanswerbox}{\oarg{txt}\oarg{bgclr}}
+Answer box with height 0.20 that of current \cs{textheight} and width 0.90 that of current
+\cs{linewidth}.
+\end{docCommand}
+\begin{dispExample}
\mediumanswerbox[][lightgray]
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\largeanswerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only,title=answer box with height 0.25 that of current
-\cs{textheight} and width 0.90 that of current \cs{linewidth} (too large to show here)\\
- \cs{largeanswerbox}\oarg{txt}\oarg{bgclr}}
+\begin{docCommand}{largeanswerbox}{\oarg{txt}\oarg{bgclr}}
+Answer box with height 0.25 that of current \cs{textheight} and width 0.90 that of current
+\cs{linewidth} (too large to show here).
+\end{docCommand}
+\begin{dispListing}
\largeanswerbox[][lightgray]
-\end{tcblisting}
+\end{dispListing}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeMacro{\largeranswerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only,title=answer box with height 0.33 that of current
-\cs{textheight} and width 0.90 that of current \cs{linewidth} (too large to show here)\\
- \cs{largreanswerbox}\oarg{txt}\oarg{bgclr}}
-\largreanswerbox[][lightgray]
-\end{tcblisting}
+\begin{docCommand}{largeranswerbox}{\oarg{txt}\oarg{bgclr}}
+Answer box with height 0.33 that of current \cs{textheight} and width 0.90 that of current
+\cs{linewidth} (too large to show here).
+\end{docCommand}
+\begin{dispListing}
+\largeranswerbox[][lightgray]
+\end{dispListing}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\hugeanswerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only,title=answer box with height 0.50 that of current
-\cs{textheight} and width 0.90 that of current \cs{linewidth} (too large to show here)\\
- \cs{hugeanswerbox}\oarg{txt}\oarg{bgclr}}
+\begin{docCommand}{hugeanswerbox}{\oarg{txt}\oarg{bgclr}}
+Answer box with height 0.50 that of current \cs{textheight} and width 0.90 that of current
+\cs{linewidth} (too large to show here).
+\end{docCommand}
+\begin{dispListing}
\hugeanswerbox[][lightgray]
-\end{tcblisting}
+\end{dispListing}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\hugeranswerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only,title=answer box with height 0.75 that of current
-\cs{textheight} and width 0.90 that of current \cs{linewidth} (too large to show here)\\
- \cs{hugeranswerbox}\oarg{txt}\oarg{bgclr}}
+\begin{docCommand}{hugeranswerbox}{\oarg{txt}\oarg{bgclr}}
+Answer box with height 0.75 that of current \cs{textheight} and width 0.90 that of current
+\cs{linewidth} (too large to show here).
+\end{docCommand}
+\begin{dispListing}
\hugeranswerbox[][lightgray]
-\end{tcblisting}
+\end{dispListing}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\fullpageanswerbox}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only,title=answer box with height 1.00 that of current
-\cs{textheight} and width 0.90 that of current \cs{linewidth} (too large to show here)\\
- \cs{fullpageanswerbox}\oarg{txt}\oarg{bgclr}}
+\begin{docCommand}{fullpageanswerbox}{\oarg{txt}\oarg{bgclr}}
+Answer box with height 1.00 that of current \cs{textheight} and width 0.90 that of current
+\cs{linewidth} (too large to show here).
+\end{docCommand}
+\begin{dispListing}
\fullpageanswerbox[][lightgray]
-\end{tcblisting}
+\end{dispListing}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeEnv{miinstructornote}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=environment for highlighting notes to instructors\\
- \cs{begin\{miinstructornote\}}\\
- \meta{content}\\
- \cs{end\{{miinstructornote}\}}}
+\begin{docEnvironment}{miinstructornote}{}
+Environment for highlighting notes to instructors.
+\end{docEnvironment}
+\begin{dispExample}
\begin{miinstructornote}
Nunc auctor bibendum eros. Maecenas porta accumsan mauris. Etiam
enim enim, elementum sed, bibendum quis, rhoncus non, metus. Fusce
@@ -4307,20 +6812,18 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
Aenean eget mi. Fusce mattis est id diam. Phasellus faucibus
interdum sapien.
\end{miinstructornote}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeEnv{mistudentnote}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=environment for highlighting notes to students\\
- \cs{begin\{studentnote\}}\\
- \meta{content}\\
- \cs{end\{{studentnote}\}}}
+\begin{docEnvironment}{mistudentnote}{}
+Environment for highlighting notes to students.
+\end{docEnvironment}
+\begin{dispExample}
\begin{mistudentnote}
Nunc auctor bibendum eros. Maecenas porta accumsan mauris. Etiam
enim enim, elementum sed, bibendum quis, rhoncus non, metus. Fusce
@@ -4332,48 +6835,42 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
Aenean eget mi. Fusce mattis est id diam. Phasellus faucibus
interdum sapien.
\end{mistudentnote}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeEnv{miderivation}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=fancy environment for mathematical derivations based on
- |align| environment\\
- \cs{begin\{miderivation\}}\\
- \meta{content}\\
- \cs{end\{miderivation\}}}
+\begin{docEnvironment}{miderivation}{}
+Environment for mathematical derivations based on the |align| environment.
+\end{docEnvironment}
+\begin{dispExample}
\begin{miderivation}
\gamma &= \relgamma{\magvect{v}}
&& \text{given} \\
\msup{\gamma}{2}&= \ooomx{\msup{(\frac{\magvect{v}}{c})}{2}}
&&\text{square both sides}\\
\frac{1}{\msup{\gamma}{2}}&=1-\msup{(\frac{\magvect{v}}{c})}{2}
- &&\text{reciprocal of
- both sides} \\
+ &&\text{reciprocal of both sides} \\
\msup{(\frac{\magvect{v}}{c})}{2}&=1-\frac{1}{\msup{\gamma}{2}}
&&\text{rearrange} \\
\frac{\magvect{v}}{c}&=\sqrt{1-\frac{1}{\msup{\gamma}{2}}}
&&\text{square root of both sides}
\end{miderivation}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeEnv{bwinstructornote}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=environment for highlighting notes to instructors\\
- \cs{begin\{bwinstructornote\}}\\
- \meta{content}\\
- \cs{end\{{bwinstructornote}\}}}
+\begin{docEnvironment}{bwinstructornote}{}
+Environment for highlighting notes to instructors.
+\end{docEnvironment}
+\begin{dispExample}
\begin{bwinstructornote}
Nunc auctor bibendum eros. Maecenas porta accumsan mauris. Etiam
enim enim, elementum sed, bibendum quis, rhoncus non, metus. Fusce
@@ -4385,20 +6882,18 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
Aenean eget mi. Fusce mattis est id diam. Phasellus faucibus
interdum sapien.
\end{bwinstructornote}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeEnv{bwstudentnote}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=environment for highlighting notes to students\\
- \cs{begin\{bwstudentnote\}}\\
- \meta{content}\\
- \cs{end\{{bwstudentnote}\}}}
+\begin{docEnvironment}{bwstudentnote}{}
+Environment for highlighting notes to students.
+\end{docEnvironment}
+\begin{dispExample}
\begin{bwstudentnote}
Nunc auctor bibendum eros. Maecenas porta accumsan mauris. Etiam
enim enim, elementum sed, bibendum quis, rhoncus non, metus. Fusce
@@ -4410,100 +6905,95 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
Aenean eget mi. Fusce mattis est id diam. Phasellus faucibus
interdum sapien.
\end{bwstudentnote}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
-% \DescribeEnv{bwderivation}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=fancy environment for mathematical derivations based on
- |align| environment\\
- \cs{begin\{bwderivation\}}\\
- \meta{content}\\
- \cs{end\{bwderivation\}}}
+\begin{docEnvironment}{bwderivation}{}
+Environment for mathematical derivations based on the |align| environment.
+\end{docEnvironment}
+\begin{dispExample}
\begin{bwderivation}
\gamma &= \relgamma{\magvect{v}}
&& \text{given} \\
\msup{\gamma}{2}&= \ooomx{\msup{(\frac{\magvect{v}}{c})}{2}}
&&\text{square both sides}\\
\frac{1}{\msup{\gamma}{2}}&=1-\msup{(\frac{\magvect{v}}{c})}{2}
- &&\text{reciprocal of
- both sides} \\
+ &&\text{reciprocal of both sides} \\
\msup{(\frac{\magvect{v}}{c})}{2}&=1-\frac{1}{\msup{\gamma}{2}}
&&\text{rearrange} \\
\frac{\magvect{v}}{c}&=\sqrt{1-\frac{1}{\msup{\gamma}{2}}}
&&\text{square root of both sides}
\end{bwderivation}
-\end{tcblisting}
+\end{dispExample}
%\iffalse
%</example>
%\fi
%
-% \newpage
% \subsection{Miscellaneous Commands}
%
-% \DescribeMacro{\checkpoint}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=centered checkpoint for student discussion\\
- \cs{checkpoint}}
+\begin{docCommand}{checkpoint}{}
+Centered checkpoint for student discussion.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\checkpoint
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\image}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{listing only,title=centered figure displayed actual size with
- caption\\ \cs{image}\marg{imagefilename}\marg{caption}}
+\begin{docCommand}{image}{\marg{imagefilename}\marg{caption}}
+Centered figure displayed actual size with caption.
+\end{docCommand}
+\begin{dispListing}
\image{satellite.pdf}{Photograph of satellite}
-\end{tcblisting}
+\end{dispListing}
%\iffalse
%</example>
%\fi
%
-% \DescribeMacro{\sneakyone}
%\iffalse
%<*example>
%\fi
-\begin{tcblisting}{title=shows factors dividing to a sneaky one\\
- \cs{sneakyone}\marg{thing}}
+\begin{docCommand}{sneakyone}{\marg{thing}}
+Sshows factors dividing to a sneaky one.
+\end{docCommand}
+\begin{dispExample*}{sidebyside}
\sneakyone{\m}
-\end{tcblisting}
+\end{dispExample*}
%\iffalse
%</example>
%\fi
%
-% \newpage
% \subsection{Experimental Commands}
% Commands defined in this section are not guaranteed to work consistently and are
% included for experimental uses only. They may or may not exist in future releases.
-% Most are an attempt to simplify existing commands
-% \ntodo[Question]{Should the subscript or component come first?}
-% for subscripted vectors.
+% Most are an attempt to simplify existing commands for subscripted vectors.
%
%\begin{center}
-%\begin{tabular}{ccc}
-% \multicolumn{2}{l}{Experimental Syntax} & Existing Syntax \\
-% \hline \\
-% \verb|\vecto{E}| & \vecto{E} & \verb|\vect{E}| \\
-% \verb|\vecto{E}[ball]| & \vecto{E}[ball] & \verb|\vectsub{E}{ball}| \\
-% \verb|\compvecto{E}{y}| & \compvecto{E}{y} & \verb|\compvect{E}{y}| \\
-% \verb|\compvecto{E}[ball]{x}|&\compvecto{E}[ball]{x}&\verb|\compvectsub{E}{ball}{x}| \\
-% \verb|\scompsvecto{E}| & \scompsvecto{E} & \verb|\scompsvect{E}| \\
-% \verb|\scompsvecto{E}[ball]|&\scompsvecto{E}[ball] & \verb|\scompsvectsub{E}{ball}| \\
-% \verb|\compposo{y}| & \compposo{y} & \verb|\comppos{y}| \\
-% \verb|\compposo[ball]{y}| & \compposo[ball]{y} & \verb|\comppossub{ball}{y}| \\
-% \verb|\scompsposo| & \scompsposo & \verb|\scompspos| \\
-% \verb|\scompsposo[ball]| & \scompsposo[ball] & \verb|\scompspossub{ball}|
+%\begin{tabular}{lcl}
+% \multicolumn{2}{l}{Experimental Syntax} & Existing Syntax \\
+% \hline \\
+% \verb|\vecto{E}| & \vecto{E} & \verb|\vect{E}|\\
+% \verb|\vecto{E}[ball]| & \vecto{E}[ball] & \verb|\vectsub{E}{ball}|\\
+% \verb|\compvecto{E}{y}| & \compvecto{E}{y} & \verb|\compvect{E}{y}|\\
+% \verb|\compvecto{E}{x}[ball]|& \compvecto{E}{x}[ball]& \verb|\compvectsub{E}{x}{ball}|\\
+% \verb|\scompsvecto{E}| & \scompsvecto{E} & \verb|\scompsvect{E}|\\
+% \verb|\scompsvecto{E}[ball]| & \scompsvecto{E}[ball] & \verb|\scompsvectsub{E}{ball}|\\
+% \verb|\compposo{y}| & \compposo{y} & \verb|\comppos{y}|\\
+% \verb|\compposo{y}[ball]| & \compposo{y}[ball] & \verb|\comppossub{y}{ball}|\\
+% \verb|\scompsposo| & \scompsposo & \verb|\scompspos|\\
+% \verb|\scompsposo[ball]| & \scompsposo[ball] & \verb|\scompspossub{ball}|
%\end{tabular}
%\end{center}
%
@@ -4519,9 +7009,9 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
% \begin{macrocode}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
+\RequirePackage{array}
\RequirePackage{bigints}
\RequirePackage{cancel}
-\RequirePackage[leftbars,color]{changebar}
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage{environ}
\RequirePackage{etoolbox}
@@ -4548,6 +7038,7 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\definecolor{vpythoncolor}{rgb}{0.95,0.95,0.95}
\newcommand{\lstvpython}{\lstset{language=Python,numbers=left,numberstyle=\tiny,
backgroundcolor=\color{vpythoncolor},upquote=true,breaklines}}
+\newcolumntype{C}[1]{>{\centering}m{#1}}
\newboolean{@optitalicvectors}
\newboolean{@optdoubleabsbars}
\newboolean{@optbaseunits}
@@ -4587,6 +7078,7 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\coulomb}{\ensuremath{\mathrm{C}}}
\newcommand{\degree}{\ensuremath{^{\circ}}}
\newcommand{\electronvolt}{\ensuremath{\mathrm{eV}}}
+\newcommand{\eV}{\electronvolt}
\newcommand{\farad}{\ensuremath{\mathrm{F}}}
\newcommand{\henry}{\ensuremath{\mathrm{H}}}
\newcommand{\hertz}{\ensuremath{\mathrm{Hz}}}
@@ -4620,6 +7112,7 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\T}{\tesla}
\newcommand{\V}{\volt}
\newcommand{\W}{\watt}
+\newcommand{\Wb}{\weber}
\newcommand{\square}[1]{\ensuremath{\mathrm{#1}^{2}}} % prefix 2
\newcommand*{\cubic}[1]{\ensuremath{\mathrm{#1}^{3}}} % prefix 3
\newcommand*{\quartic}[1]{\ensuremath{\mathrm{#1}^{4}}} % prefix 4
@@ -4636,19 +7129,9 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand*{\reciprocalquarted}{\ensuremath{^{\mathrm{-4}}}} % postfix -4
% \end{macrocode}
%
-% \begin{macro}{\newphysicsquantity}
-% \begin{macro}{\newphysicsconstant}
-% \begin{macro}{\hereusebaseunit}
-% \begin{macro}{\hereusedrvdunit}
-% \begin{macro}{\hereusetradunit}
-% \begin{macro}{\usebaseunit}
-% \begin{macro}{\usedrvdunit}
-% \begin{macro}{\usetradunit}
-% \begin{macro}{\perpusebaseunit}
-% \begin{macro}{\perpusedrvdunit}
-% \begin{macro}{\perpusetradunit}
-% Define a new named physics quantity or physical constant and commands for
-% selecting units. My thanks to Ulrich Diez for contributing this code.
+% \noindent Define a new named physics quantity or physical constant and
+% commands for selecting units. My thanks to Ulrich Diez for contributing
+% this code.
% \begin{macrocode}
\newcommand\mi@exchangeargs[2]{#2#1}%
\newcommand\mi@name{}%
@@ -4704,17 +7187,6 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\ifx#4\renewcommand\mi@name\let{#5mathsymbol}=\relax\fi
\mi@name\newcommand{#5mathsymbol}{\ensuremath{#6}}}{}}%
% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
%
% \noindent This block of code processes the options.
% \begin{macrocode}
@@ -4740,8 +7212,7 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\setbox\z@\hbox{%
\mathchardef\@tempa\mathcode`\[\relax
\def\@tempb##1"##2##3{\the\textfont"##3\char"}%
- \expandafter\@tempb\meaning\@tempa \relax
- }%
+ \expandafter\@tempb\meaning\@tempa \relax}%
\ht\Mathstrutbox@\ht\z@ \dp\Mathstrutbox@\dp\z@}
\begingroup
\catcode`(\active \xdef({\left\string(}
@@ -4764,543 +7235,180 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\typeout{mandi: square root symbol fixed.}
% \end{macrocode}
%
-% \begin{macro}{\m}
-% SI base unit of length or spatial displacement
+% \noindent SI base unit of length or spatial displacement
% \begin{macrocode}
\newcommand{\m}{\metre}
% \end{macrocode}
-% \end{macro}
%
-% \begin{macro}{\kg}
-% SI base unit of mass
+% \noindent SI base unit of mass
% \begin{macrocode}
\newcommand{\kg}{\kilogram}
% \end{macrocode}
-% \end{macro}
%
-% \begin{macro}{\s}
-% SI base unit of time or temporal displacement
+% \noindent SI base unit of time or temporal displacement
% \begin{macrocode}
\newcommand{\s}{\second}
% \end{macrocode}
-% \end{macro}
%
-% \begin{macro}{\A}
-% SI base unit of electric current
+% \noindent SI base unit of electric current
% \begin{macrocode}
\newcommand{\A}{\ampere}
% \end{macrocode}
-% \end{macro}
%
-% \begin{macro}{\K}
-% SI base unit of thermodynamic temperature
+% \noindent SI base unit of thermodynamic temperature
% \begin{macrocode}
\newcommand{\K}{\kelvin}
% \end{macrocode}
-% \end{macro}
%
-% \begin{macro}{\mol}
-% SI base unit of amount
+% \noindent SI base unit of amount
% \begin{macrocode}
\newcommand{\mol}{\mole}
% \end{macrocode}
-% \end{macro}
%
-% \begin{macro}{\cd}
-% SI base unit of luminous intensity
+% \noindent SI base unit of luminous intensity
% \begin{macrocode}
\newcommand{\cd}{\candela}
% \end{macrocode}
-% \end{macro}
%
-% \begin{macro}{\displacement}
% \begin{macrocode}
\newphysicsquantity{displacement}{\m}[\m][\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\mass}
-% \begin{macrocode}
\newphysicsquantity{mass}{\kg}[\kg][\kg]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\duration}
-% \begin{macrocode}
\newphysicsquantity{duration}{\s}[\s][\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\current}
-% \begin{macrocode}
\newphysicsquantity{current}{\A}[\A][\A]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\temperature}
-% \begin{macrocode}
\newphysicsquantity{temperature}{\K}[\K][\K]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\amount}
-% \begin{macrocode}
\newphysicsquantity{amount}{\mol}[\mol][\mol]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\luminous}
-% \begin{macrocode}
\newphysicsquantity{luminous}{\cd}[\cd][\cd]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\planeangle}
-% \begin{macrocode}
\newphysicsquantity{planeangle}{\m\usk\reciprocal\m}[\rad][\rad]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\solidangle}
-% \begin{macrocode}
\newphysicsquantity{solidangle}{\m\squared\usk\reciprocalsquare\m}[\sr][\sr]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\indegrees}
-% \begin{macrocode}
\newcommand{\indegrees}[1]{\ensuremath{\unit{#1}{\degree}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\inarcminutes}
-% \begin{macrocode}
+\newcommand{\inFarenheit}[1]{\ensuremath{\unit{#1}{\degree\mathrm{F}}}}
+\newcommand{\inCelsius}[1]{\ensuremath{\unit{#1}{\degree\mathrm{C}}}}
\newcommand{\inarcminutes}[1]{\ensuremath{\unit{#1}{\arcminute}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\inarcseconds}
-% \begin{macrocode}
\newcommand{\inarcseconds}[1]{\ensuremath{\unit{#1}{\arcsecond}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ineV}
-% \begin{macrocode}
\newcommand{\ineV}[1]{\ensuremath{\unit{#1}{\electronvolt}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\inAU}
-% \begin{macrocode}
+\newcommand{\inMeVocs}[1]{\ensuremath{\unit{#1}{\mathrm{MeV}\per\msup{c}{2}}}}
+\newcommand{\inMeVoc}[1]{\ensuremath{\unit{#1}{\mathrm{MeV}\per c}}}
\newcommand{\inAU}[1]{\ensuremath{\unit{#1}{\mathrm{AU}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\velocityc}
-% \begin{macrocode}
+\newcommand{\inly}[1]{\ensuremath{\unit{#1}{\mathrm{ly}}}}
+\newcommand{\incyr}[1]{\ensuremath{\unit{#1}{c\usk\mathrm{year}}}}
+\newcommand{\inpc}[1]{\ensuremath{\unit{#1}{\mathrm{pc}}}}
+\newcommand{\insolarL}[1]{\ensuremath{\unit{#1}{\Lsolar}}}
+\newcommand{\insolarT}[1]{\ensuremath{\unit{#1}{\Tsolar}}}
+\newcommand{\insolarR}[1]{\ensuremath{\unit{#1}{\Rsolar}}}
+\newcommand{\insolarM}[1]{\ensuremath{\unit{#1}{\Msolar}}}
+\newcommand{\insolarF}[1]{\ensuremath{\unit{#1}{\Fsolar}}}
+\newcommand{\insolarf}[1]{\ensuremath{\unit{#1}{\fsolar}}}
+\newcommand{\insolarMag}[1]{\ensuremath{\unit{#1}{\Magsolar}}}
+\newcommand{\insolarmag}[1]{\ensuremath{\unit{#1}{\magsolar}}}
+\newcommand{\insolarD}[1]{\ensuremath{\unit{#1}{\Dsolar}}}
+\newcommand{\insolard}[1]{\ensuremath{\unit{#1}{\dsolar}}}
\newcommand{\velocityc}[1]{\ensuremath{#1c}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\velocity}
-% \begin{macrocode}
\newphysicsquantity{velocity}{\m\usk\reciprocal\s}[\m\usk\reciprocal\s][\m\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\acceleration}
-% \begin{macrocode}
\newphysicsquantity{acceleration}{\m\usk\s\reciprocalsquared}[\N\per\kg][\m\per\s\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\gamman}
-% \begin{macrocode}
-\newcommand{\gamman}[1]{\ensuremath{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\momentum}
-% \begin{macrocode}
+\newcommand{\lorentz}[1]{\ensuremath{#1}}
\newphysicsquantity{momentum}{\m\usk\kg\usk\reciprocal\s}[\N\usk\s][\kg\usk\m\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\impulse}
-% \begin{macrocode}
\newphysicsquantity{impulse}{\m\usk\kg\usk\reciprocal\s}[\N\usk\s][\kg\usk\m\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\force}
-% \begin{macrocode}
\newphysicsquantity{force}{\m\usk\kg\usk\s\reciprocalsquared}[\N][\N]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\springstiffness}
-% \begin{macrocode}
\newphysicsquantity{springstiffness}{\kg\usk\s\reciprocalsquared}[\N\per\m][\N\per\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\springstretch}
-% \begin{macrocode}
\newphysicsquantity{springstretch}{\m}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\area}
-% \begin{macrocode}
\newphysicsquantity{area}{\m\squared}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\volume}
-% \begin{macrocode}
\newphysicsquantity{volume}{\cubic\m}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\linearmassdensity}
-% \begin{macrocode}
\newphysicsquantity{linearmassdensity}{\reciprocal\m\usk\kg}[\kg\per\m][\kg\per\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\areamassdensity}
-% \begin{macrocode}
\newphysicsquantity{areamassdensity}{\m\reciprocalsquared\usk\kg}[\kg\per\m\squared]
[\kg\per\m\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\volumemassdensity}
-% \begin{macrocode}
\newphysicsquantity{volumemassdensity}{\m\reciprocalcubed\usk\kg}[\kg\per\m\cubed]
[\kg\per\m\cubed]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\youngsmodulus}
-% \begin{macrocode}
\newphysicsquantity{youngsmodulus}{\reciprocal\m\usk\kg\usk\s\reciprocalsquared}
[\N\per\m\squared][\Pa]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\work}
-% \begin{macrocode}
-\newphysicsquantity{work}{\m\squared\usk\kg\usk\s\reciprocalsquared}[\J]
-[\N\usk\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\energy}
-% \begin{macrocode}
-\newphysicsquantity{energy}{\m\squared\usk\kg\usk\s\reciprocalsquared}[\J]
-[\N\usk\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\power}
-% \begin{macrocode}
+\newphysicsquantity{work}{\m\squared\usk\kg\usk\s\reciprocalsquared}[\J][\N\usk\m]
+\newphysicsquantity{energy}{\m\squared\usk\kg\usk\s\reciprocalsquared}[\J][\N\usk\m]
\newphysicsquantity{power}{\m\squared\usk\kg\usk\s\reciprocalcubed}[\W][\J\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\angularvelocity}
-% \begin{macrocode}
\newphysicsquantity{angularvelocity}{\rad\usk\reciprocal\s}[\rad\per\s][\rad\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\angularacceleration}
-% \begin{macrocode}
\newphysicsquantity{angularacceleration}{\rad\usk\s\reciprocalsquared}[\rad\per\s\squared]
[\rad\per\s\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\angularmomentum}
-% \begin{macrocode}
\newphysicsquantity{angularmomentum}{\m\squared\usk\kg\usk\reciprocal\s}[\J\usk\s]
[\kg\usk\m\squared\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\momentofinertia}
-% \begin{macrocode}
-\newphysicsquantity{momentofinertia}{\m\squared\usk\kg}[\J\usk\s\squared]
-[\kg\usk\m\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\torque}
-% \begin{macrocode}
-\newphysicsquantity{torque}{\m\squared\usk\kg\usk\s\reciprocalsquared}[\J\per\rad]
-[\N\usk\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\entropy}
-% \begin{macrocode}
+\newphysicsquantity{momentofinertia}{\m\squared\usk\kg}[\J\usk\s\squared][\kg\usk\m\squared]
+\newphysicsquantity{torque}{\m\squared\usk\kg\usk\s\reciprocalsquared}[\J\per\rad][\N\usk\m]
\newphysicsquantity{entropy}{\m\squared\usk\kg\usk\s\reciprocalsquared\usk\reciprocal\K}
[\J\per\K][\J\per\K]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\wavelength}
-% \begin{macrocode}
\newphysicsquantity{wavelength}{\m}[\m][\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\wavenumber}
-% \begin{macrocode}
\newphysicsquantity{wavenumber}{\reciprocal\m}[\per\m][\per\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\frequency}
-% \begin{macrocode}
\newphysicsquantity{frequency}{\reciprocal\s}[\hertz][\hertz]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\angularfrequency}
-% \begin{macrocode}
\newphysicsquantity{angularfrequency}{\rad\usk\reciprocal\s}[\rad\per\s][\rad\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\charge}
-% \begin{macrocode}
\newphysicsquantity{charge}{\A\usk\s}[\C][\C]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\permittivity}
-% \begin{macrocode}
-\newphysicsquantity{permittivity}{\m\reciprocalcubed\usk\reciprocal\kg\usk\s
- \reciprocalquarted\usk\A\squared}[\F\per\m][\C\squared\per\N\usk\m\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\permeability}
-% \begin{macrocode}
-\newphysicsquantity{permeability}{\m\usk\kg\usk\s\reciprocalsquared\usk\A
- \reciprocalsquared}[\henry\per\m][\T\usk\m\per\A]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\electricfield}
-% \begin{macrocode}
+\newphysicsquantity{permittivity}
+{\m\reciprocalcubed\usk\reciprocal\kg\usk\s\reciprocalquarted\usk\A\squared}
+[\F\per\m][\C\squared\per\N\usk\m\squared]
+\newphysicsquantity{permeability}
+{\m\usk\kg\usk\s\reciprocalsquared\usk\A\reciprocalsquared}[\henry\per\m][\T\usk\m\per\A]
\newphysicsquantity{electricfield}{\m\usk\kg\usk\s\reciprocalcubed\usk\reciprocal\A}
[\V\per\m][\N\per\C]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\electricdipolemoment}
-% \begin{macrocode}
\newphysicsquantity{electricdipolemoment}{\m\usk\s\usk\A}[\C\usk\m][\C\usk\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magneticfield}
-% \begin{macrocode}
+\newphysicsquantity{electricflux}{\m\cubed\usk\kg\usk\s\reciprocalcubed\usk\reciprocal\A}
+[\V\usk\m][\N\usk\m\squared\per\C]
\newphysicsquantity{magneticfield}{\kg\usk\s\reciprocalsquared\usk\reciprocal\A}[\T]
-[\N\per\C\usk(\m\per\s)]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\cmagneticfield}
-% \begin{macrocode}
+[\N\per\C\usk(\m\per\s)] % also \Wb\per\m\squared
+\newphysicsquantity{magneticflux}
+{\m\squared\usk\kg\usk\s\reciprocalsquared\usk\reciprocal\A}[\volt\usk\s]
+[\T\usk\m\squared] % also \Wb and \J\per\A
\newphysicsquantity{cmagneticfield}{\m\usk\kg\usk\s\reciprocalcubed\usk\reciprocal\A}
[\V\per\m][\N\per\C]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\linearchargedensity}
-% \begin{macrocode}
\newphysicsquantity{linearchargedensity}{\reciprocal\m\usk\s\usk\A}[\C\per\m][\C\per\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\areachargedensity}
-% \begin{macrocode}
\newphysicsquantity{areachargedensity}{\reciprocalsquare\m\usk\s\usk\A}
[\C\per\square\m][\C\per\square\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\volumechargedensity}
-% \begin{macrocode}
\newphysicsquantity{volumechargedensity}{\reciprocalcubic\m\usk\s\usk\A}
[\C\per\cubic\m][\C\per\cubic\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\mobility}
-% \begin{macrocode}
\newphysicsquantity{mobility}
{\m\squared\usk\kg\usk\s\reciprocalquarted\usk\reciprocal\A}[\m\squared\per\volt\usk\s]
[(\m\per\s)\per(\N\per\C)]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\numberdensity}
-% \begin{macrocode}
\newphysicsquantity{numberdensity}{\reciprocalcubic\m}[\per\cubic\m][\per\cubic\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\polarizability}
-% \begin{macrocode}
\newphysicsquantity{polarizability}{\reciprocal\kg\usk\s\quarted\usk\square\A}
[\C\usk\square\m\per\V][\C\usk\m\per(\N\per\C)]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\electricpotential}
-% \begin{macrocode}
\newphysicsquantity{electricpotential}
{\square\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocal\A}[\J\per\C][\V]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\emf}
-% \begin{macrocode}
\newphysicsquantity{emf}{\square\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocal\A}
[\J\per\C][\V]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\dielectricconstant}
-% \begin{macrocode}
\newphysicsquantity{dielectricconstant}{}[][]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\indexofrefraction}
-% \begin{macrocode}
\newphysicsquantity{indexofrefraction}{}[][]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\relativepermittivity}
-% \begin{macrocode}
\newphysicsquantity{relativepermittivity}{}[][]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\relativepermeability}
-% \begin{macrocode}
\newphysicsquantity{relativepermeability}{}[][]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\energydensity}
-% \begin{macrocode}
\newphysicsquantity{energydensity}{\m\reciprocaled\usk\kg\usk\reciprocalsquare\s}
[\J\per\cubic\m][\J\per\cubic\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\electroncurrent}
-% \begin{macrocode}
+\newphysicsquantity{energyflux}{\kg\usk\s\reciprocalcubed}
+[\W\per\m\squared][\W\per\m\squared]
\newphysicsquantity{electroncurrent}{\reciprocal\s}
[\ensuremath{\mathrm{e}}\per\s][\ensuremath{\mathrm{e}}\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\conventionalcurrent}
-% \begin{macrocode}
\newphysicsquantity{conventionalcurrent}{\A}[\C\per\s][\A]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magneticdipolemoment}
-% \begin{macrocode}
\newphysicsquantity{magneticdipolemoment}{\square\m\usk\A}[\J\per\T][\A\usk\square\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\currentdensity}
-% \begin{macrocode}
\newphysicsquantity{currentdensity}{\reciprocalsquare\m\usk\A}[\C\usk\s\per\square\m]
[\A\per\square\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\capacitance}
-% \begin{macrocode}
\newphysicsquantity{capacitance}
-{\reciprocalsquare\m\usk\reciprocal\kg\usk\quartic\s\usk\square\A}[\C\per\V][\F]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\conductivity}
-% \begin{macrocode}
+{\reciprocalsquare\m\usk\reciprocal\kg\usk\quartic\s\usk\square\A}[\F][\C\per\V]
+% also \C\squared\per\N\usk\m, \s\per\ohm
+\newphysicsquantity{inductance}
+{\square\m\usk\kg\usk\reciprocalsquare\s\usk\reciprocalsquare\A}[\henry]
+[\volt\usk\s\per\A] % also \square\m\usk\kg\per\C\squared, \Wb\per\A
\newphysicsquantity{conductivity}
{\reciprocalcubic\m\usk\reciprocal\kg\usk\cubic\s\usk\square\A}[\siemens\per\m]
-[\A\per\V\usk\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\resistivity}
-% \begin{macrocode}
+[(\A\per\square\m)\per(\V\per\m)]
\newphysicsquantity{resistivity}
-{\cubic\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocalsquare\A}[\m\per\siemens]
-[\ohm\usk\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\resistance}
-% \begin{macrocode}
+{\cubic\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocalsquare\A}[\ohm\usk\m]
+[(\V\per\m)\per(\A\per\square\m)]
\newphysicsquantity{resistance}
{\square\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocalsquare\A}[\V\per\A][\ohm]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\conductance}
-% \begin{macrocode}
\newphysicsquantity{conductance}
{\reciprocalsquare\m\usk\reciprocal\kg\usk\cubic\s\usk\square\A}[\A\per\V][\siemens]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\lv}
-% \begin{macro}{\rv}
-% \begin{macrocode}
+\newphysicsquantity{magneticcharge}{\m\usk\A}[\m\usk\A][\m\usk\A]
\newcommand{\lv}{\ensuremath{\left\langle}}
\newcommand{\rv}{\ensuremath{\right\rangle}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\symvect}
-% \begin{macrocode}
\newcommand{\symvect}{\mivector}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ncompsvect}
-% \begin{macrocode}
\newcommand{\ncompsvect}{\mivector}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magvectncomps}
-% Written in LaTeX3
-% \begin{macrocode}
-\ExplSyntaxOn
+\ExplSyntaxOn % Written in LaTeX3
\NewDocumentCommand{\magvectncomps}{ m O{} }
{%
\sum_of_squares:nn { #1 }{ #2 }
}%
-
\cs_new:Npn \sum_of_squares:nn #1 #2
{%
\tl_if_empty:nTF { #2 }
@@ -5319,128 +7427,44 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
}%
}%
\ExplSyntaxOff
-% \end{macrocode}
-% \end{macro}
%
-% \begin{macro}{\zerovect}
-% \begin{macro}{\ncompszerovect}
-% \begin{macrocode}
\newcommand{\zerovect}{\vect{0}}
\newcommand{\ncompszerovect}{\mivector{0,0,0}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vect}
-% \begin{macrocode}
\ifthenelse{\boolean{@optitalicvectors}}
{\newcommand{\vect}[1]{\ensuremath{\vec{#1}}}}
{\newcommand{\vect}[1]{\ensuremath{\vec{\mathrm{#1}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magvect}
-% \begin{macrocode}
\ifthenelse{\boolean{@optdoubleabsbars}}
{\newcommand{\magvect}[1]{\ensuremath{\magof{\vect{#1}}}}}
{\newcommand{\magvect}[1]{\ensuremath{\abs{\vect{#1}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\dmagvect}
-% \begin{macro}{\Dmagvect}
-% \begin{macrocode}
\newcommand{\dmagvect}[1]{\ensuremath{\dx{\magvect{#1}}}}
\newcommand{\Dmagvect}[1]{\ensuremath{\Delta\!\magvect{#1}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dirvect}
-% \begin{macrocode}
\ifthenelse{\boolean{@optitalicvectors}}
{\newcommand{\dirvect}[1]{\ensuremath{\widehat{{#1}}}}}
{\newcommand{\dirvect}[1]{\ensuremath{\widehat{\mathrm{#1}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\compvect}
-% \begin{macrocode}
\ifthenelse{\boolean{@optitalicvectors}}
{\newcommand{\compvect}[2]{\ensuremath{\ssub{#1}{\(#2\)}}}}
{\newcommand{\compvect}[2]{\ensuremath{\ssub{\mathrm{#1}}{\(#2\)}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\scompsvect}
-% \begin{macrocode}
\newcommand{\scompsvect}[1]{\ensuremath{\lv
\compvect{#1}{x},
\compvect{#1}{y},
\compvect{#1}{z}\rv}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magvectscomps}
-% \begin{macrocode}
\newcommand{\magvectscomps}[1]{\ensuremath{\sqrt{
\msup{\compvect{#1}{x}}{2}+
\msup{\compvect{#1}{y}}{2}+
\msup{\compvect{#1}{z}}{2}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\dvect}
-% \begin{macro}{\Dvect}
-% \begin{macrocode}
\newcommand{\dvect}[1]{\ensuremath{\mathrm{d}\vect{#1}}}
\newcommand{\Dvect}[1]{\ensuremath{\Delta\vect{#1}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dirdvect}
-% \begin{macro}{\dirDvect}
-% \begin{macrocode}
\newcommand{\dirdvect}[1]{\ensuremath{\widehat{\dvect{#1}}}}
\newcommand{\dirDvect}[1]{\ensuremath{\widehat{\Dvect{#1}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\ddirvect}
-% \begin{macro}{\Ddirvect}
-% \begin{macrocode}
\newcommand{\ddirvect}[1]{\ensuremath{\mathrm{d}\dirvect{E}}}
\newcommand{\Ddirvect}[1]{\ensuremath{\Delta\dirvect{E}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\magdvect}
-% \begin{macro}{\magDvect}
-% \begin{macrocode}
\ifthenelse{\boolean{@optdoubleabsbars}}
{\newcommand{\magdvect}[1]{\ensuremath{\magof{\dvect{#1}}}}
\newcommand{\magDvect}[1]{\ensuremath{\magof{\Dvect{#1}}}}}
{\newcommand{\magdvect}[1]{\ensuremath{\abs{\dvect{#1}}}}
\newcommand{\magDvect}[1]{\ensuremath{\abs{\Dvect{#1}}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\compdvect}
-% \begin{macro}{\compDvect}
-% \begin{macrocode}
\newcommand{\compdvect}[2]{\ensuremath{\mathrm{d}\compvect{#1}{#2}}}
\newcommand{\compDvect}[2]{\ensuremath{\Delta\compvect{#1}{#2}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompsdvect}
-% \begin{macro}{\scompsDvect}
-% \begin{macrocode}
\newcommand{\scompsdvect}[1]{\ensuremath{\lv
\compdvect{#1}{x},
\compdvect{#1}{y},
@@ -5449,386 +7473,130 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\compDvect{#1}{x},
\compDvect{#1}{y},
\compDvect{#1}{z}\rv}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervect}
-% \begin{macro}{\Dervect}
-% \begin{macrocode}
\newcommand{\dervect}[2]{\ensuremath{\frac{\dvect{#1}}{\mathrm{d}{#2}}}}
\newcommand{\Dervect}[2]{\ensuremath{\frac{\Dvect{#1}}{\Delta{#2}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\compdervect}
-% \begin{macro}{\compDervect}
-% \begin{macrocode}
-\newcommand{\compdervect}[3]{\ensuremath{\dbyd{\compvect{#1}{#3}}{#2}}}
-\newcommand{\compDervect}[3]{\ensuremath{\DbyD{\compvect{#1}{#3}}{#2}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompsdervect}
-% \begin{macro}{\scompsDervect}
-% \begin{macrocode}
+\newcommand{\compdervect}[3]{\ensuremath{\dbyd{\compvect{#1}{#2}}{#3}}}
+\newcommand{\compDervect}[3]{\ensuremath{\DbyD{\compvect{#1}{#2}}{#3}}}
\newcommand{\scompsdervect}[2]{\ensuremath{\lv
- \compdervect{#1}{#2}{x},
- \compdervect{#1}{#2}{y},
- \compdervect{#1}{#2}{z}\rv}}
+ \compdervect{#1}{x}{#2},
+ \compdervect{#1}{y}{#2},
+ \compdervect{#1}{z}{#2}\rv}}
\newcommand{\scompsDervect}[2]{\ensuremath{\lv
- \compDervect{#1}{#2}{x},
- \compDervect{#1}{#2}{y},
- \compDervect{#1}{#2}{z}\rv}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\magdervect}
-% \begin{macro}{\magDervect}
-% \begin{macrocode}
+ \compDervect{#1}{x}{#2},
+ \compDervect{#1}{y}{#2},
+ \compDervect{#1}{z}{#2}\rv}}
\ifthenelse{\boolean{@optdoubleabsbars}}
{\newcommand{\magdervect}[2]{\ensuremath{\magof{\dervect{#1}{#2}}}}
\newcommand{\magDervect}[2]{\ensuremath{\magof{\Dervect{#1}{#2}}}}}
{\newcommand{\magdervect}[2]{\ensuremath{\abs{\dervect{#1}{#2}}}}
\newcommand{\magDervect}[2]{\ensuremath{\abs{\Dervect{#1}{#2}}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dermagvect}
-% \begin{macro}{\Dermagvect}
-% \begin{macrocode}
\newcommand{\dermagvect}[2]{\ensuremath{\dbyd{\magvect{#1}}{#2}}}
\newcommand{\Dermagvect}[2]{\ensuremath{\DbyD{\magvect{#1}}{#2}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompspos}
-% \begin{macrocode}
\newcommand{\scompspos}{\mivector{x,y,z}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\comppos}
-% \begin{macrocode}
\newcommand{\comppos}[1]{\ensuremath{{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\scompsdpos}
-% \begin{macro}{\scompsDpos}
-% \begin{macrocode}
\newcommand{\scompsdpos}{\mivector{\mathrm{d}x,\mathrm{d}y,\mathrm{d}z}}
\newcommand{\scompsDpos}{\mivector{\Delta x,\Delta y,\Delta z}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\compdpos}
-% \begin{macro}{\compDpos}
-% \begin{macrocode}
\newcommand{\compdpos}[1]{\ensuremath{\mathrm{d}{#1}}}
\newcommand{\compDpos}[1]{\ensuremath{\Delta{#1}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompsderpos}
-% \begin{macro}{\scompsDerpos}
-% \begin{macrocode}
\newcommand{\scompsderpos}[1]{\ensuremath{\lv
\frac{\mathrm{d}x}{\mathrm{d}{#1}},\frac{\mathrm{d}y}{\mathrm{d}{#1}},
\frac{\mathrm{d}z}{\mathrm{d}{#1}}\rv}}
\newcommand{\scompsDerpos}[1]{\ensuremath{\lv
\frac{\Delta x}{\Delta{#1}},\frac{\Delta y}{\Delta{#1}},
\frac{\Delta z}{\Delta{#1}}\rv}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\compderpos}
-% \begin{macro}{\compDerpos}
-% \begin{macrocode}
\newcommand{\compderpos}[2]{\ensuremath{\frac{\mathrm{d}{#1}}{\mathrm{d}{#2}}}}
\newcommand{\compDerpos}[2]{\ensuremath{\frac{\Delta{#1}}{\Delta{#2}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectsub}
-% \begin{macrocode}
\newcommand{\vectsub}[2]{\ensuremath{\ssub{\vect{#1}}{#2}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\compvectsub}
-% \begin{macrocode}
\ifthenelse{\boolean{@optitalicvectors}}
- {\newcommand{\compvectsub}[3]{\ensuremath{\ssub{#1}{#2,\(#3\)}}}}
- {\newcommand{\compvectsub}[3]{\ensuremath{\ssub{\mathrm{#1}}{#2,\(#3\)}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\scompsvectsub}
-% \begin{macrocode}
+ {\newcommand{\compvectsub}[3]{\ensuremath{\ssub{#1}{\(#2\),#3}}}}
+ {\newcommand{\compvectsub}[3]{\ensuremath{\ssub{\mathrm{#1}}{\(#2\),#3}}}}
\newcommand{\scompsvectsub}[2]{\ensuremath{\lv
- \compvectsub{#1}{#2}{x},
- \compvectsub{#1}{#2}{y},
- \compvectsub{#1}{#2}{z}\rv}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magvectsub}
-% \begin{macrocode}
+ \compvectsub{#1}{x}{#2},
+ \compvectsub{#1}{y}{#2},
+ \compvectsub{#1}{z}{#2}\rv}}
\ifthenelse{\boolean{@optdoubleabsbars}}
{\newcommand{\magvectsub}[2]{\ensuremath{\magof{\vectsub{#1}{#2}}}}}
{\newcommand{\magvectsub}[2]{\ensuremath{\abs{\vectsub{#1}{#2}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magvectsubscomps}
-% \begin{macrocode}
\newcommand{\magvectsubscomps}[2]{\ensuremath{\sqrt{
- \msup{\compvectsub{#1}{#2}{x}}{2}+
- \msup{\compvectsub{#1}{#2}{y}}{2}+
- \msup{\compvectsub{#1}{#2}{z}}{2}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\dirvectsub}
-% \begin{macrocode}
+ \msup{\compvectsub{#1}{x}{#2}}{2}+
+ \msup{\compvectsub{#1}{y}{#2}}{2}+
+ \msup{\compvectsub{#1}{z}{#2}}{2}}}}
\ifthenelse{\boolean{@optitalicvectors}}
{\newcommand{\dirvectsub}[2]{\ensuremath{\ssub{\widehat{#1}}{#2}}}}
{\newcommand{\dirvectsub}[2]{\ensuremath{\ssub{\widehat{\mathrm{#1}}}{#2}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\dvectsub}
-% \begin{macro}{\Dvectsub}
-% \begin{macrocode}
\newcommand{\dvectsub}[2]{\ensuremath{\mathrm{d}\vectsub{#1}{#2}}}
\newcommand{\Dvectsub}[2]{\ensuremath{\Delta\vectsub{#1}{#2}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\compdvectsub}
-% \begin{macro}{\compDvectsub}
-% \begin{macrocode}
\newcommand{\compdvectsub}[3]{\ensuremath{\mathrm{d}\compvectsub{#1}{#2}{#3}}}
\newcommand{\compDvectsub}[3]{\ensuremath{\Delta\compvectsub{#1}{#2}{#3}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompsdvectsub}
-% \begin{macro}{\scompsDvectsub}
-% \begin{macrocode}
\newcommand{\scompsdvectsub}[2]{\ensuremath{\lv
- \compdvectsub{#1}{#2}{x},
- \compdvectsub{#1}{#2}{y},
- \compdvectsub{#1}{#2}{z}\rv}}
+ \compdvectsub{#1}{x}{#2},
+ \compdvectsub{#1}{y}{#2},
+ \compdvectsub{#1}{z}{#2}\rv}}
\newcommand{\scompsDvectsub}[2]{\ensuremath{\lv
- \compDvectsub{#1}{#2}{x},
- \compDvectsub{#1}{#2}{y},
- \compDvectsub{#1}{#2}{z},\rv}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dermagvectsub}
-% \begin{macro}{\Dermagvectsub}
-% \begin{macrocode}
+ \compDvectsub{#1}{x}{#2},
+ \compDvectsub{#1}{y}{#2},
+ \compDvectsub{#1}{z}{#2}\rv}}
\newcommand{\dermagvectsub}[3]{\ensuremath{\dbyd{\magvectsub{#1}{#2}}{#3}}}
\newcommand{\Dermagvectsub}[3]{\ensuremath{\DbyD{\magvectsub{#1}{#2}}{#3}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectsub}
-% \begin{macro}{\Dervectsub}
-% \begin{macrocode}
\newcommand{\dervectsub}[3]{\ensuremath{\dbyd{\vectsub{#1}{#2}}{#3}}}
\newcommand{\Dervectsub}[3]{\ensuremath{\DbyD{\vectsub{#1}{#2}}{#3}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\magdervectsub}
-% \begin{macro}{\magDervectsub}
-% \begin{macrocode}
\ifthenelse{\boolean{@optdoubleabsbars}}
{\newcommand{\magdervectsub}[3]{\ensuremath{\magof{\dervectsub{#1}{#2}{#3}}}}
\newcommand{\magDervectsub}[3]{\ensuremath{\magof{\Dervectsub{#1}{#2}{#3}}}}}
{\newcommand{\magdervectsub}[3]{\ensuremath{\abs{\dervectsub{#1}{#2}{#3}}}}
\newcommand{\magDervectsub}[3]{\ensuremath{\abs{\Dervectsub{#1}{#2}{#3}}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\compdervectsub}
-% \begin{macro}{\compDervectsub}
-% \begin{macrocode}
-\newcommand{\compdervectsub}[4]{\ensuremath{\dbyd{\compvectsub{#1}{#2}{#4}}{#3}}}
-\newcommand{\compDervectsub}[4]{\ensuremath{\DbyD{\compvectsub{#1}{#2}{#4}}{#3}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompsdervectsub}
-% \begin{macro}{\scompsDervectsub}
-% \begin{macrocode}
+\newcommand{\compdervectsub}[4]{\ensuremath{\dbyd{\compvectsub{#1}{#2}{#3}}{#4}}}
+\newcommand{\compDervectsub}[4]{\ensuremath{\DbyD{\compvectsub{#1}{#2}{#3}}{#4}}}
\newcommand{\scompsdervectsub}[3]{\ensuremath{\lv
- \compdervectsub{#1}{#2}{#3}{x},
- \compdervectsub{#1}{#2}{#3}{y},
- \compdervectsub{#1}{#2}{#3}{z}\rv}}
+ \compdervectsub{#1}{x}{#2}{#3},
+ \compdervectsub{#1}{y}{#2}{#3},
+ \compdervectsub{#1}{z}{#2}{#3}\rv}}
\newcommand{\scompsDervectsub}[3]{\ensuremath{\lv
- \compDervectsub{#1}{#2}{#3}{x},
- \compDervectsub{#1}{#2}{#3}{y},
- \compDervectsub{#1}{#2}{#3}{z}\rv}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\comppossub}
-% \begin{macrocode}
-\newcommand{\comppossub}[2]{\ensuremath{\ssub{#2}{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\scompspossub}
-% \begin{macrocode}
+ \compDervectsub{#1}{x}{#2}{#3},
+ \compDervectsub{#1}{y}{#2}{#3},
+ \compDervectsub{#1}{z}{#2}{#3}\rv}}
+\newcommand{\comppossub}[2]{\ensuremath{\ssub{#1}{#2}}}
\newcommand{\scompspossub}[1]{\ensuremath{\lv
- \comppossub{#1}{x},
- \comppossub{#1}{y},
- \comppossub{#1}{z}\rv}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\compdpossub}
-% \begin{macro}{\compDpossub}
-% \begin{macrocode}
+ \comppossub{x}{#1},
+ \comppossub{y}{#1},
+ \comppossub{z}{#1}\rv}}
\newcommand{\compdpossub}[2]{\ensuremath{\mathrm{d}\comppossub{#1}{#2}}}
\newcommand{\compDpossub}[2]{\ensuremath{\Delta\comppossub{#1}{#2}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompsdpossub}
-% \begin{macro}{\scompsDpossub}
-% \begin{macrocode}
\newcommand{\scompsdpossub}[1]{\ensuremath{\lv
- \compdpossub{#1}{x},
- \compdpossub{#1}{y},
- \compdpossub{#1}{z}\rv}}
+ \compdpossub{x}{#1},
+ \compdpossub{y}{#1},
+ \compdpossub{z}{#1}\rv}}
\newcommand{\scompsDpossub}[1]{\ensuremath{\lv
- \compDpossub{#1}{x},
- \compDpossub{#1}{y},
- \compDpossub{#1}{z}\rv}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\compderpossub}
-% \begin{macro}{\compDerpossub}
-% \begin{macrocode}
-\newcommand{\compderpossub}[3]{\ensuremath{\dbyd{\comppossub{#1}{#3}}{#2}}}
-\newcommand{\compDerpossub}[3]{\ensuremath{\DbyD{\comppossub{#1}{#3}}{#2}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompsderpossub}
-% \begin{macro}{\scompsDerpossub}
-% \begin{macrocode}
+ \compDpossub{x}{#1},
+ \compDpossub{y}{#1},
+ \compDpossub{z}{#1}\rv}}
+\newcommand{\compderpossub}[3]{\ensuremath{\dbyd{\comppossub{#1}{#2}}{#3}}}
+\newcommand{\compDerpossub}[3]{\ensuremath{\DbyD{\comppossub{#1}{#2}}{#3}}}
\newcommand{\scompsderpossub}[2]{\ensuremath{\lv
- \compderpossub{#1}{#2}{x},
- \compderpossub{#1}{#2}{y},
- \compderpossub{#1}{#2}{z}\rv}}
+ \compderpossub{x}{#1}{#2},
+ \compderpossub{y}{#1}{#2},
+ \compderpossub{z}{#1}{#2}\rv}}
\newcommand{\scompsDerpossub}[2]{\ensuremath{\lv
- \compDerpossub{#1}{#2}{x},
- \compDerpossub{#1}{#2}{y},
- \compDerpossub{#1}{#2}{z}\rv}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\relpos}
-% \begin{macrocode}
+ \compDerpossub{x}{#1}{#2},
+ \compDerpossub{y}{#1}{#2},
+ \compDerpossub{z}{#1}{#2}\rv}}
\newcommand{\relpos}[1]{\ensuremath{\vectsub{r}{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\relvel}
-% \begin{macrocode}
\newcommand{\relvel}[1]{\ensuremath{\vectsub{v}{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\relmom}
-% \begin{macrocode}
\newcommand{\relmom}[1]{\ensuremath{\vectsub{p}{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\relfor}
-% \begin{macrocode}
\newcommand{\relfor}[1]{\ensuremath{\vectsub{F}{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vectdotvect}
-% \begin{macrocode}
\newcommand{\vectdotvect}[2]{\ensuremath{{#1}\bullet{#2}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vectdotsvect}
-% \begin{macrocode}
\newcommand{\vectdotsvect}[2]{\ensuremath{\scompsvect{#1}\bullet\scompsvect{#2}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vectdotevect}
-% \begin{macrocode}
\newcommand{\vectdotevect}[2]{\ensuremath{
\compvect{#1}{x}\compvect{#2}{x}+
\compvect{#1}{y}\compvect{#2}{y}+
\compvect{#1}{z}\compvect{#2}{z}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vectdotspos}
-% \begin{macrocode}
\newcommand{\vectdotspos}[1]{\ensuremath{\scompsvect{#1}\bullet\scompspos}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vectdotepos}
-% \begin{macrocode}
\newcommand{\vectdotepos}[1]{\ensuremath{
\compvect{#1}{x}\comppos{x}+
\compvect{#1}{y}\comppos{y}+
\compvect{#1}{z}\comppos{z}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vectdotsdvect}
-% \begin{macro}{\vectdotsDvect}
-% \begin{macrocode}
\newcommand{\vectdotsdvect}[2]{\ensuremath{\scompsvect{#1}\bullet\scompsdvect{#2}}}
\newcommand{\vectdotsDvect}[2]{\ensuremath{\scompsvect{#1}\bullet\scompsDvect{#2}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectdotedvect}
-% \begin{macro}{\vectdoteDvect}
-% \begin{macrocode}
\newcommand{\vectdotedvect}[2]{\ensuremath{
\compvect{#1}{x}\compdvect{#2}{x}+
\compvect{#1}{y}\compdvect{#2}{y}+
@@ -5837,22 +7605,8 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\compvect{#1}{x}\compDvect{#2}{x}+
\compvect{#1}{y}\compDvect{#2}{y}+
\compvect{#1}{z}\compDvect{#2}{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectdotsdpos}
-% \begin{macro}{\vectdotsDpos}
-% \begin{macrocode}
\newcommand{\vectdotsdpos}[1]{\ensuremath{\scompsvect{#1}\bullet\scompsdpos}}
\newcommand{\vectdotsDpos}[1]{\ensuremath{\scompsvect{#1}\bullet\scompsDpos}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectdotedpos}
-% \begin{macro}{\vectdoteDpos}
-% \begin{macrocode}
\newcommand{\vectdotedpos}[1]{\ensuremath{
\compvect{#1}{x}\compdpos{x}+
\compvect{#1}{y}\compdpos{y}+
@@ -5861,242 +7615,113 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\compvect{#1}{x}\compDpos{x}+
\compvect{#1}{y}\compDpos{y}+
\compvect{#1}{z}\compDpos{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectsubdotsvectsub}
-% \begin{macrocode}
\newcommand{\vectsubdotsvectsub}[4]{\ensuremath{
\scompsvectsub{#1}{#2}\bullet\scompsvectsub{#3}{#4}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vectsubdotevectsub}
-% \begin{macrocode}
\newcommand{\vectsubdotevectsub}[4]{\ensuremath{
- \compvectsub{#1}{#2}{x}\compvectsub{#3}{#4}{x}+
- \compvectsub{#1}{#2}{y}\compvectsub{#3}{#4}{y}+
- \compvectsub{#1}{#2}{z}\compvectsub{#3}{#4}{z}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vectsubdotsdvectsub}
-% \begin{macro}{\vectsubdotsDvectsub}
-% \begin{macrocode}
-\newcommand{\vectsubdotsdvectsub}[4]{\ensuremath{
+ \compvectsub{#1}{x}{#2}\compvectsub{#3}{x}{#4}+
+ \compvectsub{#1}{y}{#2}\compvectsub{#3}{y}{#4}+
+ \compvectsub{#1}{z}{#2}\compvectsub{#3}{z}{#4}}}
+\newcommand{\vectsubdotsdvectsub}[4]{\ensuremath{%
\scompsvectsub{#1}{#2}\bullet\scompsdvectsub{#3}{#4}}}
-\newcommand{\vectsubdotsDvectsub}[4]{\ensuremath{
+\newcommand{\vectsubdotsDvectsub}[4]{\ensuremath{%
\scompsvectsub{#1}{#2}\bullet\scompsDvectsub{#3}{#4}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectsubdotedvectsub}
-% \begin{macro}{\vectsubdoteDvectsub}
-% \begin{macrocode}
\newcommand{\vectsubdotedvectsub}[4]{\ensuremath{
- \compvectsub{#1}{#2}{x}\compdvectsub{#3}{#4}{x}+
- \compvectsub{#1}{#2}{y}\compdvectsub{#3}{#4}{y}+
- \compvectsub{#1}{#2}{z}\compdvectsub{#3}{#4}{z}}}
+ \compvectsub{#1}{x}{#2}\compdvectsub{#3}{x}{#4}+
+ \compvectsub{#1}{y}{#2}\compdvectsub{#3}{y}{#4}+
+ \compvectsub{#1}{z}{#2}\compdvectsub{#3}{z}{#4}}}
\newcommand{\vectsubdoteDvectsub}[4]{\ensuremath{
- \compvectsub{#1}{#2}{x}\compDvectsub{#3}{#4}{x}+
- \compvectsub{#1}{#2}{y}\compDvectsub{#3}{#4}{y}+
- \compvectsub{#1}{#2}{z}\compDvectsub{#3}{#4}{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectsubdotsdvect}
-% \begin{macro}{\vectsubdotsDvect}
-% \begin{macrocode}
+ \compvectsub{#1}{x}{#2}\compDvectsub{#3}{x}{#4}+
+ \compvectsub{#1}{y}{#2}\compDvectsub{#3}{y}{#4}+
+ \compvectsub{#1}{z}{#2}\compDvectsub{#3}{z}{#4}}}
\newcommand{\vectsubdotsdvect}[3]{\ensuremath{
\scompsvectsub{#1}{#2}\bullet\scompsdvect{#3}}}
\newcommand{\vectsubdotsDvect}[3]{\ensuremath{
\scompsvectsub{#1}{#2}\bullet\scompsDvect{#3}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectsubdotedvect}
-% \begin{macro}{\vectsubdoteDvect}
-% \begin{macrocode}
\newcommand{\vectsubdotedvect}[3]{\ensuremath{
- \compvectsub{#1}{#2}{x}\compdvect{#3}{x}+
- \compvectsub{#1}{#2}{y}\compdvect{#3}{y}+
- \compvectsub{#1}{#2}{z}\compdvect{#3}{z}}}
+ \compvectsub{#1}{x}{#2}\compdvect{x}{#3}+
+ \compvectsub{#1}{y}{#2}\compdvect{y}{#3}+
+ \compvectsub{#1}{z}{#2}\compdvect{z}{#3}}}
\newcommand{\vectsubdoteDvect}[3]{\ensuremath{
- \compvectsub{#1}{#2}{x}\compDvect{#3}{x}+
- \compvectsub{#1}{#2}{y}\compDvect{#3}{y}+
- \compvectsub{#1}{#2}{z}\compDvect{#3}{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectsubdotsdpos}
-% \begin{macro}{\vectsubdotsDpos}
-% \begin{macrocode}
+ \compvectsub{#1}{x}{#2}\compDvect{x}{#3}+
+ \compvectsub{#1}{y}{#2}\compDvect{y}{#3}+
+ \compvectsub{#1}{z}{#2}\compDvect{z}{#3}}}
\newcommand{\vectsubdotsdpos}[2]{\ensuremath{
\scompsvectsub{#1}{#2}\bullet\scompsdpos}}
\newcommand{\vectsubdotsDpos}[2]{\ensuremath{
\scompsvectsub{#1}{#2}\bullet\scompsDpos}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectsubdotedpos}
-% \begin{macro}{\vectsubdoteDpos}
-% \begin{macrocode}
\newcommand{\vectsubdotedpos}[2]{\ensuremath{
- \compvectsub{#1}{#2}{x}\compdpos{x}+
- \compvectsub{#1}{#2}{y}\compdpos{y}+
- \compvectsub{#1}{#2}{z}\compdpos{z}}}
+ \compvectsub{#1}{x}{#2}\compdpos{x}+
+ \compvectsub{#1}{y}{#2}\compdpos{y}+
+ \compvectsub{#1}{z}{#2}\compdpos{z}}}
\newcommand{\vectsubdoteDpos}[2]{\ensuremath{
- \compvectsub{#1}{#2}{x}\compDpos{x}+
- \compvectsub{#1}{#2}{y}\compDpos{y}+
- \compvectsub{#1}{#2}{z}\compDpos{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectdotsvect}
-% \begin{macro}{\Dervectdotsvect}
-% \begin{macrocode}
+ \compvectsub{#1}{x}{#2}\compDpos{x}+
+ \compvectsub{#1}{y}{#2}\compDpos{y}+
+ \compvectsub{#1}{z}{#2}\compDpos{z}}}
\newcommand{\dervectdotsvect}[3]{\ensuremath{
\scompsdervect{#1}{#2}\bullet\scompsvect{#3}}}
\newcommand{\Dervectdotsvect}[3]{\ensuremath{
\scompsDervect{#1}{#2}\bullet\scompsvect{#3}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectdotevect}
-% \begin{macro}{\Dervectdotevect}
-% \begin{macrocode}
\newcommand{\dervectdotevect}[3]{\ensuremath{
- \compdervect{#1}{#2}{x}\compvect{#3}{x}+
- \compdervect{#1}{#2}{y}\compvect{#3}{y}+
- \compdervect{#1}{#2}{z}\compvect{#3}{z}}}
+ \compdervect{#1}{x}{#2}\compvect{x}{#3}+
+ \compdervect{#1}{y}{#2}\compvect{y}{#3}+
+ \compdervect{#1}{z}{#2}\compvect{z}{#3}}}
\newcommand{\Dervectdotevect}[3]{\ensuremath{
- \compDervect{#1}{#2}{x}\compvect{#3}{x}+
- \compDervect{#1}{#2}{y}\compvect{#3}{y}+
- \compDervect{#1}{#2}{z}\compvect{#3}{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectdotsdervect}
-% \begin{macro}{\vectdotsDervect}
-% \begin{macrocode}
+ \compDervect{#1}{x}{#2}\compvect{x}{#3}+
+ \compDervect{#1}{y}{#2}\compvect{y}{#3}+
+ \compDervect{#1}{z}{#2}\compvect{z}{#3}}}
\newcommand{\vectdotsdervect}[3]{\ensuremath{
\scompsvect{#1}\bullet\scompsdervect{#2}{#3}}}
\newcommand{\vectdotsDervect}[3]{\ensuremath{
\scompsvect{#1}\bullet\scompsDervect{#2}{#3}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vectdotedervect}
-% \begin{macro}{\vectdoteDervect}
-% \begin{macrocode}
\newcommand{\vectdotedervect}[3]{\ensuremath{
- \compvect{#1}{x}\compdervect{#2}{#3}{x}+
- \compvect{#1}{y}\compdervect{#2}{#3}{y}+
- \compvect{#1}{z}\compdervect{#2}{#3}{z}}}
+ \compvect{#1}{x}\compdervect{#2}{x}{#3}+
+ \compvect{#1}{y}\compdervect{#2}{y}{#3}+
+ \compvect{#1}{z}\compdervect{#2}{z}{#3}}}
\newcommand{\vectdoteDervect}[3]{\ensuremath{
- \compvect{#1}{x}\compDervect{#2}{#3}{x}+
- \compvect{#1}{y}\compDervect{#2}{#3}{y}+
- \compvect{#1}{z}\compDervect{#2}{#3}{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectdotspos}
-% \begin{macro}{\Dervectdotspos}
-% \begin{macrocode}
+ \compvect{#1}{x}\compDervect{#2}{x}{#3}+
+ \compvect{#1}{y}\compDervect{#2}{y}{#3}+
+ \compvect{#1}{z}\compDervect{#2}{z}{#3}}}
\newcommand{\dervectdotspos}[2]{\ensuremath{
\scompsdervect{#1}{#2}\bullet\scompspos}}
\newcommand{\Dervectdotspos}[2]{\ensuremath{
\scompsDervect{#1}{#2}\bullet\scompspos}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectdotepos}
-% \begin{macro}{\Dervectdotepos}
-% \begin{macrocode}
\newcommand{\dervectdotepos}[2]{\ensuremath{
- \compdervect{#1}{#2}{x}\comppos{x}+
- \compdervect{#1}{#2}{y}\comppos{y}+
- \compdervect{#1}{#2}{z}\comppos{z}}}
+ \compdervect{#1}{x}{#2}\comppos{x}+
+ \compdervect{#1}{y}{#2}\comppos{y}+
+ \compdervect{#1}{z}{#2}\comppos{z}}}
\newcommand{\Dervectdotepos}[2]{\ensuremath{
- \compDervect{#1}{#2}{x}\comppos{x}+
- \compDervect{#1}{#2}{y}\comppos{y}+
- \compDervect{#1}{#2}{z}\comppos{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectdotsdvect}
-% \begin{macro}{\DervectdotsDvect}
-% \begin{macrocode}
+ \compDervect{#1}{x}{#2}\comppos{x}+
+ \compDervect{#1}{y}{#2}\comppos{y}+
+ \compDervect{#1}{z}{#2}\comppos{z}}}
\newcommand{\dervectdotsdvect}[3]{\ensuremath{
\scompsdervect{#1}{#2}\bullet\scompsdvect{#3}}}
\newcommand{\DervectdotsDvect}[3]{\ensuremath{
\scompsDervect{#1}{#2}\bullet\scompsDvect{#3}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectdotedvect}
-% \begin{macro}{\DervectdoteDvect}
-% \begin{macrocode}
\newcommand{\dervectdotedvect}[3]{\ensuremath{
- \compdervect{#1}{#2}{x}\compdvect{#3}{x}+
- \compdervect{#1}{#2}{y}\compdvect{#3}{y}+
- \compdervect{#1}{#2}{z}\compdvect{#3}{z}}}
+ \compdervect{#1}{x}{#2}\compdvect{#3}{x}+
+ \compdervect{#1}{y}{#2}\compdvect{#3}{y}+
+ \compdervect{#1}{z}{#2}\compdvect{#3}{z}}}
\newcommand{\DervectdoteDvect}[3]{\ensuremath{
- \compDervect{#1}{#2}{x}\compDvect{#3}{x}+
- \compDervect{#1}{#2}{y}\compDvect{#3}{y}+
- \compDervect{#1}{#2}{z}\compDvect{#3}{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectdotsdpos}
-% \begin{macro}{\DervectdotsDpos}
-% \begin{macrocode}
+ \compDervect{#1}{x}{#2}\compDvect{#3}{x}+
+ \compDervect{#1}{y}{#2}\compDvect{#3}{y}+
+ \compDervect{#1}{z}{#2}\compDvect{#3}{z}}}
\newcommand{\dervectdotsdpos}[2]{\ensuremath{
\scompsdervect{#1}{#2}\bullet\scompsdpos}}
\newcommand{\DervectdotsDpos}[2]{\ensuremath{
\scompsDervect{#1}{#2}\bullet\scompsDpos}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dervectdotedpos}
-% \begin{macro}{\DervectdoteDpos}
-% \begin{macrocode}
\newcommand{\dervectdotedpos}[2]{\ensuremath{
- \compdervect{#1}{#2}{x}\compdpos{x}+
- \compdervect{#1}{#2}{y}\compdpos{y}+
- \compdervect{#1}{#2}{z}\compdpos{z}}}
+ \compdervect{#1}{x}{#2}\compdpos{x}+
+ \compdervect{#1}{y}{#2}\compdpos{y}+
+ \compdervect{#1}{z}{#2}\compdpos{z}}}
\newcommand{\DervectdoteDpos}[2]{\ensuremath{
- \compDervect{#1}{#2}{x}\compDpos{x}+
- \compDervect{#1}{#2}{y}\compDpos{y}+
- \compDervect{#1}{#2}{z}\compDpos{z}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\ezero}
-% \begin{macro}{\eone}
-% \begin{macro}{\etwo}
-% \begin{macro}{\ethree}
-% \begin{macro}{\efour}
-% \begin{macro}{\ek}
-% \begin{macro}{\e}
-% \begin{macrocode}
+ \compDervect{#1}{x}{#2}\compDpos{x}+
+ \compDervect{#1}{y}{#2}\compDpos{y}+
+ \compDervect{#1}{z}{#2}\compDpos{z}}}
+\newcommand{\vectcrossvect}[2]{\ensuremath{{#1}\times{#2}}}
+\newcommand{\ltriplecross}[3]{\ensuremath{({#1}\times{#2})\times{#3}}}
+\newcommand{\rtriplecross}[3]{\ensuremath{{#1}\times({#2}\times{#3})}}
+\newcommand{\ltriplescalar}[3]{\ensuremath{{#1}\times{#2}\bullet{#3}}}
+\newcommand{\rtriplescalar}[3]{\ensuremath{{#1}\bullet{#2}\times{#3}}}
\newcommand{\ezero}{\ensuremath{\msub{\mathbf{e}}{0}}}
\newcommand{\eone}{\ensuremath{\msub{\mathbf{e}}{1}}}
\newcommand{\etwo}{\ensuremath{\msub{\mathbf{e}}{2}}}
@@ -6104,23 +7729,6 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\efour}{\ensuremath{\msub{\mathbf{e}}{4}}}
\newcommand{\ek}[1]{\ensuremath{\msub{\mathbf{e}}{#1}}}
\newcommand{\e}{\ek}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\uezero}
-% \begin{macro}{\ueone}
-% \begin{macro}{\uetwo}
-% \begin{macro}{\uethree}
-% \begin{macro}{\uefour}
-% \begin{macro}{\uek}
-% \begin{macro}{\ue}
-% \begin{macrocode}
\newcommand{\uezero}{\ensuremath{\msub{\widehat{\mathbf{e}}}{0}}}
\newcommand{\ueone}{\ensuremath{\msub{\widehat{\mathbf{e}}}{1}}}
\newcommand{\uetwo}{\ensuremath{\msub{\widehat{\mathbf{e}}}{2}}}
@@ -6128,34 +7736,11 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\uefour}{\ensuremath{\msub{\widehat{\mathbf{e}}}{4}}}
\newcommand{\uek}[1]{\ensuremath{\msub{\widehat{\mathbf{e}}}{#1}}}
\newcommand{\ue}{\uek}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\ezerozero}
-% \begin{macro}{\eoneone}
-% \begin{macro}{\eonetwo}
-% \begin{macro}{\eonethree}
-% \begin{macro}{\eonefour}
-% \begin{macro}{\etwoone}
-% \begin{macro}{\etwotwo}
-% \begin{macro}{\etwothree}
-% \begin{macro}{\etwofour}
-% \begin{macro}{\ethreeone}
-% \begin{macro}{\ethreetwo}
-% \begin{macro}{\ethreethree}
-% \begin{macro}{\ethreefour}
-% \begin{macro}{\efourone}
-% \begin{macro}{\efourtwo}
-% \begin{macro}{\efourthree}
-% \begin{macro}{\efourfour}
-% \begin{macrocode}
\newcommand{\ezerozero}{\ek{00}}
+\newcommand{\ezeroone}{\ek{01}}
+\newcommand{\ezerotwo}{\ek{02}}
+\newcommand{\ezerothree}{\ek{03}}
+\newcommand{\ezerofour}{\ek{04}}
\newcommand{\eoneone}{\ek{11}}
\newcommand{\eonetwo}{\ek{12}}
\newcommand{\eonethree}{\ek{13}}
@@ -6172,33 +7757,6 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\efourtwo}{\ek{42}}
\newcommand{\efourthree}{\ek{43}}
\newcommand{\efourfour}{\ek{44}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\euzero}
-% \begin{macro}{\euone}
-% \begin{macro}{\eutwo}
-% \begin{macro}{\euthree}
-% \begin{macro}{\eufour}
-% \begin{macro}{\euk}
-% \begin{macro}{\eu}
-% \begin{macrocode}
\newcommand{\euzero}{\ensuremath{\msup{\mathbf{e}}{0}}}
\newcommand{\euone}{\ensuremath{\msup{\mathbf{e}}{1}}}
\newcommand{\eutwo}{\ensuremath{\msup{\mathbf{e}}{2}}}
@@ -6206,35 +7764,11 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\eufour}{\ensuremath{\msup{\mathbf{e}}{4}}}
\newcommand{\euk}[1]{\ensuremath{\msup{\mathbf{e}}{#1}}}
\newcommand{\eu}{\euk}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \newpage
-% \begin{macro}{\euzerozero}
-% \begin{macro}{\euoneone}
-% \begin{macro}{\euonetwo}
-% \begin{macro}{\euonethree}
-% \begin{macro}{\euonefour}
-% \begin{macro}{\eutwoone}
-% \begin{macro}{\eutwotwo}
-% \begin{macro}{\eutwothree}
-% \begin{macro}{\eutwofour}
-% \begin{macro}{\euthreeone}
-% \begin{macro}{\euthreetwo}
-% \begin{macro}{\euthreethree}
-% \begin{macro}{\euthreefour}
-% \begin{macro}{\eufourone}
-% \begin{macro}{\eufourtwo}
-% \begin{macro}{\eufourthree}
-% \begin{macro}{\eufourfour}
-% \begin{macrocode}
\newcommand{\euzerozero}{\euk{00}}
+\newcommand{\euzeroone}{\euk{01}}
+\newcommand{\euzerotwo}{\euk{02}}
+\newcommand{\euzerothree}{\euk{03}}
+\newcommand{\euzerofour}{\euk{04}}
\newcommand{\euoneone}{\euk{11}}
\newcommand{\euonetwo}{\euk{12}}
\newcommand{\euonethree}{\euk{13}}
@@ -6251,33 +7785,6 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\eufourtwo}{\euk{42}}
\newcommand{\eufourthree}{\euk{43}}
\newcommand{\eufourfour}{\euk{44}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\gzero}
-% \begin{macro}{\gone}
-% \begin{macro}{\gtwo}
-% \begin{macro}{\gthree}
-% \begin{macro}{\gfour}
-% \begin{macro}{\gk}
-% \begin{macro}{\g}
-% \begin{macrocode}
\newcommand{\gzero}{\ensuremath{\msub{\mathbf{\gamma}}{0}}}
\newcommand{\gone}{\ensuremath{\msub{\mathbf{\gamma}}{1}}}
\newcommand{\gtwo}{\ensuremath{\msub{\mathbf{\gamma}}{2}}}
@@ -6285,34 +7792,11 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\gfour}{\ensuremath{\msub{\mathbf{\gamma}}{4}}}
\newcommand{\gk}[1]{\ensuremath{\msub{\mathbf{\gamma}}{#1}}}
\newcommand{\g}{\gk}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\gzerozero}
-% \begin{macro}{\goneone}
-% \begin{macro}{\gonetwo}
-% \begin{macro}{\gonethree}
-% \begin{macro}{\gonefour}
-% \begin{macro}{\gtwoone}
-% \begin{macro}{\gtwotwo}
-% \begin{macro}{\gtwothree}
-% \begin{macro}{\gtwofour}
-% \begin{macro}{\gthreeone}
-% \begin{macro}{\gthreetwo}
-% \begin{macro}{\gthreethree}
-% \begin{macro}{\gthreefour}
-% \begin{macro}{\gfourone}
-% \begin{macro}{\gfourtwo}
-% \begin{macro}{\gfourthree}
-% \begin{macro}{\gfourfour}
-% \begin{macrocode}
\newcommand{\gzerozero}{\gk{00}}
+\newcommand{\gzeroone}{\gk{01}}
+\newcommand{\gzerotwo}{\gk{02}}
+\newcommand{\gzerothree}{\gk{03}}
+\newcommand{\gzerofour}{\gk{04}}
\newcommand{\goneone}{\gk{11}}
\newcommand{\gonetwo}{\gk{12}}
\newcommand{\gonethree}{\gk{13}}
@@ -6329,34 +7813,6 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\gfourtwo}{\gk{42}}
\newcommand{\gfourthree}{\gk{43}}
\newcommand{\gfourfour}{\gk{44}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \newpage
-% \begin{macro}{\guzero}
-% \begin{macro}{\guone}
-% \begin{macro}{\gutwo}
-% \begin{macro}{\guthree}
-% \begin{macro}{\gufour}
-% \begin{macro}{\guk}
-% \begin{macro}{\gu}
-% \begin{macrocode}
\newcommand{\guzero}{\ensuremath{\msup{\mathbf{\gamma}}{0}}}
\newcommand{\guone}{\ensuremath{\msup{\mathbf{\gamma}}{1}}}
\newcommand{\gutwo}{\ensuremath{\msup{\mathbf{\gamma}}{2}}}
@@ -6364,34 +7820,11 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\gufour}{\ensuremath{\msup{\mathbf{\gamma}}{4}}}
\newcommand{\guk}[1]{\ensuremath{\msup{\mathbf{\gamma}}{#1}}}
\newcommand{\gu}{\guk}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\guzerozero}
-% \begin{macro}{\guoneone}
-% \begin{macro}{\guonetwo}
-% \begin{macro}{\guonethree}
-% \begin{macro}{\guonefour}
-% \begin{macro}{\gutwoone}
-% \begin{macro}{\gutwotwo}
-% \begin{macro}{\gutwothree}
-% \begin{macro}{\gutwofour}
-% \begin{macro}{\guthreeone}
-% \begin{macro}{\guthreetwo}
-% \begin{macro}{\guthreethree}
-% \begin{macro}{\guthreefour}
-% \begin{macro}{\gufourone}
-% \begin{macro}{\gufourtwo}
-% \begin{macro}{\gufourthree}
-% \begin{macro}{\gufourfour}
-% \begin{macrocode}
\newcommand{\guzerozero}{\guk{00}}
+\newcommand{\guzeroone}{\guk{01}}
+\newcommand{\guzerotwo}{\guk{02}}
+\newcommand{\guzerothree}{\guk{03}}
+\newcommand{\guzerofour}{\guk{04}}
\newcommand{\guoneone}{\guk{11}}
\newcommand{\guonetwo}{\guk{12}}
\newcommand{\guonethree}{\guk{13}}
@@ -6408,29 +7841,7 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\newcommand{\gufourtwo}{\guk{42}}
\newcommand{\gufourthree}{\guk{43}}
\newcommand{\gufourfour}{\guk{44}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\mivector}
-% Vectors formated as in M\&I, written in LaTeX3
-% \begin{macrocode}
-\ExplSyntaxOn
+\ExplSyntaxOn % Vectors formated as in M\&I, written in LaTeX3
\NewDocumentCommand{\mivector}{ O{,} m o }%
{%
\mi_vector:nn { #1 } { #2 }
@@ -6447,14 +7858,7 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
}%
}%
\ExplSyntaxOff
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\colvector}
-% \begin{macro}{\rowvector}
-% Column and row vectors, written in LaTeX3
-% \begin{macrocode}
-\ExplSyntaxOn
+\ExplSyntaxOn % Column and row vectors, written in LaTeX3
\seq_new:N \l__vector_arg_seq
\cs_new_protected:Npn \vector_main:nnnn #1 #2 #3 #4
{%
@@ -6476,12 +7880,6 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
}%
}%
\ExplSyntaxOff
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scompscvect}
-% \begin{macrocode}
\newcommandx{\scompscvect}[2][1,usedefault]{%
\ifthenelse{\equal{#1}{}}%
{%
@@ -6491,11 +7889,6 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\colvector{\msub{#2}{0},\msub{#2}{1},\msub{#2}{2},\msub{#2}{3}}%
}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\scompsrvect}
-% \begin{macrocode}
\newcommandx{\scompsrvect}[2][1,usedefault]{%
\ifthenelse{\equal{#1}{}}%
{%
@@ -6505,451 +7898,142 @@ neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.]
\rowvector[,]{\msub{#2}{0},\msub{#2}{1},\msub{#2}{2},\msub{#2}{3}}%
}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\oofpez}
-% Coulomb constant
-% \begin{macrocode}
\newphysicsconstant{oofpez}{\ensuremath{\frac{1}{\phantom{_o}4\pi\ssub{\epsilon}{o}}}}
-{\scin[9]{9}}{\ensuremath{\m\cubed\usk\kg\usk\reciprocalquartic\s\usk\\reciprocalsquared}}
+{\scin[8.9876]{9}}{\m\cubed\usk\kg\usk\reciprocalquartic\s\usk\A\reciprocalsquared}
[\m\per\farad][\newton\usk\m\squared\per\coulomb\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\oofpezcs}
-% Coulomb constant (alternate)
-% \begin{macrocode}
+\newcommand{\coulombconstant}{\oofpez}
\newphysicsconstant{oofpezcs}{\ensuremath{\frac{1}{\phantom{_o}4\pi\ssub{\epsilon}{o}
c^2\phantom{_o}}}}{\scin{-7}}{\m\usk\kg\usk\s\reciprocalsquared\usk\A\reciprocalsquared}
[\T\usk\m\squared][\N\usk\s\squared\per\C\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\epsz}
-% vacuum permittivity
-% \begin{macrocode}
-\newphysicsconstant{epsz}{\ensuremath{\ssub{\epsilon}{o}}}{\scin[9]{-12}}
+\newcommand{\altcoulombconstant}{\oofpezcs}
+\newphysicsconstant{vacuumpermittivity}{\ensuremath{\ssub{\epsilon}{o}}}{\scin[8.8542]{-12}}
{\m\reciprocalcubed\usk\reciprocal\kg\usk\s\quarted\usk\A\squared}[\F\per\m]
[\C\squared\per\N\usk\m\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\mzofp}
-% Biot-Savart constant
-% \begin{macrocode}
\newphysicsconstant{mzofp}{\ensuremath{\frac{\phantom{_oo}\ssub{\mu}{o}\phantom{_o}}
{4\pi}}}{\scin{-7}}{\m\usk\kg\usk\s\reciprocalsquared\usk\A\reciprocalsquared}
-[\henry\per\m]
-[\tesla\usk\m\per\A]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\muz}
-% vacuum permeability
-% \begin{macrocode}
-\newphysicsconstant{muz}{\ensuremath{\ssub{\mu}{o}}}{\scin[4\pi]{-7}}
+[\henry\per\m][\tesla\usk\m\per\A]
+\newcommand{\biotsavartconstant}{\mzofp}
+\newphysicsconstant{vacuumpermeability}{\ensuremath{\ssub{\mu}{o}}}{\scin[4\pi]{-7}}
{\m\usk\kg\usk\s\reciprocalsquared\usk\A\reciprocalsquared}[\henry\per\m]
[\T\usk\m\per\A]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\kboltz}
-% Boltzmann constant
-% \begin{macrocode}
-\newphysicsconstant{kboltz}{\ensuremath{\ssub{k}{B}}}{\scin[1.38]{-23}}
-{\kg\usk\m\squared\usk\reciprocalsquare\s\usk\reciprocal\K}[\joule\per\K][\J\per\K]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\kboltznev}
-% Boltzmann constant (alternate)
-% \begin{macrocode}
-\newcommand{\kboltznev}{\ensuremath{\scin[8.62]{-5}{\eV\per\K}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\stefan}
-% Stefan-Boltzmann constant
-% \begin{macrocode}
-\newphysicsconstant{stefan}{\ensuremath{\sigma}}{\scin[5.67]{-8}}
+\newphysicsconstant{boltzmann}{\ensuremath{\ssub{k}{B}}}{\scin[1.3806]{-23}}
+{\m\squared\usk\kg\usk\reciprocalsquare\s\usk\reciprocal\K}[\joule\per\K][\J\per\K]
+\newcommand{\boltzmannconstant}{\boltzmann}
+\newphysicsconstant{boltzmanninev}{\ensuremath{\ssub{k}{B}}}{\scin[8.6173]{-5}}
+{\eV\usk\reciprocal\K}[\eV\per\K][\eV\per\K]
+\newphysicsconstant{stefanboltzmann}{\ensuremath{\sigma}}{\scin[5.6704]{-8}}
{\kg\usk\s\reciprocalcubed\usk\K\reciprocalquarted}[\W\per\m\squared\usk\K^4]
[\W\per\m\squared\usk\K\quarted]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\planck}
-% Planck constant
-% \begin{macrocode}
-\newphysicsconstant{planck}{\ensuremath{h}}{\scin[6.62]{-34}}
-{\m\squared\usk\kg\usk\reciprocal\s}[\J\usk\s][\kg\usk\m\squared\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\plancknev}
-% Planck constant (alternate)
-% \begin{macrocode}
-\newcommand{\plancknev}{\ensuremath{\scin[4.136]{-15}{\eV\usk\s}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\planckbar}
-% reduced Planck constant (Dirac constant)
-% \begin{macrocode}
-\newphysicsconstant{planckbar}{\ensuremath{\hbar}}{\scin[1.05]{-34}}
-{\m\squared\usk\kg\usk\reciprocal\s}[\joule\usk\s][\kg\usk\m\squared\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\planckbarnev}
-% reduced Planck constant (alternate)
-% \begin{macrocode}
-\newcommand{\planckbarnev}{\ensuremath{\scin[4.136]{-15}{\eV\usk\s}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Navogadro}
-% Avogadro constant
-% \begin{macrocode}
-\newphysicsconstant{Navogadro}{\ensuremath{\ssub{N}{A}}}{\scin[6.022]{23}}
+\newcommand{\stefanboltzmannconstant}{\stefanboltzmann}
+\newphysicsconstant{planck}{\ensuremath{h}}{\scin[6.6261]{-34}}
+{\m\squared\usk\kg\usk\reciprocal\s}[\J\usk\s][\J\usk\s]
+\newcommand{\planckconstant}{\planck}
+\newphysicsconstant{planckinev}{\ensuremath{h}}{\scin[4.1357]{-15}}
+{\eV\usk\s}[\eV\usk\s][\eV\usk\s]
+\newphysicsconstant{planckbar}{\ensuremath{\hbar}}{\scin[1.0546]{-34}}
+{\m\squared\usk\kg\usk\reciprocal\s}[\J\usk\s][\J\usk\s]
+\newcommand{\reducedplanckconstant}{\planckbar}
+\newphysicsconstant{planckbarinev}{\ensuremath{\hbar}}{\scin[6.5821]{-16}}
+{\eV\usk\s}[\eV\usk\s][\eV\usk\s]
+\newphysicsconstant{planckc}{\ensuremath{hc}}{\scin[1.9864]{-25}}
+{\m\cubed\usk\kg\usk\reciprocalsquare\s}[\J\usk\m][\J\usk\m]
+\newcommand{\planckconstanttimesc}{\planckc}
+\newphysicsconstant{planckcinev}{\ensuremath{hc}}{\scin[1.9864]{-25}}
+{\eV\usk\ensuremath{\mathrm{n}\m}}[\eV\usk\ensuremath{\mathrm{n}\m}]
+[\eV\usk\ensuremath{\mathrm{n}\m}]
+\newphysicsconstant{rydberg}{\ensuremath{\msub{R}{\infty}}}{\scin[1.0974]{7}}
+{\reciprocal\m}[\reciprocal\m][\reciprocal\m]
+\newcommand{\rydbergconstant}{\rydberg}
+\newphysicsconstant{bohrradius}{\ensuremath{\msub{a}{0}}}{\scin[5.2918]{-11}}{\m}[\m][\m]
+\newphysicsconstant{finestructure}{\ensuremath{\alpha}}{\scin[7.2974]{-3}}{\relax}
+\newcommand{\finestructureconstant}{\finestructure}
+\newphysicsconstant{avogadro}{\ensuremath{\ssub{N}{A}}}{\scin[6.0221]{23}}
{\reciprocal\mol}[\reciprocal\mol][\reciprocal\mol]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\bigG}
-% universal gravitational constant
-% \begin{macrocode}
-\newphysicsconstant{bigG}{\ensuremath{G}}{\scin[6.67]{-11}}
+\newcommand{\avogadroconstant}{\avogadro}
+\newphysicsconstant{universalgrav}{\ensuremath{G}}{\scin[6.6738]{-11}}
{\m\cubed\usk\reciprocal\kg\usk\s\reciprocalsquared}[\J\usk\m\per\kg\squared]
[\N\usk\m\squared\per\kg\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\littleg}
-% gravitational field strength at Earth's surface
-% \begin{macrocode}
-\newphysicsconstant{littleg}{\ensuremath{g}}{9.80}{\m\usk\s\reciprocalsquared}
+\newcommand{\universalgravitationalconstant}{\universalgrav}
+\newphysicsconstant{surfacegravfield}{\ensuremath{g}}{9.80}{\m\usk\s\reciprocalsquared}
[\N\per\kg][\m\per\s\squared]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\clight}
-% light's speed
-% \begin{macrocode}
-\newphysicsconstant{clight}{\ensuremath{c}}{\scin[3.00]{8}}{\m\usk\reciprocal\s}
-[\m\usk\reciprocal\s][\m\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\clightnfn}
-% light's speed (alternate)
-% \begin{macrocode}
-\newcommand{\clightnfn}{\ensuremath{\unit{1}{\mathrm{ft}\per\mathrm{n}\s}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Ratom}
-% approximate atomic radius
-% \begin{macrocode}
+\newcommand{\earthssurfacegravitationalfield}{\surfacegravfield}
+\newphysicsconstant{clight}{\ensuremath{c}}{\scin[2.9979]{8}}{\m\usk\reciprocal\s}
+[\m\per\s][\m\per\s]
+\newcommand{\photonconstant}{\clight}
+\newphysicsconstant{clightinfeet}{\ensuremath{c}}{0.9836}
+{\ensuremath{\mathrm{ft}\usk\reciprocal\mathrm{n}\s}}
+[\ensuremath{\mathrm{ft}\per\mathrm{n}\s}][\ensuremath{\mathrm{ft}\per\mathrm{n}\s}]
\newphysicsconstant{Ratom}{\ensuremath{\ssub{r}{atom}}}{\scin{-10}}{\m}[\m][\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Mproton}
-% proton's mass
-% \begin{macrocode}
-\newphysicsconstant{Mproton}{\ensuremath{\ssub{m}{proton}}}{\scin[1.673]{-27}}
+\newcommand{\radiusofatom}{\Ratom}
+\newphysicsconstant{Mproton}{\ensuremath{\ssub{m}{proton}}}{\scin[1.6726]{-27}}
{\kg}[\kg][\kg]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Mneutron}
-% neutron's mass
-% \begin{macrocode}
-\newphysicsconstant{Mneutron}{\ensuremath{\ssub{m}{neutron}}}{\scin[1.675]{-27}}
+\newcommand{\massofproton}{\Mproton}
+\newphysicsconstant{Mneutron}{\ensuremath{\ssub{m}{neutron}}}{\scin[1.6749]{-27}}
{\kg}[\kg][\kg]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Mhydrogen}
-% hydrogen atom's mass
-% \begin{macrocode}
-\newphysicsconstant{Mhydrogen}{\ensuremath{\ssub{m}{hydrogen}}}{\scin[1.673]{-27}}
+\newcommand{\massofneutron}{\Mneutron}
+\newphysicsconstant{Mhydrogen}{\ensuremath{\ssub{m}{hydrogen}}}{\scin[1.6737]{-27}}
{\kg}[\kg][\kg]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Melectron}
-% electron's mass
-% \begin{macrocode}
-\newphysicsconstant{Melectron}{\ensuremath{\ssub{m}{electron}}}{\scin[9.109]{-31}}
+\newcommand{\massofhydrogen}{\Mhydrogen}
+\newphysicsconstant{Melectron}{\ensuremath{\ssub{m}{electron}}}{\scin[9.1094]{-31}}
{\kg}[\kg][\kg]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\echarge}
-% charge quantum
-% \begin{macrocode}
-\newphysicsconstant{echarge}{\ensuremath{e}}{\scin[1.602]{-19}}{\A\usk\s}[\C][\C]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Qelectron}
-% \begin{macro}{\qelectron}
-% electron's charge
-% \begin{macrocode}
+\newcommand{\massofelectron}{\Melectron}
+\newphysicsconstant{echarge}{\ensuremath{e}}{\scin[1.6022]{-19}}{\A\usk\s}[\C][\C]
+\newcommand{\elementarycharge}{\echarge}
\newphysicsconstant{Qelectron}{\ensuremath{\ssub{Q}{electron}}}{-\echargevalue}
{\A\usk\s}[\C][\C]
\newphysicsconstant{qelectron}{\ensuremath{\ssub{q}{electron}}}{-\echargevalue}
{\A\usk\s}[\C][\C]
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\Qproton}
-% \begin{macro}{\qproton}
-% proton's charge
-% \begin{macrocode}
+\newcommand{\chargeofelectron}{\Qelectron}
\newphysicsconstant{Qproton}{\ensuremath{\ssub{Q}{proton}}}{+\echargevalue}
{\A\usk\s}[\C][\C]
\newphysicsconstant{qproton}{\ensuremath{\ssub{q}{proton}}}{+\echargevalue}
{\A\usk\s}[\C][\C]
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\MEarth}
-% Earth's mass
-% \begin{macrocode}
-\newphysicsconstant{MEarth}{\ensuremath{\ssub{M}{Earth}}}{\scin[6]{24}}{\kg}[\kg][\kg]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\MMoon}
-% Moon's mass
-% \begin{macrocode}
-\newphysicsconstant{MMoon}{\ensuremath{\ssub{M}{Moon}}}{\scin[7]{22}}{\kg}[\kg][\kg]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\MSun}
-% Sun's mass
-% \begin{macrocode}
-\newphysicsconstant{MSun}{\ensuremath{\ssub{M}{Sun}}}{\scin[2]{30}}{\kg}[\kg][\kg]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\REarth}
-% Earth's radius
-% \begin{macrocode}
-\newphysicsconstant{REarth}{\ensuremath{\ssub{R}{Earth}}}{\scin[6.4]{6}}{\m}[\m][\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\RMoon}
-% Moon's radius
-% \begin{macrocode}
-\newphysicsconstant{RMoon}{\ensuremath{\ssub{R}{Moon}}}{\scin[1.75]{6}}{\m}[\m][\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\RSun}
-% Sun's radius
-% \begin{macrocode}
-\newphysicsconstant{RSun}{\ensuremath{\ssub{R}{Sun}}}{\scin[7]{8}}{\m}[\m][\m]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ESdist}
-% \begin{macro}{\SEdist}
-% Earth-Sun distance (Sun-Earth distance)
-% \begin{macrocode}
-\newphysicsconstant{ESdist}{\magvectsub{r}{ES}}{\scin[1.5]{11}}{\m}[\m][\m]
-\newphysicsconstant{SEdist}{\magvectsub{r}{SE}}{\scin[1.5]{11}}{\m}[\m][\m]
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\EMdist}
-% \begin{macro}{\MEdist}
-% Earth-Moon distance (Moon-Earth distance)
-% \begin{macrocode}
-\newphysicsconstant{EMdist}{\magvectsub{r}{EM}}{\scin[4]{8}}{\m}[\m][\m]
-\newphysicsconstant{MEdist}{\magvectsub{r}{ME}}{\scin[4]{8}}{\m}[\m][\m]
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\lightyear}
-% \begin{macro}{\Lightyear}
-% \begin{macro}{\cyear}
-% \begin{macro}{\cyr}
-% \begin{macro}{\yyear}
-% \begin{macro}{\yr}
-% \begin{macro}{\parsec}
-% light year, year, and parsec
-% \begin{macrocode}
-\newcommand{\lightyear}{\ensuremath{\mathrm{ly}}}
-\newcommand{\Lightyear}{\ensuremath{\mathrm{LY}}}
-\newcommand{\cyear}{\ensuremath{c\usk\mathrm{year}}}
-\newcommand{\cyr}{\ensuremath{c\usk\mathrm{yr}}}
-\newcommand{\yyear}{\ensuremath{\mathrm{year}}}
-\newcommand{\yr}{\ensuremath{\mathrm{yr}}}
-\newcommand{\parsec}{\ensuremath{\mathrm{pc}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\LSun}
-% Sun's luminosity
-% \begin{macrocode}
-\newphysicsconstant{LSun}{\ensuremath{\ssub{L}{Sun}}}{\scin[4]{26}}
+\newcommand{\chargeofproton}{\Qproton}
+\newphysicsconstant{MEarth}{\ensuremath{\ssub{M}{Earth}}}{\scin[5.9736]{24}}{\kg}[\kg][\kg]
+\newcommand{\massofEarth}{\MEarth}
+\newphysicsconstant{MMoon}{\ensuremath{\ssub{M}{Moon}}}{\scin[7.3459]{22}}{\kg}[\kg][\kg]
+\newcommand{\massofMoon}{\MMoon}
+\newphysicsconstant{MSun}{\ensuremath{\ssub{M}{Sun}}}{\scin[1.9891]{30}}{\kg}[\kg][\kg]
+\newcommand{\massofSun}{\MSun}
+\newphysicsconstant{REarth}{\ensuremath{\ssub{R}{Earth}}}{\scin[6.3675]{6}}{\m}[\m][\m]
+\newcommand{\radiusofEarth}{\REarth}
+\newphysicsconstant{RMoon}{\ensuremath{\ssub{R}{Moon}}}{\scin[1.7375]{6}}{\m}[\m][\m]
+\newcommand{\radiusofMoon}{\RMoon}
+\newphysicsconstant{RSun}{\ensuremath{\ssub{R}{Sun}}}{\scin[6.9634]{8}}{\m}[\m][\m]
+\newcommand{\radiusofSun}{\RSun}
+\newphysicsconstant{ESdist}{\magvectsub{r}{ES}}{\scin[1.4960]{11}}{\m}[\m][\m]
+\newphysicsconstant{SEdist}{\magvectsub{r}{SE}}{\scin[1.4960]{11}}{\m}[\m][\m]
+\newcommand{\EarthSundistance}{\ESdist}
+\newcommand{\SunEarthdistance}{\SEdist}
+\newphysicsconstant{EMdist}{\magvectsub{r}{EM}}{\scin[3.8440]{8}}{\m}[\m][\m]
+\newphysicsconstant{MEdist}{\magvectsub{r}{ME}}{\scin[3.8440]{8}}{\m}[\m][\m]
+\newcommand{\EarthMoondistance}{\ESdist}
+\newcommand{\MoonEarthdistance}{\SEdist}
+\newphysicsconstant{LSun}{\ensuremath{\ssub{L}{Sun}}}{\scin[3.8460]{26}}
{\m\squared\usk\kg\usk\s\reciprocalcubed}[\W][\J\per\s]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\TSun}
-% Sun's effective temperature
-% \begin{macrocode}
-\newphysicsconstant{TSun}{\ensuremath{\ssub{T}{Sun}}}{5800}{\K}[\K][\K]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\MagSun}
-% Sun's absolute magnitude
-% \begin{macrocode}
+\newphysicsconstant{TSun}{\ensuremath{\ssub{T}{Sun}}}{5778}{\K}[\K][\K]
\newphysicsconstant{MagSun}{\ensuremath{\ssub{M}{Sun}}}{+4.83}{}[][]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magSun}
-% Sun's apparent magnitude
-% \begin{macrocode}
\newphysicsconstant{magSun}{\ensuremath{\ssub{m}{Sun}}}{-26.74}{}[][]
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Lstar}
-% \begin{macro}{\Lsolar}
-% stellar and solar luminosity
-% \begin{macrocode}
\newcommand{\Lstar}[1][\(\star\)]{\ensuremath{\ssub{L}{#1}}}
\newcommand{\Lsolar}{\ensuremath{\Lstar[\(\odot\)]}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\Tstar}
-% \begin{macro}{\Tsolar}
-% stellar and solar temperature
-% \begin{macrocode}
\newcommand{\Tstar}[1][\(\star\)]{\ensuremath{\ssub{T}{#1}}}
\newcommand{\Tsolar}{\ensuremath{\Tstar[\(\odot\)]}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\Rstar}
-% \begin{macro}{\Rsolar}
-% stellar and solar radius
-% \begin{macrocode}
\newcommand{\Rstar}[1][\(\star\)]{\ensuremath{\ssub{R}{#1}}}
\newcommand{\Rsolar}{\ensuremath{\Rstar[\(\odot\)]}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\Mstar}
-% \begin{macro}{\Msolar}
-% stellar and solar mass
-% \begin{macrocode}
\newcommand{\Mstar}[1][\(\star\)]{\ensuremath{\ssub{M}{#1}}}
\newcommand{\Msolar}{\ensuremath{\Mstar[\(\odot\)]}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\Fstar}
-% \begin{macro}{\fstar}
-% \begin{macro}{\FSun}
-% \begin{macro}{\fSun}
-% \begin{macro}{\Fsolar}
-% \begin{macro}{\fsolar}
-% stellar and solar fluxes
-% \begin{macrocode}
\newcommand{\Fstar}[1][\(\star\)]{\ensuremath{\ssub{F}{#1}}}
\newcommand{\fstar}[1][\(\star\)]{\ensuremath{\ssub{f}{#1}}}
-\newcommand{\FSun}{\ensuremath{\Fstar[Sun]}}
-\newcommand{\fSun}{\ensuremath{\fstar[Sun]}}
\newcommand{\Fsolar}{\ensuremath{\Fstar[\(\odot\)]}}
\newcommand{\fsolar}{\ensuremath{\fstar[\(\odot\)]}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\Magstar}
-% \begin{macro}{\magstar}
-% \begin{macro}{\Magsolar}
-% \begin{macro}{\magsolar}
-% stellar and solar magnitudes
-% \begin{macrocode}
\newcommand{\Magstar}[1][\(\star\)]{\ensuremath{\ssub{M}{#1}}}
\newcommand{\magstar}[1][\(\star\)]{\ensuremath{\ssub{m}{#1}}}
\newcommand{\Magsolar}{\ensuremath{\Magstar[\(\odot\)]}}
\newcommand{\magsolar}{\ensuremath{\magstar[\(\odot\)]}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\Dstar}
-% \begin{macro}{\dstar}
-% \begin{macro}{\Dsolar}
-% \begin{macro}{\dsolar}
-% stellar and solar distance
-% \begin{macrocode}
\newcommand{\Dstar}[1][\(\star\)]{\ensuremath{\ssub{D}{#1}}}
\newcommand{\dstar}[1][\(\star\)]{\ensuremath{\ssub{d}{#1}}}
\newcommand{\Dsolar}{\ensuremath{\Dstar[\(\odot\)]}}
\newcommand{\dsolar}{\ensuremath{\dstar[\(\odot\)]}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\onehalf}
-% \begin{macro}{\onethird}
-% \begin{macro}{\onefourth}
-% \begin{macro}{\onefifth}
-% \begin{macro}{\onesixth}
-% \begin{macro}{\oneseventh}
-% \begin{macro}{\oneeighth}
-% \begin{macro}{\oneninth}
-% \begin{macro}{\onetenth}
-% \begin{macro}{\twothirds}
-% \begin{macro}{\twofifths}
-% \begin{macro}{\twosevenths}
-% \begin{macro}{\twoninths}
-% \begin{macro}{\threehalves}
-% \begin{macro}{\threefourths}
-% \begin{macro}{\threefifths}
-% \begin{macro}{\threesevenths}
-% \begin{macro}{\threeeighths}
-% \begin{macro}{\threetenths}
-% \begin{macro}{\fourthirds}
-% frequently used fractions
-% \begin{macrocode}
\newcommand{\onehalf}{\ensuremath{\frac{1}{2}}\xspace}
\newcommand{\onethird}{\ensuremath{\frac{1}{3}}\xspace}
\newcommand{\onefourth}{\ensuremath{\frac{1}{4}}\xspace}
@@ -6959,200 +8043,84 @@ c^2\phantom{_o}}}}{\scin{-7}}{\m\usk\kg\usk\s\reciprocalsquared\usk\A\reciprocal
\newcommand{\oneeighth}{\ensuremath{\frac{1}{8}}\xspace}
\newcommand{\oneninth}{\ensuremath{\frac{1}{9}}\xspace}
\newcommand{\onetenth}{\ensuremath{\frac{1}{10}}\xspace}
+\newcommand{\twooneths}{\ensuremath{\frac{2}{1}}\xspace}
+\newcommand{\twohalves}{\ensuremath{\frac{2}{2}}\xspace}
\newcommand{\twothirds}{\ensuremath{\frac{2}{3}}\xspace}
+\newcommand{\twofourths}{\ensuremath{\frac{2}{4}}\xspace}
\newcommand{\twofifths}{\ensuremath{\frac{2}{5}}\xspace}
+\newcommand{\twosixths}{\ensuremath{\frac{2}{6}}\xspace}
\newcommand{\twosevenths}{\ensuremath{\frac{2}{7}}\xspace}
+\newcommand{\twoeighths}{\ensuremath{\frac{2}{8}}\xspace}
\newcommand{\twoninths}{\ensuremath{\frac{2}{9}}\xspace}
+\newcommand{\twotenths}{\ensuremath{\frac{2}{10}}\xspace}
+\newcommand{\threeoneths}{\ensuremath{\frac{3}{1}}\xspace}
\newcommand{\threehalves}{\ensuremath{\frac{3}{2}}\xspace}
+\newcommand{\threethirds}{\ensuremath{\frac{3}{3}}\xspace}
\newcommand{\threefourths}{\ensuremath{\frac{3}{4}}\xspace}
\newcommand{\threefifths}{\ensuremath{\frac{3}{5}}\xspace}
+\newcommand{\threesixths}{\ensuremath{\frac{3}{6}}\xspace}
\newcommand{\threesevenths}{\ensuremath{\frac{3}{7}}\xspace}
\newcommand{\threeeighths}{\ensuremath{\frac{3}{8}}\xspace}
+\newcommand{\threeninths}{\ensuremath{\frac{3}{9}}\xspace}
\newcommand{\threetenths}{\ensuremath{\frac{3}{10}}\xspace}
+\newcommand{\fouroneths}{\ensuremath{\frac{4}{1}}\xspace}
+\newcommand{\fourhalves}{\ensuremath{\frac{4}{2}}\xspace}
\newcommand{\fourthirds}{\ensuremath{\frac{4}{3}}\xspace}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dx}
-% variable of integration
-% \begin{macrocode}
+\newcommand{\fourfourths}{\ensuremath{\frac{4}{4}}\xspace}
+\newcommand{\fourfifths}{\ensuremath{\frac{4}{5}}\xspace}
+\newcommand{\foursixths}{\ensuremath{\frac{4}{6}}\xspace}
+\newcommand{\foursevenths}{\ensuremath{\frac{4}{7}}\xspace}
+\newcommand{\foureighths}{\ensuremath{\frac{4}{8}}\xspace}
+\newcommand{\fourninths}{\ensuremath{\frac{4}{9}}\xspace}
+\newcommand{\fourtenths}{\ensuremath{\frac{4}{10}}\xspace}
\newcommand{\dx}[1]{\ensuremath{\,\mathrm{d}{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\evalfromto}
-% \begin{macrocode}
\newcommand{\evalfromto}[3]{\ensuremath{\Bigg.{#1}\Bigg\rvert_{#2}^{#3}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\evalat}
-% \begin{macrocode}
\@ifpackageloaded{physymb}{%
\typeout{mandi: Package physymb detected. Its commands will be used.}
}{%
\newcommand{\evalat}[2]{\ensuremath{\Bigg.{#1}\Bigg\rvert_{#2}}}
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\evaluatedat}
-% \begin{macrocode}
\newcommand{\evaluatedat}[1]{\ensuremath{\Bigg.\Bigg\rvert_{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\integral}
-% \begin{macro}{\Integral}
-% \begin{macrocode}
\newcommandx{\integral}[4][1,2,usedefault]{\ensuremath{
\int_{\ifthenelse{\equal{#1}{}}{}{#4=#1}}^{\ifthenelse{\equal{#2}{}}{}{#4=#2}}}
{#3}\dx{#4}}
\newcommandx{\Integral}[4][1,2,usedefault]{\ensuremath{
\bigint_{\ifthenelse{\equal{#1}{}}{}{#4=#1}}^{\ifthenelse{\equal{#2}{}}{}
{#4=#2}}}{#3}\dx{#4}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\opensurfintegral}
-% \begin{macro}{\opensurfIntegral}
-% \begin{macrocode}
\newcommand{\opensurfintegral}[2]{\ensuremath{
\int\nolimits_{#1}\vectdotvect{\vect{#2}}{\dirvect{n}}\dx{A}}}
\newcommand{\opensurfIntegral}[2]{\ensuremath{
\bigint\nolimits_{\mskip -25.00mu\displaystyle\mathbf{#1}}
\vectdotvect{\vect{#2}}{\dirvect{n}}
\dx{A}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\closedsurfintegral}
-% \begin{macro}{\closedsurfIntegral}
-% \begin{macrocode}
\newcommand{\closedsurfintegral}[2]{\ensuremath{
\oint\nolimits_{#1}\vectdotvect{\vect{#2}}{\dirvect{n}}\dx{A}}}
\newcommand{\closedsurfIntegral}[2]{\ensuremath{
\bigoint\nolimits_{\mskip -25.00mu\displaystyle\mathbf{#1}}\;\;
\vectdotvect{\vect{#2}}{\dirvect{n}}\dx{A}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\openlineintegral}
-% \begin{macro}{\openlineIntegral}
-% \begin{macrocode}
\newcommand{\openlineintegral}[2]{\ensuremath{
\int\nolimits_{#1}\vectdotvect{\vect{#2}}{\dirvect{t}}
\dx{\ell}}}
\newcommand{\openlineIntegral}[2]{\ensuremath{
\bigint\nolimits_{\mskip -25.00mu\displaystyle\mathbf{#1}}
\vectdotvect{\vect{#2}}{\dirvect{t}}\dx{\ell}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\closedlineintegral}
-% \begin{macro}{\closedlineIntegral}
-% \begin{macrocode}
\newcommand{\closedlineintegral}[2]{\ensuremath{
\oint\nolimits_{#1}\vectdotvect{\vect{#2}}{\dirvect{t}}\dx{\ell}}}
\newcommand{\closedlineIntegral}[2]{\ensuremath{
\bigoint\nolimits_{\mskip -25.00mu\displaystyle\mathbf {#1}}\;\;
\vectdotvect{\vect{#2}}{\dirvect{t}}\dx{\ell}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dbydt}
-% \begin{macro}{\DbyDt}
-% \begin{macrocode}
\newcommandx{\dbydt}[1][1]{\ensuremath{\frac{\mathrm{d}{#1}}{\mathrm{d}t}}}
\newcommandx{\DbyDt}[1][1]{\ensuremath{\frac{\Delta{#1}}{\Delta t}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\ddbydt}
-% \begin{macro}{\DDbyDt}
-% \begin{macrocode}
\newcommandx{\ddbydt}[1][1]{\ensuremath{\frac{\mathrm{d}^{2}{#1}}{\mathrm{d}t^{2}}}}
\newcommandx{\DDbyDt}[1][1]{\ensuremath{\frac{\Delta^{2}{#1}}{\Delta t^{2}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\pbypt}
-% \begin{macrocode}
\newcommandx{\pbypt}[1][1]{\ensuremath{\frac{\partial{#1}}{\partial t}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ppbypt}
-% \begin{macrocode}
\newcommandx{\ppbypt}[1][1]{\ensuremath{\frac{\partial^{2}{#1}}{\partial t^{2}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\dbyd}
-% \begin{macro}{\DbyD}
-% \begin{macrocode}
\newcommand{\dbyd}[2]{\ensuremath{\frac{\mathrm{d}{#1}}{\mathrm{d}{#2}}}}
\newcommand{\DbyD}[2]{\ensuremath{\frac{\Delta{#1}}{\Delta{#2}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\ddbyd}
-% \begin{macro}{\DDbyD}
-% \begin{macrocode}
\newcommand{\ddbyd}[2]{\ensuremath{\frac{\mathrm{d}^{2}{#1}}{\mathrm{d}{#2}^{2}}}}
\newcommand{\DDbyD}[2]{\ensuremath{\frac{\Delta^{2}{#1}}{\Delta{#2}^{2}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\pbyp}
-% \begin{macrocode}
\newcommand{\pbyp}[2]{\ensuremath{\frac{\partial{#1}}{\partial{#2}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ppbyp}
-% \begin{macrocode}
\newcommand{\ppbyp}[2]{\ensuremath{\frac{\partial^{2}{#1}}{\partial{#2}^{2}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\seriesfofx}
-% \begin{macro}{\seriesexpx}
-% \begin{macro}{\seriessinx}
-% \begin{macro}{\seriescosx}
-% \begin{macro}{\seriestanx}
-% \begin{macro}{\seriesatox}
-% \begin{macro}{\serieslnoneplusx}
-% \begin{macro}{\binomialseries}
-% \begin{macrocode}
\newcommand{\seriesfofx}{\ensuremath{%
f(x) \approx f(a) + \frac{f^\prime (a)}{1!}(x-a) + \frac{f^{\prime\prime}(a)}{2!}(x-a)^2
+ \frac{f^{\prime\prime\prime}(a)}{3!}(x-a)^3 + \ldots}\xspace}
@@ -7172,25 +8140,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\xspace}
\newcommand{\binomialseries}{\ensuremath{%
(1 + x)^n \approx 1 + nx + \frac{n(n-1)}{2!}x^2 + \ldots}\xspace}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\gradient}
-% \begin{macro}{\divergence}
-% \begin{macro}{\curl}
-% \begin{macro}{\laplacian}
-% \begin{macro}{\dalembertian}
-% user must specify |\vect{}| around the argument to get arrows
-% \begin{macrocode}
\@ifpackageloaded{physymb}{%
- \typeout{mandi: Package physymb detected. Its commands will be used.}
+ \typeout{mandi: Package physymb detected. Its commands will be used.}
}{%
\newcommand{\gradient}{\ensuremath{\nabla}}
\newcommand{\divergence}{\ensuremath{\nabla\bullet}}
@@ -7198,35 +8149,7 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\newcommand{\laplacian}{\ensuremath{\msup{\nabla}{2}}}
\newcommand{\dalembertian}{\ensuremath{\Box}}
}%
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\diracdelta}
-% \begin{macrocode}
\newcommand{\diracdelta}[1]{\ensuremath{\boldsymbol{\delta}\quant{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\asin}
-% \begin{macro}{\acos}
-% \begin{macro}{\atan}
-% \begin{macro}{\asec}
-% \begin{macro}{\acsc}
-% \begin{macro}{\acot}
-% \begin{macro}{\sech}
-% \begin{macro}{\csch}
-% \begin{macro}{\asinh}
-% \begin{macro}{\acosh}
-% \begin{macro}{\atanh}
-% \begin{macro}{\asech}
-% \begin{macro}{\acsch}
-% \begin{macro}{\acoth}
-% \begin{macro}{\sgn}
-% \begin{macrocode}
\@ifpackageloaded{physymb}{%
\typeout{mandi: Package physymb detected. Its commands will be used.}
}{%
@@ -7246,261 +8169,68 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\DeclareMathOperator{\acoth}{\coth^{-1}}
\DeclareMathOperator{\sgn}{sgn}
}%
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dex}
-% \begin{macrocode}
\DeclareMathOperator{\dex}{dex}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\eV}
-% \begin{macro}{\ev}
-% \begin{macrocode}
-\newcommand{\eV}{\electronvolt}
-\newcommand{\ev}{\electronvolt}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\logb}
-% \begin{macrocode}
\newcommand{\logb}[1][\relax]{\ensuremath{\log_{_{#1}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\cB}
-% \begin{macrocode}
\ifthenelse{\boolean{@optitalicvectors}}
{\newcommand{\cB}{\ensuremath{c\mskip -5.00mu B}}}
{\newcommand{\cB}{\ensuremath{\textsf{c}\mskip -3.00mu\mathrm{B}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\newpi}
-% \begin{macrocode}
\newcommand{\newpi}{\ensuremath{\pi\mskip -7.8mu\pi}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\scripty}
-% \begin{macrocode}
\newcommand{\scripty}[1]{\ensuremath{\mathcalligra{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\flux}
-% \begin{macrocode}
\newcommandx{\flux}[1][1]{\ensuremath{\ssub{\Phi}{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\abs}
-% \begin{macrocode}
\@ifpackageloaded{physymb}{%
\typeout{mandi: Package physymb detected. Its commands will be used.}
}{%
\newcommand{\abs}[1]{\ensuremath{\left\lvert{#1}\right\rvert}}
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\magof}
-% \begin{macrocode}
\newcommand{\magof}[1]{\ensuremath{\left\lVert{#1}\right\rVert}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\dimsof}
-% \begin{macrocode}
\newcommand{\dimsof}[1]{\ensuremath{\left[{#1}\right]}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\unitsof}
-% \begin{macrocode}
\newcommand{\unitsof}[1]{\ensuremath{\left[{#1}\right]_{_{u}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\quant}
-% \begin{macro}{\bquant}
-% \begin{macrocode}
\newcommand{\quant}[1]{\ensuremath{\left({#1}\right)}}
\newcommand{\bquant}[1]{\ensuremath{\left[{#1}\right]}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\changein}
-% \begin{macro}{\Changein}
-% \begin{macrocode}
\newcommand{\changein}[1]{\ensuremath{\delta{#1}}}
\newcommand{\Changein}[1]{\ensuremath{\Delta{#1}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\scin}
-% \begin{macro}{\ee}
-% \begin{macro}{\EE}
-% \begin{macrocode}
-\newcommandx{\scin}[3][1,3=\!\!,usedefault]{\ensuremath{
+\newcommandx{\scin}[3][1,3=\!\!,usedefault]{\ensuremath{%
\ifthenelse{\equal{#1}{}}
{\unit{\msup{10}{#2}}{#3}}
{\unit{\msup{{#1}\times 10}{#2}}{#3}}}}
\newcommand{\ee}[2]{\texttt{{#1}e{#2}}}
\newcommand{\EE}[2]{\texttt{{#1}E{#2}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\dms}
-% \begin{macro}{\hms}
-% \begin{macro}{\clockreading}
-% \begin{macrocode}
\newcommand{\dms}[3]{\ensuremath{\indegrees{#1}\inarcminutes{#2}\inarcseconds{#3}}}
\newcommand{\hms}[3]{\ensuremath{{#1}^{\hour}{#2}^{\mathrm{m}}{#3}^{\s}}}
\newcommand{\clockreading}{\hms}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\latitude}
-% \begin{macro}{\latitudeN}
-% \begin{macro}{\latitudeS}
-% \begin{macro}{\longitude}
-% \begin{macro}{\longitudeE}
-% \begin{macro}{\longitudeW}
-% \begin{macrocode}
\newcommand{\latitude}[1]{\ensuremath{\unit{#1}{\degree}}}
-\newcommand{\latitudeN}[1]{\ensuremath{\unit{#1}{\degree\; N}}}
-\newcommand{\latitudeS}[1]{\ensuremath{\unit{#1}{\degree\; S}}}
+\newcommand{\latitudeN}[1]{\ensuremath{\unit{#1}{\degree\;\mathrm{N}}}}
+\newcommand{\latitudeS}[1]{\ensuremath{\unit{#1}{\degree\;\mathrm{S}}}}
\newcommand{\longitude}[1]{\ensuremath{\unit{#1}{\degree}}}
-\newcommand{\longitudeE}[1]{\ensuremath{\unit{#1}{\degree\; E}}}
-\newcommand{\longitudeW}[1]{\ensuremath{\unit{#1}{\degree\; W}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\ssub}
+\newcommand{\longitudeE}[1]{\ensuremath{\unit{#1}{\degree\;\mathrm{E}}}}
+\newcommand{\longitudeW}[1]{\ensuremath{\unit{#1}{\degree\;\mathrm{W}}}}
% I have never liked \LaTeX's default subscript positioning, so I have this
% command instead. There may be a better way of doing this.
-% \begin{macrocode}
\newcommand{\ssub}[2]{\ensuremath{{#1}_{_{_{\mbox{\tiny{#2}}}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ssup}
% I have never liked \LaTeX's default superscript positioning, so I have this
% command instead. There may be a better way of doing this.
-% \begin{macrocode}
\newcommand{\ssup}[2]{\ensuremath{{#1}^{^{^{\mbox{\tiny{#2}}}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ssud}
-% \begin{macrocode}
\newcommand{\ssud}[3]{\ensuremath{{#1}^{^{^{\mbox{\tiny{#2}}}}}_{_{_{\mbox{\tiny{#3}}}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\msub}
% I have never liked \LaTeX's default subscript positioning, so I have this
% command instead. There may be a better way of doing this.
-% \begin{macrocode}
\newcommand{\msub}[2]{\ensuremath{#1^{^{\scriptstyle{{}}}}_{_{_{\scriptstyle{#2}}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\msup}
% I have never liked \LaTeX's default superscript positioning, so I have this
% command instead. There may be a better way of doing this.
-% \begin{macrocode}
\newcommand{\msup}[2]{\ensuremath{#1^{^{\scriptstyle{#2}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\msud}
-% \begin{macrocode}
\newcommand{\msud}[3]{\ensuremath{#1^{^{\scriptstyle{#2}}}_{_{_{\scriptstyle{#3}}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\levicivita}
-% \begin{macrocode}
\newcommand{\levicivita}[1]{\ensuremath{\msub{\varepsilon}{#1}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\xaxis}
-% \begin{macro}{\yaxis}
-% \begin{macro}{\zaxis}
-% \begin{macro}{\naxis}
-% Coordinate axes.
-% \begin{macrocode}
+\newcommand{\kronecker}[1]{\ensuremath{\msub{\delta}{#1}}}
\newcommand{\xaxis}{\ensuremath{x\mbox{-axis }}}
\newcommand{\yaxis}{\ensuremath{y\mbox{-axis }}}
\newcommand{\zaxis}{\ensuremath{z\mbox{-axis }}}
\newcommand{\naxis}[1]{\ensuremath{{#1}\mbox{-axis}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\xyplane}
-% \begin{macro}{\yzplane}
-% \begin{macro}{\zxplane}
-% \begin{macro}{\yxplane}
-% \begin{macro}{\zyplane}
-% \begin{macro}{\xzplane}
-% All permutations of planes formed by cartesian axes.
-% \begin{macrocode}
\newcommand{\xyplane}{\ensuremath{xy\mbox{-plane }}}
\newcommand{\yzplane}{\ensuremath{yz\mbox{-plane }}}
\newcommand{\zxplane}{\ensuremath{zx\mbox{-plane }}}
\newcommand{\yxplane}{\ensuremath{yx\mbox{-plane }}}
\newcommand{\zyplane}{\ensuremath{zy\mbox{-plane }}}
\newcommand{\xzplane}{\ensuremath{xz\mbox{-plane }}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\cuberoot}
-% \begin{macro}{\fourthroot}
-% \begin{macro}{\fifthroot}
-% \begin{macro}{\fsqrt}
-% \begin{macro}{\fcuberoot}
-% \begin{macro}{\ffourthroot}
-% \begin{macro}{\ffifthroot}
% Frequently used roots. Prepend |f| for fractional exponents.
-% \begin{macrocode}
\newcommand{\cuberoot}[1]{\ensuremath{\sqrt[3]{#1}}}
\newcommand{\fourthroot}[1]{\ensuremath{\sqrt[4]{#1}}}
\newcommand{\fifthroot}[1]{\ensuremath{\sqrt[5]{#1}}}
@@ -7508,485 +8238,120 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\newcommand{\fcuberoot}[1]{\ensuremath{\msup{#1}{\onethird}}}
\newcommand{\ffourthroot}[1]{\ensuremath{\msup{#1}{\onefourth}}}
\newcommand{\ffifthroot}[1]{\ensuremath{\msup{#1}{\onefifth}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\relgamma}
-% \begin{macro}{\frelgamma}
-% \begin{macrocode}
\newcommand{\relgamma}[1]{\ensuremath{
\frac{1}{\sqrt{1-\msup{\quant{\frac{#1}{c}}}{2}}}}}
\newcommand{\frelgamma}[1]{\ensuremath{
\msup{\quant{1-\frac{\msup{{#1}}{2}}{\msup{c}{2}}}}{-\onehalf}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\oosqrtomxs}
-% \begin{macrocode}
\newcommand{\oosqrtomxs}[1]{\ensuremath{\frac{1}{\sqrt{1-\msup{#1}{2}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\oosqrtomx}
-% \begin{macrocode}
\newcommand{\oosqrtomx}[1]{\ensuremath{\frac{1}{\sqrt{1-{#1}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ooomx}
-% \begin{macrocode}
\newcommand{\ooomx}[1]{\ensuremath{\frac{1}{1-{#1}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ooopx}
-% \begin{macrocode}
\newcommand{\ooopx}[1]{\ensuremath{\frac{1}{1+{#1}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\isequals}
-% \begin{macrocode}
\newcommand{\isequals}{\wordoperator{?}{=}\xspace}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\wordoperator}
-% \begin{macrocode}
\newcommand{\wordoperator}[2]{\ensuremath{%
\mathrel{\vcenter{\offinterlineskip
\halign{\hfil\tiny\upshape##\hfil\cr\noalign{\vskip-.5ex}
{#1}\cr\noalign{\vskip.5ex}{#2}\cr}}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\definedas}
-% \begin{macro}{\associated}
-% \begin{macro}{\adjustedby}
-% \begin{macro}{\earlierthan}
-% \begin{macro}{\laterthan}
-% \begin{macro}{\forevery}
-% \begin{macrocode}
\newcommand{\definedas}{\wordoperator{defined}{as}\xspace}
\newcommand{\associated}{\wordoperator{associated}{with}\xspace}
\newcommand{\adjustedby}{\wordoperator{adjusted}{by}\xspace}
\newcommand{\earlierthan}{\wordoperator{earlier}{than}\xspace}
\newcommand{\laterthan}{\wordoperator{later}{than}\xspace}
\newcommand{\forevery}{\wordoperator{for}{every}\xspace}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\pwordoperator}
-% \begin{macrocode}
\newcommand{\pwordoperator}[2]{\ensuremath{\left(%
\mathrel{\vcenter{\offinterlineskip
\halign{\hfil\tiny\upshape##\hfil\cr\noalign{\vskip-.5ex}
{#1}\cr\noalign{\vskip.5ex}{#2}\cr}}}\right)}}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdefinedas}
-% \begin{macro}{\passociated}
-% \begin{macro}{\padjustedby}
-% \begin{macro}{\pearlierthan}
-% \begin{macro}{\platerthan}
-% \begin{macro}{\pforevery}
-% \begin{macrocode}
\newcommand{\pdefinedas}{\pwordoperator{defined}{as}\xspace}
\newcommand{\passociated}{\pwordoperator{associated}{with}\xspace}
\newcommand{\padjustedby}{\pwordoperator{adjusted}{by}\xspace}
\newcommand{\pearlierthan}{\pwordoperator{earlier}{than}\xspace}
\newcommand{\platerthan}{\pwordoperator{later}{than}\xspace}
\newcommand{\pforevery}{\pwordoperator{for}{every}\xspace}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\defines}
-% \begin{macrocode}
\newcommand{\defines}{\ensuremath{\stackrel{\text{\tiny{def}}}{=}}\xspace}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\inframe}
-% \begin{macrocode}
-\newcommand{\inframe}[1][\relax]{\ensuremath{\xrightarrow[\tiny{\mathcal #1}]{}}\xspace}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\associates}
-% \begin{macrocode}
+\newcommand{\inframe}[1][\relax]{\ensuremath{\xrightarrow[\text\tiny{\mathcal #1}]{}}\xspace}
\newcommand{\associates}{\ensuremath{\xrightarrow{\text{\tiny{assoc}}}}\xspace}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\becomes}
-% \begin{macrocode}
\newcommand{\becomes}{\ensuremath{\xrightarrow{\text{\tiny{becomes}}}}\xspace}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\lrelatedto}
-% \begin{macro}{\rrelatedto}
-% \begin{macro}{\brelatedto}
-% \begin{macrocode}
\newcommand{\rrelatedto}[1]{\ensuremath{\xLongrightarrow{\text{\tiny{#1}}}}}
\newcommand{\lrelatedto}[1]{\ensuremath{\xLongleftarrow[\text{\tiny{#1}}]{}}}
-\newcommand{\brelatedto}[2]{\ensuremath{
+\newcommand{\brelatedto}[2]{\ensuremath{%
\xLongleftrightarrow[\text{\tiny{#1}}]{\text{\tiny{#2}}}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\momprinciple}
-% \begin{macro}{\LHSmomprinciple}
-% \begin{macro}{\RHSmomprinciple}
-% \begin{macrocode}
-\newcommand{\momprinciple}{\ensuremath{
+\newcommand{\momentumprinciple}{\ensuremath{
\vectsub{p}{sys,f}=\vectsub{p}{sys,i}+\Fnetsys\Delta t}}
-\newcommand{\LHSmomprinciple}{\ensuremath{
+\newcommand{\LHSmomentumprinciple}{\ensuremath{%
\vectsub{p}{sys,f}}}
-\newcommand{\RHSmomprinciple}{\ensuremath{
+\newcommand{\RHSmomentumprinciple}{\ensuremath{%
\vectsub{p}{sys,i}+\Fnetsys\Delta t}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\energyprinciple}
-% \begin{macro}{\LHSenergyprinciple}
-% \begin{macro}{\RHSenergyprinciple}
-% \begin{macrocode}
\newcommand{\energyprinciple}{\ensuremath{\ssub{E}{sys,f}=\ssub{E}{sys,i}+
\ssub{W}{ext}+Q}}
\newcommand{\LHSenergyprinciple}{\ensuremath{\ssub{E}{sys,f}}}
\newcommand{\RHSenergyprinciple}{\ensuremath{\ssub{E}{sys,i}+\ssub{W}{ext}+Q}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\angularmomprinciple}
-% \begin{macro}{\LHSangularmomprinciple}
-% \begin{macro}{\RHSangularmomprinciple}
-% \begin{macrocode}
-\newcommand{\angularmomprinciple}{\ensuremath{\vectsub{L}{sys,A,f}=\vectsub{L}{sys,A,i}+
+\newcommand{\angularmomentumprinciple}{\ensuremath{\vectsub{L}{sys,A,f}=
+ \vectsub{L}{sys,A,i}+\Tnetsys\Delta t}}
+\newcommand{\LHSangularmomentumprinciple}{\ensuremath{\vectsub{L}{sys,A,f}}}
+\newcommand{\RHSangularmomentumprinciple}{\ensuremath{\vectsub{L}{sys,A,i}+
\Tnetsys\Delta t}}
-\newcommand{\LHSangularmomprinciple}{\ensuremath{\vectsub{L}{sys,A,f}}}
-\newcommand{\RHSangularmomprinciple}{\ensuremath{\vectsub{L}{sys,A,i}+\Tnetsys\Delta t}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\gravinteraction}
-% \begin{macrocode}
-\newcommand{\gravinteraction}{\ensuremath{
- \bigGmathsymbol\frac{\msub{M}{1}\msub{M}{2}}{\msup{\magvectsub{r}{12}}{2}}
+\newcommand{\gravitationalinteraction}{\ensuremath{%
+ \universalgravmathsymbol\frac{\msub{M}{1}\msub{M}{2}}{\msup{\magvectsub{r}{12}}{2}}
\quant{-\dirvectsub{r}{12}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\elecinteraction}
-% \begin{macrocode}
-\newcommand{\elecinteraction}{\ensuremath{
+\newcommand{\electricinteraction}{\ensuremath{%
\oofpezmathsymbol\frac{\msub{Q}{1}\msub{Q}{2}}{\msup{\magvectsub{r}{12}}{2}}
\dirvectsub{r}{12}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Bfieldofparticle}
-% \begin{macrocode}
-\newcommand{\Bfieldofparticle}{\ensuremath{
+\newcommand{\Bfieldofparticle}{\ensuremath{%
\mzofpmathsymbol\frac{Q\magvect{v}}{\msup{\magvect{r}}{2}}\dirvect{v}\times\dirvect{r}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Efieldofparticle}
-% \begin{macrocode}
-\newcommand{\Efieldofparticle}{\ensuremath{
+\newcommand{\Efieldofparticle}{\ensuremath{%
\oofpezmathsymbol\frac{Q}{\msup{\magvect{r}}{2}}\dirvect{r}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Esys}
-% \begin{macrocode}
\newcommand{\Esys}{\ssub{E}{sys}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Us}
-% \begin{macrocode}
\newcommandx{\Us}[1][1]{\ssub{\ssub{U}{s}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Ug}
-% \begin{macrocode}
\newcommandx{\Ug}[1][1]{\ssub{\ssub{U}{g}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Ue}
-% \begin{macrocode}
\newcommandx{\Ue}[1][1]{\ssub{\ssub{U}{e}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Ktrans}
-% \begin{macrocode}
\newcommandx{\Ktrans}[1][1]{\ssub{\ssub{K}{trans}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Krot}
-% \begin{macrocode}
\newcommandx{\Krot}[1][1]{\ssub{\ssub{K}{rot}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Eparticle}
-% \begin{macrocode}
\newcommandx{\Eparticle}[1][1]{\ssub{\ssub{E}{particle}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Einternal}
-% \begin{macrocode}
\newcommandx{\Einternal}[1][1]{\ssub{\ssub{E}{internal}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Erest}
-% \begin{macrocode}
\newcommandx{\Erest}[1][1]{\ssub{\ssub{E}{rest}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Echem}
-% \begin{macrocode}
\newcommandx{\Echem}[1][1]{\ssub{\ssub{E}{chem}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Etherm}
-% \begin{macrocode}
\newcommandx{\Etherm}[1][1]{\ssub{\ssub{E}{therm}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Evib}
-% \begin{macrocode}
\newcommandx{\Evib}[1][1]{\ssub{\ssub{E}{vib}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Ephoton}
-% \begin{macrocode}
\newcommandx{\Ephoton}[1][1]{\ssub{\ssub{E}{photon}}{#1}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DEsys}
-% \begin{macrocode}
\newcommand{\DEsys}{\Changein\Esys}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DUs}
-% \begin{macrocode}
\newcommand{\DUs}{\Changein\Us}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DUg}
-% \begin{macrocode}
\newcommand{\DUg}{\Changein\Ug}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DUe}
-% \begin{macrocode}
\newcommand{\DUe}{\Changein\Ue}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DKtrans}
-% \begin{macrocode}
\newcommand{\DKtrans}{\Changein\Ktrans}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DKrot}
-% \begin{macrocode}
\newcommand{\DKrot}{\Changein\Krot}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DEparticle}
-% \begin{macrocode}
\newcommand{\DEparticle}{\Changein\Eparticle}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DEinternal}
-% \begin{macrocode}
\newcommand{\DEinternal}{\Changein\Einternal}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DErest}
-% \begin{macrocode}
\newcommand{\DErest}{\Changein\Erest}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DEchem}
-% \begin{macrocode}
\newcommand{\DEchem}{\Changein\Echem}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DEtherm}
-% \begin{macrocode}
\newcommand{\DEtherm}{\Changein\Etherm}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DEvib}
-% \begin{macrocode}
\newcommand{\DEvib}{\Changein\Evib}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\DEphoton}
-% \begin{macrocode}
\newcommand{\DEphoton}{\Changein\Ephoton}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Usfinal}
-% \begin{macrocode}
\newcommand{\Usfinal}{\ssub{\left(\onehalf\ks \msup{s}{2}\right)}{f}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Usinitial}
-% \begin{macrocode}
\newcommand{\Usinitial}{\ssub{\left(\onehalf\ks \msup{s}{2}\right)}{i}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Ugfinal}
-% \begin{macrocode}
\newcommand{\Ugfinal}{\ssub{\left(-G\frac{\msub{M}{1}\msub{M}{2}}
{\magvectsub{r}{12}}\right)}{f}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Uginitial}
-% \begin{macrocode}
\newcommand{\Uginitial}{\ssub{\left(-G\frac{\msub{M}{1}\msub{M}{2}}
{\magvectsub{r}{12}}\right)}{i}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Uefinal}
-% \begin{macrocode}
\newcommand{\Uefinal}{\ssub{\left(\oofpezmathsymbol\frac{\ssub{Q}{1}\ssub{Q}{2}}
{\magvectsub{r}{12}}\right)}{f}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Ueinitial}
-% \begin{macrocode}
\newcommand{\Ueinitial}{\ssub{\left(\oofpezmathsymbol\frac{\ssub{Q}{1}\ssub{Q}{2}}
{\magvectsub{r}{12}}\right)}{i}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\ks}
-% \begin{macrocode}
\newcommand{\ks}{\ssub{k}{s}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\Fnet}
-% \begin{macro}{\Fnetext}
-% \begin{macro}{\Fnetsys}
-% \begin{macro}{\Fsub}
-% \begin{macrocode}
\newcommand{\Fnet}{\ensuremath{\vectsub{F}{net}}}
\newcommand{\Fnetext}{\ensuremath{\vectsub{F}{net,ext}}}
\newcommand{\Fnetsys}{\ensuremath{\vectsub{F}{net,sys}}}
\newcommand{\Fsub}[1]{\ensuremath{\vectsub{F}{#1}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\Tnet}
-% \begin{macro}{\Tnetext}
-% \begin{macro}{\Tnetsys}
-% \begin{macro}{\Tsub}
-% \begin{macrocode}
\newcommand{\Tnet}{\ensuremath{\vectsub{T}{net}}}
\newcommand{\Tnetext}{\ensuremath{\vectsub{T}{net,ext}}}
\newcommand{\Tnetsys}{\ensuremath{\vectsub{T}{net,sys}}}
\newcommand{\Tsub}[1]{\ensuremath{\vectsub{T}{#1}}}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\vpythonline}
-% \begin{macrocode}
-\newcommand{\vpythonline}{\lstinline[language=Python,numbers=left,numberstyle=\tiny,
+\newcommand{\vpythonline}{\lstinline[language=Python,numbers=left,numberstyle=\tiny,%
upquote=true,breaklines]}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{vpythonblock}
-% \begin{macrocode}
\lstnewenvironment{vpythonblock}{\lstvpython}{}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\vpythonfile}
-% \begin{macrocode}
-\newcommand{\vpythonfile}{\lstinputlisting[language=Python,numbers=left,
+\newcommand{\vpythonfile}{\lstinputlisting[language=Python,numbers=left,%
numberstyle=\tiny,upquote=true,breaklines]}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\emptyanswer}
-% \begin{macrocode}
\newcommandx{\emptyanswer}[2][1=0.80,2=0.1,usedefault]
{\begin{minipage}{#1\textwidth}\hfill\vspace{#2\textheight}\end{minipage}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{activityanswer}
-% \begin{macrocode}
\newenvironmentx{activityanswer}[5][1=white,2=black,3=black,4=0.90,5=0.10,usedefault]{%
\def\skipper{#5}%
\def\response@fbox{\fcolorbox{#2}{#1}}%
@@ -8000,12 +8365,7 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\response@fbox{\usebox{\@tempboxa}}%
\end{center}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{adjactivityanswer}
-% \begin{macrocode}
-\newenvironmentx{adjactivityanswer}[5][1=white,2=black,3=black,4=0.90,5=0.00,
+\newenvironmentx{adjactivityanswer}[5][1=white,2=black,3=black,4=0.90,5=0.00,%
usedefault]{%
\def\skipper{#5}%
\def\response@fbox{\fcolorbox{#2}{#1}}%
@@ -8019,13 +8379,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\response@fbox{\usebox{\@tempboxa}}%
\end{center}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\emptybox}
-% \begin{macrocode}
\newcommandx{\emptybox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.10,usedefault]
- {\begin{center}
+ {\begin{center}%
\fcolorbox{#3}{#2}{%
\begin{minipage}[c][#6\textheight][c]{#5\textwidth}\color{#4}%
{#1}%
@@ -8033,13 +8388,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\vspace{\baselineskip}%
\end{center}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\adjemptybox}
-% \begin{macrocode}
\newcommandx{\adjemptybox}[7][1=\hfill,2=white,3=black,4=black,5=0.90,6=,7=0.0,usedefault]
- {\begin{center}
+ {\begin{center}%
\fcolorbox{#3}{#2}{%
\begin{minipage}[c]{#5\textwidth}\color{#4}%
\vspace{#7\textheight}%
@@ -8049,13 +8399,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\vspace{\baselineskip}%
\end{center}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\answerbox}
-% \begin{macrocode}
\newcommandx{\answerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.1,usedefault]
- {\ifthenelse{\equal{#1}{}}
+ {\ifthenelse{\equal{#1}{}}%
{\begin{center}%
\fcolorbox{#3}{#2}{%
\emptyanswer[#5][#6]}%
@@ -8063,13 +8408,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\end{center}}%
{\emptybox[#1][#2][#3][#4][#5][#6]}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\adjanswerbox}
-% \begin{macrocode}
-\newcommandx{\adjanswerbox}[7][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.1,7=0.0,
- usedefault]
+\newcommandx{\adjanswerbox}[7][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.1,7=0.0,%
+ usedefault]%
{\ifthenelse{\equal{#1}{}}%
{\begin{center}%
\fcolorbox{#3}{#2}{%
@@ -8078,15 +8418,9 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\end{center}}%
{\adjemptybox[#1][#2][#3][#4][#5][#6][#7]}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\smallanswerbox}
-% box that takes up ten percent of text height
-% \begin{macrocode}
-\newcommandx{\smallanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.10,
- usedefault]
- {\ifthenelse{\equal{#1}{}}
+\newcommandx{\smallanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.10,%
+ usedefault]%
+ {\ifthenelse{\equal{#1}{}}%
{\begin{center}%
\fcolorbox{#3}{#2}{%
\emptyanswer[#5][#6]}%
@@ -8094,15 +8428,9 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\end{center}}%
{\emptybox[#1][#2][#3][#4][#5][#6]}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\mediumanswerbox}
-% box that takes up twenty percent of text height
-% \begin{macrocode}
-\newcommandx{\mediumanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.20,
+\newcommandx{\mediumanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.20,%
usedefault]{%
- \ifthenelse{\equal{#1}{}}
+ \ifthenelse{\equal{#1}{}}%
{\begin{center}%
\fcolorbox{#3}{#2}{%
\emptyanswer[#5][#6]%
@@ -8110,18 +8438,12 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\vspace{\baselineskip}%
\end{center}%
}%
- {\emptybox[#1][#2][#3][#4][#5][#6]
+ {\emptybox[#1][#2][#3][#4][#5][#6]%
}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\largeanswerbox}
-% box that takes up twenty-five percent of text height
-% \begin{macrocode}
-\newcommandx{\largeanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.25,
+\newcommandx{\largeanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.25,%
usedefault]{%
- \ifthenelse{\equal{#1}{}}
+ \ifthenelse{\equal{#1}{}}%
{\begin{center}%
\fcolorbox{#3}{#2}{%
\emptyanswer[#5][#6]%
@@ -8129,18 +8451,12 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\vspace{\baselineskip}%
\end{center}%
}%
- {\emptybox[#1][#2][#3][#4][#5][#6]
+ {\emptybox[#1][#2][#3][#4][#5][#6]%
}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\largeranswerbox}
-% box that takes up thirty-three percent of text height
-% \begin{macrocode}
-\newcommandx{\largeranswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.33,
+\newcommandx{\largeranswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.33,%
usedefault]{%
- \ifthenelse{\equal{#1}{}}
+ \ifthenelse{\equal{#1}{}}%
{\begin{center}%
\fcolorbox{#3}{#2}{%
\emptyanswer[#5][#6]%
@@ -8148,16 +8464,10 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\vspace{\baselineskip}%
\end{center}%
}%
- {\emptybox[#1][#2][#3][#4][#5][#6]
+ {\emptybox[#1][#2][#3][#4][#5][#6]%
}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\hugeanswerbox}
-% box that takes up fifty percent of text height
-% \begin{macrocode}
-\newcommandx{\hugeanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.50,
+\newcommandx{\hugeanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.50,%
usedefault]{%
\ifthenelse{\equal{#1}{}}
{\begin{center}%
@@ -8167,18 +8477,12 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\vspace{\baselineskip}%
\end{center}%
}%
- {\emptybox[#1][#2][#3][#4][#5][#6]
+ {\emptybox[#1][#2][#3][#4][#5][#6]%
}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\hugeranswerbox}
-% box that takes up seventy-five percent of text height
-% \begin{macrocode}
-\newcommandx{\hugeranswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.75,
+\newcommandx{\hugeranswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.75,%
usedefault]{%
- \ifthenelse{\equal{#1}{}}
+ \ifthenelse{\equal{#1}{}}%
{\begin{center}%
\fcolorbox{#3}{#2}{%
\emptyanswer[#5][#6]%
@@ -8186,18 +8490,12 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\vspace{\baselineskip}%
\end{center}%
}%
- {\emptybox[#1][#2][#3][#4][#5][#6]
+ {\emptybox[#1][#2][#3][#4][#5][#6]%
}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\fullpageanswerbox}
-% box that takes up one hundred percent of text height
-% \begin{macrocode}
-\newcommandx{\fullpageanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=1.00,
+\newcommandx{\fullpageanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=1.00,%
usedefault]{%
- \ifthenelse{\equal{#1}{}}
+ \ifthenelse{\equal{#1}{}}%
{\begin{center}%
\fcolorbox{#3}{#2}{%
\emptyanswer[#5][#6]}%
@@ -8205,11 +8503,6 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\end{center}}%
{\emptybox[#1][#2][#3][#4][#5][#6]}%
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{miinstructornote}
-% \begin{macrocode}
\mdfdefinestyle{miinstructornotestyle}{%
hidealllines=false, skipbelow=\baselineskip, skipabove=\baselineskip,
leftmargin=40pt, rightmargin=40pt, linewidth=1, roundcorner=10,
@@ -8224,11 +8517,6 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\end{adjactivityanswer}
\end{mdframed}
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{mistudentnote}
-% \begin{macrocode}
\mdfdefinestyle{mistudentnotestyle}{%
hidealllines=false, skipbelow=\baselineskip, skipabove=\baselineskip,
leftmargin=40pt, rightmargin=40pt, linewidth=1, roundcorner=10,
@@ -8243,12 +8531,6 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\end{adjactivityanswer}
\end{mdframed}
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{miderivation}
-% This definition requires the mdframed package.
-% \begin{macrocode}
\mdfdefinestyle{miderivationstyle}{%
hidealllines=false, skipbelow=\baselineskip, skipabove=\baselineskip,
leftmargin=0pt, rightmargin=0pt, linewidth=1, roundcorner=10,
@@ -8259,16 +8541,11 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\NewEnviron{miderivation}{%
\begin{mdframed}[style=miderivationstyle]
\setcounter{equation}{0}
- \begin{align}
+ \begin{align*}
\BODY
- \end{align}
+ \end{align*}
\end{mdframed}
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{bwinstructornote}
-% \begin{macrocode}
\mdfdefinestyle{bwinstructornotestyle}{%
hidealllines=false, skipbelow=\baselineskip, skipabove=\baselineskip,
leftmargin=40pt, rightmargin=40pt, linewidth=1, roundcorner=10,
@@ -8283,11 +8560,6 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\end{adjactivityanswer}
\end{mdframed}
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{bwstudentnote}
-% \begin{macrocode}
\mdfdefinestyle{bwstudentnotestyle}{%
hidealllines=false, skipbelow=\baselineskip, skipabove=\baselineskip,
leftmargin=40pt, rightmargin=40pt, linewidth=1, roundcorner=10,
@@ -8302,12 +8574,6 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\end{adjactivityanswer}
\end{mdframed}
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{bwderivation}
-% This definition requires the mdframed package.
-% \begin{macrocode}
\mdfdefinestyle{bwderivationstyle}{%
hidealllines=false, skipbelow=\baselineskip, skipabove=\baselineskip,
leftmargin=0pt, rightmargin=0pt, linewidth=1, roundcorner=10,
@@ -8318,23 +8584,13 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\NewEnviron{bwderivation}{%
\begin{mdframed}[style=bwderivationstyle]
\setcounter{equation}{0}
- \begin{align}
+ \begin{align*}
\BODY
- \end{align}
+ \end{align*}
\end{mdframed}
}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\checkpoint}
-% \begin{macrocode}
\newcommand{\checkpoint}{%
\vspace{1cm}\begin{center}|--------- CHECKPOINT ---------|\end{center}}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\image}
-% \begin{macrocode}
\newcommand{\image}[2]{%
\begin{figure}[h!]
\begin{center}%
@@ -8343,83 +8599,67 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\label{#1}%
\end{center}%
\end{figure}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\sneakyone}
-% \begin{macrocode}
\newcommand{\sneakyone}[1]{\ensuremath{\cancelto{1}{\frac{#1}{#1}}}}
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\chkphysicsquantity}
% undocumented diagnostic command
-% \begin{macrocode}
-\newcommand{\chkphysicsquantity}[1]{%
- \cs{#1}
+\newcommand{\chkquantity}[1]{%
+ \begin{center}
+ \begin{tabular}{C{3cm} C{3cm} C{3cm} C{3cm}}
+ name & baseunit & drvdunit & tradunit \tabularnewline
+ \cs{#1} & \csname #1onlybaseunit\endcsname & \csname #1onlydrvdunit\endcsname &
+ \csname #1onlytradunit\endcsname
+ \end{tabular}
+ \end{center}
+}%
+% undocumented diagnostic command
+\newcommand{\chkconstant}[1]{%
+ \begin{center}
+ \begin{tabular}{C{3cm} C{1cm} C{2cm} C{3cm} C{3cm} C{3cm}}
+ name & symbol & value & baseunit & drvdunit & tradunit \tabularnewline
+ \cs{#1} & \csname #1mathsymbol\endcsname & \csname #1value\endcsname &
+ \csname #1onlybaseunit\endcsname & \csname #1onlydrvdunit\endcsname &
+ \csname #1onlytradunit\endcsname
+ \end{tabular}
+ \end{center}
}%
-% \end{macrocode}
-% \end{macro}
-%
-%
-% \begin{macro}{\vecto}
% new |\vect| that allows for subscripts
-% \begin{macrocode}
+% #1 = kernel #2 = subscript
\newcommandx{\vecto}[2][2,usedefault]{\ensuremath{%
\ifthenelse{\equal{#2}{}}%
- {\vec{\mathrm #1}}%
- {\ssub{\vec{\mathrm #1}}{#2}}}}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\compvecto}
+ {\vec{#1}}%
+ {\ssub{\vec{#1}}{#2}}}}%
% new |\compvect| that allows for subscripts
-% \begin{macrocode}
-\newcommandx{\compvecto}[3][2,usedefault]{\ensuremath{%
- \ifthenelse{\equal{#2}{}}%
- {\ssub{\mathrm #1}{\(#3\)}}%
- {\ssub{\mathrm #1}{#2,\(#3\)}}}}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\scompsvecto}
+% #1 = kernel #2 = component #3 = subscript
+\newcommandx{\compvecto}[3][3,usedefault]{\ensuremath{%
+ \ifthenelse{\equal{#3}{}}%
+ {\ssub{#1}{\(#2\)}}%
+ {\ssub{#1}{\(#2\),#3}}}}%
% new |\scompsvect| that allows for subscripts
-% \begin{macrocode}
+% #1 = kernel #2 = subscript
\newcommandx{\scompsvecto}[2][2,usedefault]{\ensuremath{%
\ifthenelse{\equal{#2}{}}%
{\lv\compvecto{#1}{x},\compvecto{#1}{y},\compvecto{#1}{z}\rv}%
- {\lv\compvecto{#1}[#2]{x},\compvecto{#1}[#2]{y},\compvecto{#1}[#2]{z}\rv}}}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\compposo}
+ {\lv\compvecto{#1}{x}[#2],\compvecto{#1}{y}[#2],\compvecto{#1}{z}[#2]\rv}}}%
% new |\comppos| that allows for subscripts
-% \begin{macrocode}
-\newcommandx{\compposo}[2][1,usedefault]{\ensuremath{%
+\newcommandx{\compposo}[2][2,usedefault]{\ensuremath{%
+% #1 = component #2 = subscript
\ifthenelse{\equal{#1}{}}%
- {#2}%
- {\ssub{#2}{#1}}}}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\scompsposo}
+ {#1}%
+ {\ssub{#1}{#2}}}}%
% new |\scompspos| that allows for subscripts
-% \begin{macrocode}
+% #1 = subscript
\newcommandx{\scompsposo}[1][1,usedefault]{\ensuremath{%
\ifthenelse{\equal{#1}{}}%
{\lv\compposo{x},\compposo{y},\compposo{z}\rv}%
- {\lv\compposo[#1]{x},\compposo[#1]{y},\compposo[#1]{z}\rv}}}%
+ {\lv\compposo{x}[#1],\compposo{y}[#1],\compposo{z}[#1]\rv}}}%
% \end{macrocode}
-% \end{macro}
-%
% \newpage
% \section{Acknowledgements}
-% I thank Marcel Heldoorn, Joseph Wright, Scott Pakin, Aaron Titus, Ruth Chabay,
-% and Bruce Sherwood. Special thanks to Martin Scharrer for his \texttt
-% {sty2dtx.pl} utility, which saved me days of typing. Special thanks also to
-% Herbert Schulz for his custom \texttt{dtx} engine for \texttt{TeXShop}. Very
-% special thanks to Ulrich Diez for providing the mechanism that defines scalar
-% and vector quantities.
+% I thank Marcel Heldoorn, Joseph Wright, Scott Pakin, Thomas Sturm, Aaron Titus,
+% Ruth Chabay, and Bruce Sherwood. Special thanks to Martin Scharrer for his
+% \texttt{sty2dtx.pl} utility, which saved me days of typing. Special thanks also
+% to Herbert Schulz for his custom \texttt{dtx} engine for \texttt{TeXShop}. Very
+% special thanks to Ulrich Diez for providing the mechanism that defines physics
+% quantities and constants.
%
% \iffalse
%</package>
diff --git a/Master/texmf-dist/source/latex/mandi/mandi.ins b/Master/texmf-dist/source/latex/mandi/mandi.ins
index 1b3a8710abe..05b68326fb8 100644
--- a/Master/texmf-dist/source/latex/mandi/mandi.ins
+++ b/Master/texmf-dist/source/latex/mandi/mandi.ins
@@ -6,7 +6,7 @@
%%
%% mandi.dtx (with options: `install')
%%
-%% Copyright (C) 2011,2012 by Paul J. Heafner <heafnerj@gmail.com>
+%% Copyright (C) 2011, 2012, 2013 by Paul J. Heafner <heafnerj@gmail.com>
%% ---------------------------------------------------------------------------
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3 of this license or (at
@@ -20,12 +20,12 @@
%% The Current Maintainer of this work is Paul J. Heafner.
%%
%% This work consists of the files mandi.dtx
+%% README
%%
-%% and includes the derived files README
-%% mandi.ins
+%% and includes the derived files mandi.ins
%% mandi.sty
-%% mandi.pdf and
-%% vdemo.py.
+%% vdemo.py and
+%% mandi.pdf.
%% ---------------------------------------------------------------------------
%%
\input docstrip.tex
@@ -34,7 +34,7 @@
\usedir{tex/latex/mandi}
\preamble
-Copyright (C) 2011,2012 by Paul J. Heafner <heafnerj@gmail.com>
+Copyright (C) 2011, 2012, 2013 by Paul J. Heafner <heafnerj@gmail.com>
---------------------------------------------------------------------------
This work may be distributed and/or modified under the conditions of the
LaTeX Project Public License, either version 1.3 of this license or (at
@@ -48,12 +48,12 @@ This work has the LPPL maintenance status `maintained'.
The Current Maintainer of this work is Paul J. Heafner.
This work consists of the files mandi.dtx
+ README
-and includes the derived files README
- mandi.ins
+and includes the derived files mandi.ins
mandi.sty
- mandi.pdf and
- vdemo.py.
+ vdemo.py and
+ mandi.pdf.
---------------------------------------------------------------------------
\endpreamble