summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mandi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-10 22:43:48 +0000
committerKarl Berry <karl@freefriends.org>2013-04-10 22:43:48 +0000
commit0730097276ae76ef9b4c2178d2dd5f974d63f6ee (patch)
tree61a369eca61c38f2e6da6a7f630e363924929e4c /Master/texmf-dist/tex/latex/mandi
parentd0224698c54d3adbbc6826bbf42ccb0cfaa0df2a (diff)
mandi (10apr13)
git-svn-id: svn://tug.org/texlive/trunk@29837 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mandi')
-rw-r--r--Master/texmf-dist/tex/latex/mandi/mandi.sty307
1 files changed, 207 insertions, 100 deletions
diff --git a/Master/texmf-dist/tex/latex/mandi/mandi.sty b/Master/texmf-dist/tex/latex/mandi/mandi.sty
index acaf0bf1399..d5206ea8965 100644
--- a/Master/texmf-dist/tex/latex/mandi/mandi.sty
+++ b/Master/texmf-dist/tex/latex/mandi/mandi.sty
@@ -28,9 +28,9 @@
%% vdemo.py.
%% ---------------------------------------------------------------------------
%%
-\ProvidesPackage{mandi}[2012/12/31 2.0.0 Macros for intro physics and astronomy]
+\ProvidesPackage{mandi}[2013/04/10 2.1.0 Macros for intro physics and astronomy]
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\RequirePackage[intlimits]{amsmath}
+\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{bigints}
\RequirePackage{cancel}
@@ -38,8 +38,8 @@
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage{environ}
\RequirePackage{etoolbox}
-\RequirePackage{extarrows}
\RequirePackage{filehook}
+\RequirePackage{extarrows}
\RequirePackage[T1]{fontenc}
\RequirePackage{graphicx}
\RequirePackage{epstopdf}
@@ -47,7 +47,6 @@
\RequirePackage{letltxmacro}
\RequirePackage{listings}
\RequirePackage[framemethod=TikZ]{mdframed}
-\RequirePackage[amssymb,cdot,derivedinbase,derived,thickqspace]{SIunits}
\RequirePackage{suffix}
\RequirePackage{xargs}
\RequirePackage{xparse}
@@ -75,23 +74,68 @@
\DeclareOption{baseunits}{\setboolean{@optbaseunits}{true}}
\DeclareOption{drvdunits}{\setboolean{@optdrvdunits}{true}}
\ProcessOptions\relax
-\AtBeginOfPackageFile*{SIunits}{%
-\csundef{power}
+\@ifpackageloaded{amssymb}{%
\csundef{square}
- \newcommand*{\square}[1]{\ensuremath{\mathrm{#1}^{2}}}
- \renewcommand*{\squared}{\ensuremath{^{\mathrm{2}}}}
- \renewcommand*{\cubic}[1]{\ensuremath{\mathrm{#1}^{3}}}
- \renewcommand*{\cubed}{\ensuremath{^{\mathrm{3}}}}
-\renewcommand*{\fourth}[1]{\ensuremath{\mathrm{#1}^{4}}}
-\renewcommand*{\reciprocal}[1]{\ensuremath{\mathrm{#1}^{\SIminus1}}}
-\renewcommand*{\rp}{\ensuremath{^{\mathrm{\SIminus1}}}}
-\renewcommand*{\rpsquare}[1]{\ensuremath{\mathrm{#1}^{\SIminus2}}}
-\renewcommand*{\rpsquared}{\ensuremath{^{\mathrm{\SIminus2}}}}
-\renewcommand*{\rpcubic}[1]{\ensuremath{\mathrm{#1}^{\SIminus3}}}
-\renewcommand*{\rpcubed}{\ensuremath{^{\mathrm{\SIminus3}}}}
-\renewcommand*{\rpfourth}[1]{\ensuremath{\mathrm{#1}^{\SIminus4}}}
-\typeout{mandi: SIunits conflicts fixed, but don't use \protect\square\space.}
+ \typeout{mandi: Package amssymb detected. Its \protect\square\space has been redefined.}
+}{%
+ \typeout{mandi: Package amssymb not detected.}
}%
+\newcommand{\per}{\ensuremath{/}}
+\newcommand{\usk}{\ensuremath{\cdot}}
+\newcommand{\unit}[2]{\ensuremath{{#1}\,{#2}}}
+\newcommand{\ampere}{\ensuremath{\mathrm{A}}}
+\newcommand{\arcminute}{\ensuremath{'}}
+\newcommand{\arcsecond}{\ensuremath{''}}
+\newcommand{\atomicmassunit}{\ensuremath{\mathrm{u}}}
+\newcommand{\candela}{\ensuremath{\mathrm{cd}}}
+\newcommand{\coulomb}{\ensuremath{\mathrm{C}}}
+\newcommand{\degree}{\ensuremath{^{\circ}}}
+\newcommand{\electronvolt}{\ensuremath{\mathrm{eV}}}
+\newcommand{\farad}{\ensuremath{\mathrm{F}}}
+\newcommand{\henry}{\ensuremath{\mathrm{H}}}
+\newcommand{\hertz}{\ensuremath{\mathrm{Hz}}}
+\newcommand{\hour}{\ensuremath{\mathrm{h}}}
+\newcommand{\joule}{\ensuremath{\mathrm{J}}}
+\newcommand{\kelvin}{\ensuremath{\mathrm{K}}}
+\newcommand{\kilogram}{\ensuremath{\mathrm{kg}}}
+\newcommand{\metre}{\ensuremath{\mathrm{m}}}
+\newcommand{\minute}{\ensuremath{\mathrm{min}}}
+\newcommand{\mole}{\ensuremath{\mathrm{mol}}}
+\newcommand{\newton}{\ensuremath{\mathrm{N}}}
+\newcommand{\ohm}{\ensuremath{\Omega}}
+\newcommand{\pascal}{\ensuremath{\mathrm{Pa}}}
+\newcommand{\radian}{\ensuremath{\mathrm{rad}}}
+\newcommand{\second}{\ensuremath{\mathrm{s}}}
+\newcommand{\siemens}{\ensuremath{\mathrm{S}}}
+\newcommand{\steradian}{\ensuremath{\mathrm{sr}}}
+\newcommand{\tesla}{\ensuremath{\mathrm{T}}}
+\newcommand{\volt}{\ensuremath{\mathrm{V}}}
+\newcommand{\watt}{\ensuremath{\mathrm{W}}}
+\newcommand{\weber}{\ensuremath{\mathrm{Wb}}}
+\newcommand{\C}{\coulomb}
+\newcommand{\F}{\farad}
+\newcommand{\J}{\joule}
+\newcommand{\N}{\newton}
+\newcommand{\Pa}{\pascal}
+\newcommand{\rad}{\radian}
+\newcommand{\sr}{\steradian}
+\newcommand{\T}{\tesla}
+\newcommand{\V}{\volt}
+\newcommand{\W}{\watt}
+\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
+\newcommand*{\reciprocal}[1]{\ensuremath{\mathrm{#1}^{-1}}} % prefix -1
+\newcommand*{\reciprocalsquare}[1]{\ensuremath{\mathrm{#1}^{-2}}} % prefix -2
+\newcommand*{\reciprocalcubic}[1]{\ensuremath{\mathrm{#1}^{-3}}} % prefix -3
+\newcommand*{\reciprocalquartic}[1]{\ensuremath{\mathrm{#1}^{-4}}} % prefix -4
+\newcommand*{\squared}{\ensuremath{^{\mathrm{2}}}} % postfix 2
+\newcommand*{\cubed}{\ensuremath{^{\mathrm{3}}}} % postfix 3
+\newcommand*{\quarted}{\ensuremath{^{\mathrm{4}}}} % postfix 4
+\newcommand*{\reciprocaled}{\ensuremath{^{\mathrm{-1}}}} % postfix -1
+\newcommand*{\reciprocalsquared}{\ensuremath{^{\mathrm{-2}}}} % postfix -2
+\newcommand*{\reciprocalcubed}{\ensuremath{^{\mathrm{-3}}}} % postfix -3
+\newcommand*{\reciprocalquarted}{\ensuremath{^{\mathrm{-4}}}} % postfix -4
\newcommand\mi@exchangeargs[2]{#2#1}%
\newcommand\mi@name{}%
\long\def\mi@name#1#{\romannumeral0\mi@innername{#1}}%
@@ -195,65 +239,102 @@
\newphysicsquantity{temperature}{\K}[\K][\K]
\newphysicsquantity{amount}{\mol}[\mol][\mol]
\newphysicsquantity{luminous}{\cd}[\cd][\cd]
-\newphysicsquantity{planeangle}{\m\usk\reciprocal\m}[\radian][\radian]
-\newphysicsquantity{solidangle}{\m\squared\usk\rpsquare\m}[\steradian][\steradian]
+\newphysicsquantity{planeangle}{\m\usk\reciprocal\m}[\rad][\rad]
+\newphysicsquantity{solidangle}{\m\squared\usk\reciprocalsquare\m}[\sr][\sr]
\newcommand{\indegrees}[1]{\ensuremath{\unit{#1}{\degree}}}
\newcommand{\inarcminutes}[1]{\ensuremath{\unit{#1}{\arcminute}}}
\newcommand{\inarcseconds}[1]{\ensuremath{\unit{#1}{\arcsecond}}}
\newcommand{\ineV}[1]{\ensuremath{\unit{#1}{\electronvolt}}}
-\newcommand{\inAU}[1]{\ensuremath{\unit{#1}{AU}}}
+\newcommand{\inAU}[1]{\ensuremath{\unit{#1}{\mathrm{AU}}}}
\newcommand{\velocityc}[1]{\ensuremath{#1c}}
\newphysicsquantity{velocity}{\m\usk\reciprocal\s}[\m\usk\reciprocal\s][\m\per\s]
-\newphysicsquantity{acceleration}{\m\usk\s\rpsquared}[\newton\per\kg][\m\per\s\squared]
+\newphysicsquantity{acceleration}{\m\usk\s\reciprocalsquared}[\N\per\kg][\m\per\s\squared]
\newcommand{\gamman}[1]{\ensuremath{#1}}
-\newphysicsquantity{momentum}{\m\usk\kg\usk\reciprocal\s}[\newton\usk\s][\kg\usk\m\per\s]
-\newphysicsquantity{impulse}{\m\usk\kg\usk\reciprocal\s}[\newton\usk\s][\kg\usk\m\per\s]
-\newphysicsquantity{force}{\m\usk\kg\usk\s\rpsquared}[\newton][\newton]
-\newphysicsquantity{springstiffness}{\kg\usk\s\rpsquared}[\newton\per\m][\newton\per\m]
+\newphysicsquantity{momentum}{\m\usk\kg\usk\reciprocal\s}[\N\usk\s][\kg\usk\m\per\s]
+\newphysicsquantity{impulse}{\m\usk\kg\usk\reciprocal\s}[\N\usk\s][\kg\usk\m\per\s]
+\newphysicsquantity{force}{\m\usk\kg\usk\s\reciprocalsquared}[\N][\N]
+\newphysicsquantity{springstiffness}{\kg\usk\s\reciprocalsquared}[\N\per\m][\N\per\m]
\newphysicsquantity{springstretch}{\m}
\newphysicsquantity{area}{\m\squared}
\newphysicsquantity{volume}{\cubic\m}
\newphysicsquantity{linearmassdensity}{\reciprocal\m\usk\kg}[\kg\per\m][\kg\per\m]
-\newphysicsquantity{areamassdensity}{\m\rpsquared\usk\kg}[\kg\per\m\squared]
+\newphysicsquantity{areamassdensity}{\m\reciprocalsquared\usk\kg}[\kg\per\m\squared]
[\kg\per\m\squared]
-\newphysicsquantity{volumemassdensity}{\m\rpcubed\usk\kg}[\kg\per\m\cubed]
+\newphysicsquantity{volumemassdensity}{\m\reciprocalcubed\usk\kg}[\kg\per\m\cubed]
[\kg\per\m\cubed]
-\newphysicsquantity{youngsmodulus}{\reciprocal\m\usk\kg\usk\s\rpsquared}
-[\newton\per\m\squared][\pascal]
-\newphysicsquantity{work}{\m\squared\usk\kilogram\usk\s\rpsquared}[\joule]
-[\newton\usk\m]
-\newphysicsquantity{energy}{\m\squared\usk\kilogram\usk\s\rpsquared}[\joule]
-[\newton\usk\m]
-\newphysicsquantity{power}{\m\squared\usk\kg\usk\s\rpcubed}[\watt][\joule\per\s]
-\newphysicsquantity{angularvelocity}{\radian\usk\reciprocal\s}[\radian\per\s]
-[\radian\per\s]
-\newphysicsquantity{angularacceleration}{\radian\usk\s\rpsquared}[\radian\per\s\squared]
-[\radian\per\s\squared]
-\newphysicsquantity{angularmomentum}{\m\squared\usk\kg\usk\reciprocal\s}[\joule\usk\s]
+\newphysicsquantity{youngsmodulus}{\reciprocal\m\usk\kg\usk\s\reciprocalsquared}
+[\N\per\m\squared][\Pa]
+\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]
+\newphysicsquantity{angularvelocity}{\rad\usk\reciprocal\s}[\rad\per\s][\rad\per\s]
+\newphysicsquantity{angularacceleration}{\rad\usk\s\reciprocalsquared}[\rad\per\s\squared]
+[\rad\per\s\squared]
+\newphysicsquantity{angularmomentum}{\m\squared\usk\kg\usk\reciprocal\s}[\J\usk\s]
[\kg\usk\m\squared\per\s]
-\newphysicsquantity{momentofinertia}{\m\squared\usk\kg}[\joule\usk\s\squared]
+\newphysicsquantity{momentofinertia}{\m\squared\usk\kg}[\J\usk\s\squared]
[\kg\usk\m\squared]
-\newphysicsquantity{torque}{\m\squared\usk\kg\usk\s\rpsquared}[\joule\per\radian]
-[\newton\usk\m]
-\newphysicsquantity{entropy}{\m\squared\usk\kilogram\usk\s\rpsquared\usk\reciprocal\K}
-[\joule\per\K][\joule\per\K]
+\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]
\newphysicsquantity{wavelength}{\m}[\m][\m]
\newphysicsquantity{wavenumber}{\reciprocal\m}[\per\m][\per\m]
\newphysicsquantity{frequency}{\reciprocal\s}[\hertz][\hertz]
-\newphysicsquantity{angularfrequency}{\radian\usk\reciprocal\s}[\radian\per\s]
-[\radian\per\s]
-\newphysicsquantity{charge}{\A\usk\s}[\coulomb][\coulomb]
-\newphysicsquantity{permittivity}{\m\rpcubed\usk\reciprocal\kg\usk\s^{4}\usk\A\squared}
-[\farad\per\m][\coulomb\squared\per\newton\usk\m\squared]
-\newphysicsquantity{permeability}{\m\usk\kg\usk\s\rpsquared\usk\A\rpsquared}
-[\henry\per\m][\tesla\usk\m\per\A]
-\newphysicsquantity{electricfield}{\m\usk\kg\usk\s\rpcubed\usk\reciprocal\A}[\volt\per\m]
-[\newton\per\coulomb]
-\newphysicsquantity{electricdipolemom}{\m\usk\s\usk\A}[\coulomb\usk\m][\coulomb\usk\m]
-\newphysicsquantity{magneticfield}{\kg\usk\s\rpsquared\usk\reciprocal\A}[\tesla]
-[\newton\per\coulomb\usk(\m\per\s)]
-\newphysicsquantity{cmagneticfield}{\m\usk\kg\usk\s\rpcubed\usk\reciprocal\A}[\volt\per\m]
-[\newton\per\coulomb]
+\newphysicsquantity{angularfrequency}{\rad\usk\reciprocal\s}[\rad\per\s][\rad\per\s]
+\newphysicsquantity{charge}{\A\usk\s}[\C][\C]
+\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]
+\newphysicsquantity{electricdipolemoment}{\m\usk\s\usk\A}[\C\usk\m][\C\usk\m]
+\newphysicsquantity{magneticfield}{\kg\usk\s\reciprocalsquared\usk\reciprocal\A}[\T]
+[\N\per\C\usk(\m\per\s)]
+\newphysicsquantity{cmagneticfield}{\m\usk\kg\usk\s\reciprocalcubed\usk\reciprocal\A}
+[\V\per\m][\N\per\C]
+\newphysicsquantity{linearchargedensity}{\reciprocal\m\usk\s\usk\A}[\C\per\m][\C\per\m]
+\newphysicsquantity{areachargedensity}{\reciprocalsquare\m\usk\s\usk\A}
+[\C\per\square\m][\C\per\square\m]
+\newphysicsquantity{volumechargedensity}{\reciprocalcubic\m\usk\s\usk\A}
+[\C\per\cubic\m][\C\per\cubic\m]
+\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)]
+\newphysicsquantity{numberdensity}{\reciprocalcubic\m}[\per\cubic\m][\per\cubic\m]
+\newphysicsquantity{polarizability}{\reciprocal\kg\usk\s\quarted\usk\square\A}
+[\C\usk\square\m\per\V][\C\usk\m\per(\N\per\C)]
+\newphysicsquantity{electricpotential}
+{\square\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocal\A}[\J\per\C][\V]
+\newphysicsquantity{emf}{\square\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocal\A}
+[\J\per\C][\V]
+\newphysicsquantity{dielectricconstant}{}[][]
+\newphysicsquantity{indexofrefraction}{}[][]
+\newphysicsquantity{relativepermittivity}{}[][]
+\newphysicsquantity{relativepermeability}{}[][]
+\newphysicsquantity{energydensity}{\m\reciprocaled\usk\kg\usk\reciprocalsquare\s}
+[\J\per\cubic\m][\J\per\cubic\m]
+\newphysicsquantity{electroncurrent}{\reciprocal\s}
+[\ensuremath{\mathrm{e}}\per\s][\ensuremath{\mathrm{e}}\per\s]
+\newphysicsquantity{conventionalcurrent}{\A}[\C\per\s][\A]
+\newphysicsquantity{magneticdipolemoment}{\square\m\usk\A}[\J\per\T][\A\usk\square\m]
+\newphysicsquantity{currentdensity}{\reciprocalsquare\m\usk\A}[\C\usk\s\per\square\m]
+[\A\per\square\m]
+\newphysicsquantity{capacitance}
+{\reciprocalsquare\m\usk\reciprocal\kg\usk\quartic\s\usk\square\A}[\C\per\V][\F]
+\newphysicsquantity{conductivity}
+{\reciprocalcubic\m\usk\reciprocal\kg\usk\cubic\s\usk\square\A}[\siemens\per\m]
+[\A\per\V\usk\m]
+\newphysicsquantity{resistivity}
+{\cubic\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocalsquare\A}[\m\per\siemens]
+[\ohm\usk\m]
+\newphysicsquantity{resistance}
+{\square\m\usk\kg\usk\reciprocalcubic\s\usk\reciprocalsquare\A}[\V\per\A][\ohm]
+\newphysicsquantity{conductance}
+{\reciprocalsquare\m\usk\reciprocal\kg\usk\cubic\s\usk\square\A}[\A\per\V][\siemens]
\newcommand{\lv}{\ensuremath{\left\langle}}
\newcommand{\rv}{\ensuremath{\right\rangle}}
\newcommand{\symvect}{\mivector}
@@ -732,59 +813,61 @@
}%
}%
\newphysicsconstant{oofpez}{\ensuremath{\frac{1}{\phantom{_o}4\pi\ssub{\epsilon}{o}}}}
-{\scin[9]{9}}{\ensuremath{\m\cubed\usk\kg\usk\s^{-4}\usk\A\rpsquared}}[\m\per\farad]
-[\newton\usk\m\squared\per\coulomb\squared]
+{\scin[9]{9}}{\ensuremath{\m\cubed\usk\kg\usk\reciprocalquartic\s\usk\\reciprocalsquared}}
+[\m\per\farad][\newton\usk\m\squared\per\coulomb\squared]
\newphysicsconstant{oofpezcs}{\ensuremath{\frac{1}{\phantom{_o}4\pi\ssub{\epsilon}{o}
-c^2\phantom{_o}}}}{\scin{-7}}{\m\usk\kg\usk\s\rpsquared\usk\A\rpsquared}[\tesla\usk\m
-\squared][\newton\usk\s\squared\per\coulomb\squared]
+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]
\newphysicsconstant{epsz}{\ensuremath{\ssub{\epsilon}{o}}}{\scin[9]{-12}}
-{\m\rpcubed\usk\reciprocal\kg\usk\s^{4}\usk\A\squared}[\farad\per\m]
-[\coulomb\squared\per\newton\usk\m\squared]
+{\m\reciprocalcubed\usk\reciprocal\kg\usk\s\quarted\usk\A\squared}[\F\per\m]
+[\C\squared\per\N\usk\m\squared]
\newphysicsconstant{mzofp}{\ensuremath{\frac{\phantom{_oo}\ssub{\mu}{o}\phantom{_o}}
-{4\pi}}}{\scin{-7}}{\m\usk\kg\usk\s\rpsquared\usk\A\rpsquared}[\henry\per\m]
+{4\pi}}}{\scin{-7}}{\m\usk\kg\usk\s\reciprocalsquared\usk\A\reciprocalsquared}
+[\henry\per\m]
[\tesla\usk\m\per\A]
\newphysicsconstant{muz}{\ensuremath{\ssub{\mu}{o}}}{\scin[4\pi]{-7}}
-{\m\usk\kg\usk\s\rpsquared\usk\A\rpsquared}[\henry\per\m][\tesla\usk\m\per\A]
+{\m\usk\kg\usk\s\reciprocalsquared\usk\A\reciprocalsquared}[\henry\per\m]
+[\T\usk\m\per\A]
\newphysicsconstant{kboltz}{\ensuremath{\ssub{k}{B}}}{\scin[1.38]{-23}}
-{\kg\usk\m\squared\usk\rpsquare\s\usk\reciprocal\K}[\joule\per\K][\joule\per\K]
+{\kg\usk\m\squared\usk\reciprocalsquare\s\usk\reciprocal\K}[\joule\per\K][\J\per\K]
\newcommand{\kboltznev}{\ensuremath{\scin[8.62]{-5}{\eV\per\K}}}
-\newphysicsconstant{stefan}{\ensuremath{\sigma}}{\scin[5.67]{-8}}{\kg\usk\s\rpcubed\usk
-\K^{-4}}[\watt\per\m\squared\usk\K^4][\watt\per\m\squared\usk\K^4]
+\newphysicsconstant{stefan}{\ensuremath{\sigma}}{\scin[5.67]{-8}}
+{\kg\usk\s\reciprocalcubed\usk\K\reciprocalquarted}[\W\per\m\squared\usk\K^4]
+[\W\per\m\squared\usk\K\quarted]
\newphysicsconstant{planck}{\ensuremath{h}}{\scin[6.62]{-34}}
-{\m\squared\usk\kg\usk\reciprocal\s}[\joule\usk\s][\kg\usk\m\squared\per\s]
+{\m\squared\usk\kg\usk\reciprocal\s}[\J\usk\s][\kg\usk\m\squared\per\s]
\newcommand{\plancknev}{\ensuremath{\scin[4.136]{-15}{\eV\usk\s}}}
\newphysicsconstant{planckbar}{\ensuremath{\hbar}}{\scin[1.05]{-34}}
{\m\squared\usk\kg\usk\reciprocal\s}[\joule\usk\s][\kg\usk\m\squared\per\s]
\newcommand{\planckbarnev}{\ensuremath{\scin[4.136]{-15}{\eV\usk\s}}}
-\newphysicsconstant{Navogadro}{\ensuremath{\ssub{N}{A}}}{\scin[6.022]{23}}{\reciprocal
-\mol}[\reciprocal\mol][\reciprocal\mol]
+\newphysicsconstant{Navogadro}{\ensuremath{\ssub{N}{A}}}{\scin[6.022]{23}}
+{\reciprocal\mol}[\reciprocal\mol][\reciprocal\mol]
\newphysicsconstant{bigG}{\ensuremath{G}}{\scin[6.67]{-11}}
-{\m\cubed\usk\reciprocal\kg\usk\s\rpsquared}[\joule\usk\m\per\kg\squared]
-[\newton\usk\m\squared\per\kg\squared]
-\newphysicsconstant{littleg}{\ensuremath{g}}{9.80}{\m\usk\s\rpsquared}[\newton\per\kg]
-[\m\per\s\squared]
+{\m\cubed\usk\reciprocal\kg\usk\s\reciprocalsquared}[\J\usk\m\per\kg\squared]
+[\N\usk\m\squared\per\kg\squared]
+\newphysicsconstant{littleg}{\ensuremath{g}}{9.80}{\m\usk\s\reciprocalsquared}
+[\N\per\kg][\m\per\s\squared]
\newphysicsconstant{clight}{\ensuremath{c}}{\scin[3.00]{8}}{\m\usk\reciprocal\s}
[\m\usk\reciprocal\s][\m\per\s]
-\newcommand{\clightnfn}{\ensuremath{\unit{1}{ft\per\nano\s}}}
+\newcommand{\clightnfn}{\ensuremath{\unit{1}{\mathrm{ft}\per\mathrm{n}\s}}}
\newphysicsconstant{Ratom}{\ensuremath{\ssub{r}{atom}}}{\scin{-10}}{\m}[\m][\m]
-\newphysicsconstant{Mproton}{\ensuremath{\ssub{m}{proton}}}{\scin[1.673]{-27}}{\kg}
-[\kg][\kg]
+\newphysicsconstant{Mproton}{\ensuremath{\ssub{m}{proton}}}{\scin[1.673]{-27}}
+{\kg}[\kg][\kg]
\newphysicsconstant{Mneutron}{\ensuremath{\ssub{m}{neutron}}}{\scin[1.675]{-27}}
{\kg}[\kg][\kg]
\newphysicsconstant{Mhydrogen}{\ensuremath{\ssub{m}{hydrogen}}}{\scin[1.673]{-27}}
{\kg}[\kg][\kg]
\newphysicsconstant{Melectron}{\ensuremath{\ssub{m}{electron}}}{\scin[9.109]{-31}}
{\kg}[\kg][\kg]
-\newphysicsconstant{echarge}{\ensuremath{e}}{\scin[1.602]{-19}}{\A\usk\s}[\coulomb]
-[\coulomb]
+\newphysicsconstant{echarge}{\ensuremath{e}}{\scin[1.602]{-19}}{\A\usk\s}[\C][\C]
\newphysicsconstant{Qelectron}{\ensuremath{\ssub{Q}{electron}}}{-\echargevalue}
-{\A\usk\s}[\coulomb][\coulomb]
+{\A\usk\s}[\C][\C]
\newphysicsconstant{qelectron}{\ensuremath{\ssub{q}{electron}}}{-\echargevalue}
-{\A\usk\s}[\coulomb][\coulomb]
+{\A\usk\s}[\C][\C]
\newphysicsconstant{Qproton}{\ensuremath{\ssub{Q}{proton}}}{+\echargevalue}
-{\A\usk\s}[\coulomb][\coulomb]
+{\A\usk\s}[\C][\C]
\newphysicsconstant{qproton}{\ensuremath{\ssub{q}{proton}}}{+\echargevalue}
-{\A\usk\s}[\coulomb][\coulomb]
+{\A\usk\s}[\C][\C]
\newphysicsconstant{MEarth}{\ensuremath{\ssub{M}{Earth}}}{\scin[6]{24}}{\kg}[\kg][\kg]
\newphysicsconstant{MMoon}{\ensuremath{\ssub{M}{Moon}}}{\scin[7]{22}}{\kg}[\kg][\kg]
\newphysicsconstant{MSun}{\ensuremath{\ssub{M}{Sun}}}{\scin[2]{30}}{\kg}[\kg][\kg]
@@ -803,7 +886,7 @@ c^2\phantom{_o}}}}{\scin{-7}}{\m\usk\kg\usk\s\rpsquared\usk\A\rpsquared}[\tesla\
\newcommand{\yr}{\ensuremath{\mathrm{yr}}}
\newcommand{\parsec}{\ensuremath{\mathrm{pc}}}
\newphysicsconstant{LSun}{\ensuremath{\ssub{L}{Sun}}}{\scin[4]{26}}
- {\m\squared\usk\kg\usk\s\rpcubed}[\watt][\joule\per\s]
+ {\m\squared\usk\kg\usk\s\reciprocalcubed}[\W][\J\per\s]
\newphysicsconstant{TSun}{\ensuremath{\ssub{T}{Sun}}}{5800}{\K}[\K][\K]
\newphysicsconstant{MagSun}{\ensuremath{\ssub{M}{Sun}}}{+4.83}{}[][]
\newphysicsconstant{magSun}{\ensuremath{\ssub{m}{Sun}}}{-26.74}{}[][]
@@ -851,7 +934,11 @@ c^2\phantom{_o}}}}{\scin{-7}}{\m\usk\kg\usk\s\rpsquared\usk\A\rpsquared}[\tesla\
\newcommand{\fourthirds}{\ensuremath{\frac{4}{3}}\xspace}
\newcommand{\dx}[1]{\ensuremath{\,\mathrm{d}{#1}}}
\newcommand{\evalfromto}[3]{\ensuremath{\Bigg.{#1}\Bigg\rvert_{#2}^{#3}}}
-\newcommand{\evalat}[2]{\ensuremath{\Bigg.{#1}\Bigg\rvert_{#2}}}
+\@ifpackageloaded{physymb}{%
+ \typeout{mandi: Package physymb detected. Its commands will be used.}
+}{%
+ \newcommand{\evalat}[2]{\ensuremath{\Bigg.{#1}\Bigg\rvert_{#2}}}
+}%
\newcommand{\evaluatedat}[1]{\ensuremath{\Bigg.\Bigg\rvert_{#1}}}
\newcommandx{\integral}[4][1,2,usedefault]{\ensuremath{
\int_{\ifthenelse{\equal{#1}{}}{}{#4=#1}}^{\ifthenelse{\equal{#2}{}}{}{#4=#2}}}
@@ -912,9 +999,19 @@ 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}
-\newcommand{\divergence}[1]{\ensuremath{\vectdotvect{\nabla}{#1}}}
-\newcommand{\curl}[1]{\ensuremath{\nabla\times{#1}}}
+\@ifpackageloaded{physymb}{%
+ \typeout{mandi: Package physymb detected. Its commands will be used.}
+}{%
+ \newcommand{\gradient}{\ensuremath{\nabla}}
+ \newcommand{\divergence}{\ensuremath{\nabla\bullet}}
+ \newcommand{\curl}{\ensuremath{\nabla\times}}
+ \newcommand{\laplacian}{\ensuremath{\msup{\nabla}{2}}}
+ \newcommand{\dalembertian}{\ensuremath{\Box}}
+}%
\newcommand{\diracdelta}[1]{\ensuremath{\boldsymbol{\delta}\quant{#1}}}
+\@ifpackageloaded{physymb}{%
+ \typeout{mandi: Package physymb detected. Its commands will be used.}
+}{%
\DeclareMathOperator{\asin}{\sin^{-1}}
\DeclareMathOperator{\acos}{\cos^{-1}}
\DeclareMathOperator{\atan}{\tan^{-1}}
@@ -930,10 +1027,10 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\DeclareMathOperator{\acsch}{\csch^{-1}}
\DeclareMathOperator{\acoth}{\coth^{-1}}
\DeclareMathOperator{\sgn}{sgn}
+}%
\DeclareMathOperator{\dex}{dex}
\newcommand{\eV}{\electronvolt}
\newcommand{\ev}{\electronvolt}
-\newcommand{\emf}{\ensuremath{\mathrm{emf}}}
\newcommand{\logb}[1][\relax]{\ensuremath{\log_{_{#1}}}}
\ifthenelse{\boolean{@optitalicvectors}}
{\newcommand{\cB}{\ensuremath{c\mskip -5.00mu B}}}
@@ -941,7 +1038,11 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\newcommand{\newpi}{\ensuremath{\pi\mskip -7.8mu\pi}}
\newcommand{\scripty}[1]{\ensuremath{\mathcalligra{#1}}}
\newcommandx{\flux}[1][1]{\ensuremath{\ssub{\Phi}{#1}}}
-\newcommand{\abs}[1]{\ensuremath{\left\lvert{#1}\right\rvert}}
+\@ifpackageloaded{physymb}{%
+ \typeout{mandi: Package physymb detected. Its commands will be used.}
+}{%
+ \newcommand{\abs}[1]{\ensuremath{\left\lvert{#1}\right\rvert}}
+}%
\newcommand{\magof}[1]{\ensuremath{\left\lVert{#1}\right\rVert}}
\newcommand{\dimsof}[1]{\ensuremath{\left[{#1}\right]}}
\newcommand{\unitsof}[1]{\ensuremath{\left[{#1}\right]_{_{u}}}}
@@ -1135,7 +1236,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
{#1}%
\end{minipage}}%
\vspace{\baselineskip}%
- \end{center}}%
+ \end{center}%
+}%
\newcommandx{\adjemptybox}[7][1=\hfill,2=white,3=black,4=black,5=0.90,6=,7=0.0,usedefault]
{\begin{center}
\fcolorbox{#3}{#2}{%
@@ -1145,7 +1247,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\vspace{#7\textheight}%
\end{minipage}}%
\vspace{\baselineskip}%
- \end{center}}%
+ \end{center}%
+}%
\newcommandx{\answerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.1,usedefault]
{\ifthenelse{\equal{#1}{}}
{\begin{center}%
@@ -1153,7 +1256,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\emptyanswer[#5][#6]}%
\vspace{\baselineskip}%
\end{center}}%
- {\emptybox[#1][#2][#3][#4][#5][#6]}}%
+ {\emptybox[#1][#2][#3][#4][#5][#6]}%
+}%
\newcommandx{\adjanswerbox}[7][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.1,7=0.0,
usedefault]
{\ifthenelse{\equal{#1}{}}%
@@ -1162,7 +1266,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\emptyanswer[#5][#6]}%
\vspace{\baselineskip}%
\end{center}}%
- {\adjemptybox[#1][#2][#3][#4][#5][#6][#7]}}%
+ {\adjemptybox[#1][#2][#3][#4][#5][#6][#7]}%
+}%
\newcommandx{\smallanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.10,
usedefault]
{\ifthenelse{\equal{#1}{}}
@@ -1171,7 +1276,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\emptyanswer[#5][#6]}%
\vspace{\baselineskip}%
\end{center}}%
- {\emptybox[#1][#2][#3][#4][#5][#6]}}%
+ {\emptybox[#1][#2][#3][#4][#5][#6]}%
+}%
\newcommandx{\mediumanswerbox}[6][1=\hfill,2=white,3=black,4=black,5=0.90,6=0.20,
usedefault]{%
\ifthenelse{\equal{#1}{}}
@@ -1245,7 +1351,8 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\emptyanswer[#5][#6]}%
\vspace{\baselineskip}%
\end{center}}%
- {\emptybox[#1][#2][#3][#4][#5][#6]}}%
+ {\emptybox[#1][#2][#3][#4][#5][#6]}%
+}%
\mdfdefinestyle{miinstructornotestyle}{%
hidealllines=false, skipbelow=\baselineskip, skipabove=\baselineskip,
leftmargin=40pt, rightmargin=40pt, linewidth=1, roundcorner=10,
@@ -1331,7 +1438,7 @@ a^x \approx 1 + x \ln{a} + \frac{(x \ln a)^2}{2!} + \frac{(x \ln a)^3}{3!} + \ld
\BODY
\end{align}
\end{mdframed}
-}
+}%
\newcommand{\checkpoint}{%
\vspace{1cm}\begin{center}|--------- CHECKPOINT ---------|\end{center}}%
\newcommand{\image}[2]{%