| 1 |
% \iffalse |
| 2 |
% |
| 3 |
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
| 4 |
%<package>\ProvidesPackage{cool} |
| 5 |
%<package> [2023/05/03 v1.35 COntent Oriented LaTeX] |
| 6 |
%<package>\RequirePackage{ifthen} |
| 7 |
%<package>\RequirePackage{coollist} |
| 8 |
%<package>\RequirePackage{coolstr} |
| 9 |
%<package>\RequirePackage{forloop} |
| 10 |
%<package>\RequirePackage{amsmath} |
| 11 |
%<package>\RequirePackage{amssymb} |
| 12 |
%<package>\RequirePackage{bbm} |
| 13 |
% |
| 14 |
% Update on 2023/05/03 purely to clarify the license; no code changes. |
| 15 |
% This package is released under the GNU LGPL. |
| 16 |
% |
| 17 |
%<*driver> |
| 18 |
\documentclass{ltxdoc} |
| 19 |
\usepackage{cool} |
| 20 |
\usepackage[bbgreekl]{mathbbol} |
| 21 |
\usepackage{url} |
| 22 |
\EnableCrossrefs |
| 23 |
\CodelineIndex |
| 24 |
\RecordChanges |
| 25 |
\begin{document} |
| 26 |
\DocInput{cool.dtx} |
| 27 |
\end{document} |
| 28 |
%</driver> |
| 29 |
% \fi |
| 30 |
% |
| 31 |
% \CheckSum{3591} |
| 32 |
% |
| 33 |
%% \CharacterTable |
| 34 |
%% {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 |
| 35 |
%% Lower-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 |
| 36 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 37 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 38 |
%% Dollar \$ Percent \% Ampersand \& |
| 39 |
%% Acute accent \' Left paren \( Right paren \) |
| 40 |
%% Asterisk \* Plus \+ Comma \, |
| 41 |
%% Minus \- Point \. Solidus \/ |
| 42 |
%% Colon \: Semicolon \; Less than \< |
| 43 |
%% Equals \= Greater than \> Question mark \? |
| 44 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 45 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 46 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 47 |
%% Right brace \} Tilde \~} |
| 48 |
% |
| 49 |
% \changes{v0}{2005/07/20}{pre-Initial version [tenative edition]} |
| 50 |
% \changes{v1.0}{2005/08/27}{Initial Release} |
| 51 |
% \changes{v1.1}{2006/03/19}{Added listlenstore to package to allow storing of the list length} |
| 52 |
% \changes{v1.2}{2006/09/17}{Split off the list, string, and forloop parts to separate packages} |
| 53 |
% \changes{v1.3}{2006/10/07}{Redefined the {\tt in*} commands to have a {\tt mathopen} before the {\tt left}. Added {\tt IntegrateDifferentialDSymb} and {\tt DSymb} options for {\tt Integrate} and {\tt D}. Added {\tt IdentityMatrixSymb} for {\tt IdentityMatrix} and changed the default to display a double-struck $1$. Added {\tt ESymb}, {\tt ISymb}, {\tt PISymb}, and {\tt EulerGammaSymb} for fundamental constants} |
| 54 |
% \changes{v1.35}{2006/12/29}{Adjusted package to be compatible with new \textsf{coolstr}} |
| 55 |
% |
| 56 |
% \GetFileInfo{cool.sty} |
| 57 |
% |
| 58 |
% \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ ,\!,\(,\),\,} |
| 59 |
% \DoNotIndex{\@ne,\expandafter} |
| 60 |
% \DoNotIndex{\advance,\begingroup,\catcode,\closein} |
| 61 |
% \DoNotIndex{\newcommand,\renewcommand,\providecommand} |
| 62 |
% \DoNotIndex{\closeout,\day,\def,\edef,\gdef,\let,\empty,\endgroup} |
| 63 |
% \DoNotIndex{\newcounter,\providecounter,\addtocounter,\setcounter,\stepcounter,\value,\arabic} |
| 64 |
% \DoNotIndex{\if,\fi,\ifthenelse,\else,\setboolean,\boolean,\newboolean,\provideboolean,\equal,\AND,\OR,\NOT,\whiledo} |
| 65 |
% \DoNotIndex{\ifcase,\ifcat,\or,\else} |
| 66 |
% \DoNotIndex{\par,\parbox,\mbox,\hbox,\begin,\end,\nabla,\partial} |
| 67 |
% \DoNotIndex{\overline,\bar,\small,\tiny,\mathchoice,\scriptsize,\textrm,\texttt} |
| 68 |
% \DoNotIndex{\alpha,\beta,\gamma,\epsilon,\varepsilon,\delta,\zeta,\eta,\theta,\vartheta,\iota,\kappa,\lambda,\mu,\nu} |
| 69 |
% \DoNotIndex{\xi,\omicron,\pi,\varpi,\rho,\varrho,\sigma,\tau,\upsilon,\phi,\varphi,\chi,\psi,\omega} |
| 70 |
% \DoNotIndex{\Delta,\Gamma,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Phi,\Psi,\Omega} |
| 71 |
% \DoNotIndex{\digamma,\lceil,\rceil,\lfloor,\rfloor,\left,\right,\inp,\inb,\inbr,\inap,\nop} |
| 72 |
% \DoNotIndex{\sum,\prod,\int,\log,\ln,\exp,\sin,\cos,\tan,\csc,\sec,\cot,\arcsin,\arccos,\arctan,\det} |
| 73 |
% \DoNotIndex{\sinh,\cosh,\tanh,\csch,\sech,\coth,\arcsinh,\arccosh,\arctanh} |
| 74 |
% \DoNotIndex{\mod,\max,\min,\gcd,\lcm,\wp,\arg,\dots,\infty,} |
| 75 |
% \DoNotIndex{\frac,\binom,\braket,\@@atop} |
| 76 |
% \DoNotIndex{\cdot,\ldots,\tilde,\times,\dagger,\relax} |
| 77 |
% \DoNotIndex{\mathbb,\roman,\bf,\mathord,\cal,\DeclareMathOperator,\PackageError,\PackageWarning} |
| 78 |
% \DoNotIndex{\csname,\endcsname,\ifx,\ifnum} |
| 79 |
% \DoNotIndex{\COOL@Hypergeometric@pq,\COOL@Hypergeometric@pq@ab@value,\hideOnSF,\COOL@decide@paren} |
| 80 |
% \DoNotIndex{\COOL@decide@indicies} |
| 81 |
% \DoNotIndex{\mod,\bmod,\pmod,\pod,\operatorname} |
| 82 |
% \DoNotIndex{\forLoop} |
| 83 |
% \DoNotIndex{ |
| 84 |
% \COOL@notation@AiryAiParen, |
| 85 |
% \COOL@notation@AiryBiParen, |
| 86 |
% \COOL@notation@AppellFOneParen, |
| 87 |
% \COOL@notation@ArcCoshParen, |
| 88 |
% \COOL@notation@ArcCosParen, |
| 89 |
% \COOL@notation@ArcCothParen, |
| 90 |
% \COOL@notation@ArcCotParen, |
| 91 |
% \COOL@notation@ArcCschParen, |
| 92 |
% \COOL@notation@ArcCscParen, |
| 93 |
% \COOL@notation@ArcSechParen, |
| 94 |
% \COOL@notation@ArcSecParen, |
| 95 |
% \COOL@notation@ArcSinhParen, |
| 96 |
% \COOL@notation@ArcSinParen, |
| 97 |
% \COOL@notation@ArcTanhParen, |
| 98 |
% \COOL@notation@ArcTanParen, |
| 99 |
% \COOL@notation@ArithGeoMeanParen, |
| 100 |
% \COOL@notation@AssocLegendrePParen, |
| 101 |
% \COOL@notation@AssocLegendreQParen, |
| 102 |
% \COOL@notation@BernoulliParen, |
| 103 |
% \COOL@notation@BernoulliBParen, |
| 104 |
% \COOL@notation@BesselIParen, |
| 105 |
% \COOL@notation@BesselJParen, |
| 106 |
% \COOL@notation@BesselKParen, |
| 107 |
% \COOL@notation@BesselYParen, |
| 108 |
% \COOL@notation@BetaParen, |
| 109 |
% \COOL@notation@BetaRegularizedParen, |
| 110 |
% \COOL@notation@CarmichaelLambdaParen, |
| 111 |
% \COOL@notation@ChebyshevTParen, |
| 112 |
% \COOL@notation@ChebyshevUParen, |
| 113 |
% \COOL@notation@ConjugateParen, |
| 114 |
% \COOL@notation@CoshIntParen, |
| 115 |
% \COOL@notation@CoshParen, |
| 116 |
% \COOL@notation@CosIntParen, |
| 117 |
% \COOL@notation@CosParen, |
| 118 |
% \COOL@notation@CothParen, |
| 119 |
% \COOL@notation@CotParen, |
| 120 |
% \COOL@notation@CschParen, |
| 121 |
% \COOL@notation@CscParen, |
| 122 |
% \COOL@notation@CyclotomicCParen, |
| 123 |
% \COOL@notation@DaggerParen, |
| 124 |
% \COOL@notation@DedekindEtaParen, |
| 125 |
% \COOL@notation@DetParen, |
| 126 |
% \COOL@notation@DiGammaParen, |
| 127 |
% \COOL@notation@DiracDeltaParen, |
| 128 |
% \COOL@notation@DivisorsParen, |
| 129 |
% \COOL@notation@DivisorSigmaParen, |
| 130 |
% \COOL@notation@DiscreteDeltaParen, |
| 131 |
% \COOL@notation@EllipticEParen, |
| 132 |
% \COOL@notation@EllipticExpParen, |
| 133 |
% \COOL@notation@EllipticFParen, |
| 134 |
% \COOL@notation@EllipticKParen, |
| 135 |
% \COOL@notation@EllipticLogParen, |
| 136 |
% \COOL@notation@EllipticNomeQInvParen, |
| 137 |
% \COOL@notation@EllipticNomeQParen, |
| 138 |
% \COOL@notation@EllipticPiParen, |
| 139 |
% \COOL@notation@EllipticThetaParen, |
| 140 |
% \COOL@notation@ErfcInvParen, |
| 141 |
% \COOL@notation@ErfcParen, |
| 142 |
% \COOL@notation@ErfInvParen, |
| 143 |
% \COOL@notation@ErfiParen, |
| 144 |
% \COOL@notation@ErfParen, |
| 145 |
% \COOL@notation@EulerParen, |
| 146 |
% \COOL@notation@EulerEParen, |
| 147 |
% \COOL@notation@EulerPhiParen, |
| 148 |
% \COOL@notation@ExpIntEiParen, |
| 149 |
% \COOL@notation@ExpIntEParen, |
| 150 |
% \COOL@notation@ExpParen, |
| 151 |
% \COOL@notation@ExtendedGCDParen, |
| 152 |
% \COOL@notation@FactorIntegerParen, |
| 153 |
% \COOL@notation@FibonacciParen, |
| 154 |
% \COOL@notation@FibonacciFParen, |
| 155 |
% \COOL@notation@FractionalPartParen, |
| 156 |
% \COOL@notation@FresnelCParen, |
| 157 |
% \COOL@notation@FresnelSParen, |
| 158 |
% \COOL@notation@GammaFuncParen, |
| 159 |
% \COOL@notation@GammaRegularizedParen, |
| 160 |
% \COOL@notation@GCDParen, |
| 161 |
% \COOL@notation@GegenbauerCParen, |
| 162 |
% \COOL@notation@HeavisideStepParen, |
| 163 |
% \COOL@notation@HermiteHParen, |
| 164 |
% \COOL@notation@HypergeometricParen, |
| 165 |
% \COOL@notation@IdentityMatrixParen, |
| 166 |
% \COOL@notation@ImagParen, |
| 167 |
% \COOL@notation@IntegerPartParen, |
| 168 |
% \COOL@notation@InverseBetaRegularizedParen, |
| 169 |
% \COOL@notation@InverseGammaRegularizedParen, |
| 170 |
% \COOL@notation@JacobiAmplitudeParen, |
| 171 |
% \COOL@notation@JacobiCDInvParen, |
| 172 |
% \COOL@notation@JacobiCDParen, |
| 173 |
% \COOL@notation@JacobiCNInvParen, |
| 174 |
% \COOL@notation@JacobiCNParen, |
| 175 |
% \COOL@notation@JacobiCSInvParen, |
| 176 |
% \COOL@notation@JacobiCSParen, |
| 177 |
% \COOL@notation@JacobiDCInvParen, |
| 178 |
% \COOL@notation@JacobiDCParen, |
| 179 |
% \COOL@notation@JacobiDNInvParen, |
| 180 |
% \COOL@notation@JacobiDNParen, |
| 181 |
% \COOL@notation@JacobiDSInvParen, |
| 182 |
% \COOL@notation@JacobiDSParen, |
| 183 |
% \COOL@notation@JacobiNCInvParen, |
| 184 |
% \COOL@notation@JacobiNCParen, |
| 185 |
% \COOL@notation@JacobiNDInvParen, |
| 186 |
% \COOL@notation@JacobiNDParen, |
| 187 |
% \COOL@notation@JacobiNSInvParen, |
| 188 |
% \COOL@notation@JacobiNSParen, |
| 189 |
% \COOL@notation@JacobiPParen, |
| 190 |
% \COOL@notation@JacobiSCInvParen, |
| 191 |
% \COOL@notation@JacobiSCParen, |
| 192 |
% \COOL@notation@JacobiSDInvParen, |
| 193 |
% \COOL@notation@JacobiSDParen, |
| 194 |
% \COOL@notation@JacobiSNInvParen, |
| 195 |
% \COOL@notation@JacobiSNParen, |
| 196 |
% \COOL@notation@JacobiZetaParen, |
| 197 |
% \COOL@notation@KleinInvariantJParen, |
| 198 |
% \COOL@notation@LaugerreLParen, |
| 199 |
% \COOL@notation@LCMParen, |
| 200 |
% \COOL@notation@LegendrePParen, |
| 201 |
% \COOL@notation@LegendreQParen, |
| 202 |
% \COOL@notation@LerchPhiParen, |
| 203 |
% \COOL@notation@LogGammaParen, |
| 204 |
% \COOL@notation@LogIntParen, |
| 205 |
% \COOL@notation@LogParen, |
| 206 |
% \COOL@notation@MathieuCharacteristicAParen, |
| 207 |
% \COOL@notation@MathieuCharacteristicBParen, |
| 208 |
% \COOL@notation@MathieuCharacteristicExponentParen, |
| 209 |
% \COOL@notation@MathieuSParen, |
| 210 |
% \COOL@notation@MathieuCParen, |
| 211 |
% \COOL@notation@MoebiusMuParen, |
| 212 |
% \COOL@notation@MaxParen, |
| 213 |
% \COOL@notation@MinParen, |
| 214 |
% \COOL@notation@ModularLambdaParen, |
| 215 |
% \COOL@notation@NevilleThetaCParen, |
| 216 |
% \COOL@notation@NevilleThetaDParen, |
| 217 |
% \COOL@notation@NevilleThetaNParen, |
| 218 |
% \COOL@notation@NevilleThetaSParen, |
| 219 |
% \COOL@notation@NielsenPolyLogParen, |
| 220 |
% \COOL@notation@PartitionsPParen, |
| 221 |
% \COOL@notation@PartitionsQParen, |
| 222 |
% \COOL@notation@PolyGammaParen, |
| 223 |
% \COOL@notation@PolyLogParen, |
| 224 |
% \COOL@notation@PrimeParen, |
| 225 |
% \COOL@notation@PrimePiParen, |
| 226 |
% \COOL@notation@ProductLogParen, |
| 227 |
% \COOL@notation@QuotientParen, |
| 228 |
% \COOL@notation@RealParen, |
| 229 |
% \COOL@notation@RegHypergeometricParen, |
| 230 |
% \COOL@notation@RiemannSiegelThetaParen, |
| 231 |
% \COOL@notation@RiemannSiegelZParen, |
| 232 |
% \COOL@notation@SechParen, |
| 233 |
% \COOL@notation@SecParen, |
| 234 |
% \COOL@notation@SignParen, |
| 235 |
% \COOL@notation@SinhIntParen, |
| 236 |
% \COOL@notation@SinhParen, |
| 237 |
% \COOL@notation@SinIntParen, |
| 238 |
% \COOL@notation@SinParen, |
| 239 |
% \COOL@notation@SphericalHarmonicYParen, |
| 240 |
% \COOL@notation@StruveHParen, |
| 241 |
% \COOL@notation@StruveLParen, |
| 242 |
% \COOL@notation@TanhParen, |
| 243 |
% \COOL@notation@TanParen, |
| 244 |
% \COOL@notation@TransposeParen, |
| 245 |
% \COOL@notation@TrParen, |
| 246 |
% \COOL@notation@WeierstrassPInvParen, |
| 247 |
% \COOL@notation@WeierstrassPParen, |
| 248 |
% \COOL@notation@WeierstrassZetaParen, |
| 249 |
% \COOL@notation@ZetaParen} |
| 250 |
% \DoNotIndex{\COOL@notation@KroneckerDeltaIndicies,\COOL@notation@LeviCivitaIndicies} |
| 251 |
% \DoNotIndex{\COOL@notation@SphericalHarmonicParen,\COOL@notation@SphericalHarmonicSymb} |
| 252 |
% \DoNotIndex{\COOL@notation@WeierstrassPHalfPeriodValuesDisplay,\COOL@notation@WeierstrassZetaHalfPeriodValuesDisplay} |
| 253 |
% \DoNotIndex{ |
| 254 |
% \COOL@Beta@arg@i, |
| 255 |
% \COOL@Beta@arg@ii, |
| 256 |
% \COOL@Beta@arg@iii, |
| 257 |
% \COOL@Beta@arg@iv, |
| 258 |
% \COOL@BetaRegularized@arg@i, |
| 259 |
% \COOL@BetaRegularized@arg@ii, |
| 260 |
% \COOL@BetaRegularized@arg@iii, |
| 261 |
% \COOL@BetaRegularized@arg@iv, |
| 262 |
% \COOL@EllipticE@arg@i, |
| 263 |
% \COOL@EllipticE@arg@ii, |
| 264 |
% \COOL@EllipticF@arg@i, |
| 265 |
% \COOL@EllipticF@arg@ii, |
| 266 |
% \COOL@EllipticPi@arg@i, |
| 267 |
% \COOL@EllipticPi@arg@ii, |
| 268 |
% \COOL@EllipticPi@arg@iii, |
| 269 |
% \COOL@Euler@arg@i, |
| 270 |
% \COOL@Euler@arg@ii, |
| 271 |
% \COOL@Fibonacci@arg@i, |
| 272 |
% \COOL@Fibonacci@arg@ii, |
| 273 |
% \COOL@InverseBetaRegularized@arg@i, |
| 274 |
% \COOL@InverseBetaRegularized@arg@ii, |
| 275 |
% \COOL@InverseBetaRegularized@arg@iii, |
| 276 |
% \COOL@InverseBetaRegularized@arg@iv, |
| 277 |
% \COOL@LegendreP@arg@i, |
| 278 |
% \COOL@LegendreP@arg@ii, |
| 279 |
% \COOL@LegendreP@arg@iii, |
| 280 |
% \COOL@LegendreP@arg@iv, |
| 281 |
% \COOL@LegendreQ@arg@i, |
| 282 |
% \COOL@LegendreQ@arg@ii, |
| 283 |
% \COOL@LegendreQ@arg@iii, |
| 284 |
% \COOL@LegendreQ@arg@iv, |
| 285 |
% \COOL@PolyLog@arg@i, |
| 286 |
% \COOL@PolyLog@arg@ii, |
| 287 |
% \COOL@PolyLog@arg@iii, |
| 288 |
% \COOL@WeiSigma@arg@z@i, |
| 289 |
% \COOL@WeiSigma@arg@z@ii, |
| 290 |
% \COOL@Zeta@arg@i, |
| 291 |
% \COOL@Zeta@arg@ii} |
| 292 |
% \DoNotIndex{ |
| 293 |
% \COOL@notation@AssocLegendrePSymb, |
| 294 |
% \COOL@notation@AssocLegendreQSymb, |
| 295 |
% \COOL@notation@BesselISymb, |
| 296 |
% \COOL@notation@BesselJSymb, |
| 297 |
% \COOL@notation@BesselKSymb, |
| 298 |
% \COOL@notation@BesselYSymb, |
| 299 |
% \COOL@notation@ChebyshevTSymb, |
| 300 |
% \COOL@notation@ChebyshevUSymb, |
| 301 |
% \COOL@notation@EllipticESymb, |
| 302 |
% \COOL@notation@EllipticFSymb, |
| 303 |
% \COOL@notation@EllipticKSymb, |
| 304 |
% \COOL@notation@EllipticPiSymb, |
| 305 |
% \COOL@notation@GegenbauerCSymb, |
| 306 |
% \COOL@notation@HermiteHSymb, |
| 307 |
% \COOL@notation@HypergeometricSymb, |
| 308 |
% \COOL@notation@HypergeometricUSymb, |
| 309 |
% \COOL@notation@JacobiPSymb, |
| 310 |
% \COOL@notation@JacobiZetaSymb, |
| 311 |
% \COOL@notation@LaugerreLSymb, |
| 312 |
% \COOL@notation@LegendrePSymb, |
| 313 |
% \COOL@notation@LegendreQSymb, |
| 314 |
% \COOL@notation@LogBaseESymb, |
| 315 |
% \COOL@notation@MeijerGSymb, |
| 316 |
% \COOL@notation@RegHypergeometricSymb, |
| 317 |
% \COOL@notation@SphericalHarmonicYSymb} |
| 318 |
% \DoNotIndex{\COOL@wrt@temp,\COOL@temp@D@top@power,\COOL@temp@D@top,\COOL@temp@D@result,\COOL@temp@D@bot} |
| 319 |
% \DoNotIndex{\COOL@power@temp} |
| 320 |
% \DoNotIndex{\listval,\liststore,\isint,\isnumeric} |
| 321 |
% \DoNotIndex{ |
| 322 |
% \COOL@list@temp@i, |
| 323 |
% \COOL@list@temp@ii, |
| 324 |
% \COOL@list@temp@iii} |
| 325 |
% \DoNotIndex{ |
| 326 |
% \COOL@MeijerG@sniffer, |
| 327 |
% \COOL@MeijerG@sniffer@end} |
| 328 |
% \DoNotIndex{\COOL@Multinomial@tempa} |
| 329 |
% \DoNotIndex{ |
| 330 |
% \COOL@notation@ArcTrig, |
| 331 |
% \COOL@notation@Conjugate, |
| 332 |
% \COOL@notation@DShorten, |
| 333 |
% \COOL@notation@LogShowBase} |
| 334 |
% \DoNotIndex{ |
| 335 |
% \COOL@notation@DDisplayFunc, |
| 336 |
% \COOL@notation@DetDisplay, |
| 337 |
% \COOL@notation@IntegrateDisplayFunc, |
| 338 |
% \COOL@notation@ModDisplay} |
| 339 |
% \DoNotIndex{ |
| 340 |
% \COOL@notation@KroneckerDeltaUseComma, |
| 341 |
% \COOL@notation@LeviCivitaUseComma} |
| 342 |
% |
| 343 |
% \title{The \textsf{cool} package\thanks{This document |
| 344 |
% corresponds to \textsf{cool}~\fileversion, |
| 345 |
% dated~\filedate.}} |
| 346 |
% \author{nsetzer} |
| 347 |
% |
| 348 |
% \maketitle |
| 349 |
% |
| 350 |
% \setcounter{IndexColumns}{2} |
| 351 |
% \StopEventually{\PrintChanges\PrintIndex} |
| 352 |
% |
| 353 |
% |
| 354 |
% This is the \textsf{cool} package: a COntent Oriented \LaTeX{} package. That is, it is designed to give \LaTeX{} |
| 355 |
% commands the ability to contain the mathematical meaning while retaining the typesetting versatility. |
| 356 |
% |
| 357 |
% Please note that there are examples of use of each of the defined commands at the location where they are defined. |
| 358 |
% |
| 359 |
% This package requires the following, non-standard \LaTeX{} packages (all of which are available on \url{www.ctan.org}): |
| 360 |
% \textsf{coolstr}, |
| 361 |
% \textsf{coollist}, |
| 362 |
% \textsf{forloop} |
| 363 |
% |
| 364 |
% |
| 365 |
% |
| 366 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 367 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 368 |
%\section{Implementation} |
| 369 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 370 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 371 |
% |
| 372 |
% \begin{macrocode} |
| 373 |
\newcounter{COOL@ct} %just a general counter |
| 374 |
\newcounter{COOL@ct@}%just a general counter |
| 375 |
% \end{macrocode} |
| 376 |
% |
| 377 |
% |
| 378 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 379 |
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 380 |
%\subsection{Parenthesis} |
| 381 |
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 382 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 383 |
% |
| 384 |
% \begin{macrocode} |
| 385 |
\newcommand{\inp}[2][0cm]{\mathopen{}\left(#2\parbox[h][#1]{0cm}{}\right)} |
| 386 |
% in parentheses () |
| 387 |
\newcommand{\inb}[2][0cm]{\mathopen{}\left[#2\parbox[h][#1]{0cm}{}\right]} |
| 388 |
% in brackets [] |
| 389 |
\newcommand{\inbr}[2][0cm]{\mathopen{}\left\{#2\parbox[h][#1]{0cm}{}\right\}} |
| 390 |
% in braces {} |
| 391 |
\newcommand{\inap}[2][0cm]{\mathopen{}\left<{#2}\parbox[h][#1]{0cm}{}\right>} |
| 392 |
% in angular parentheses <> |
| 393 |
\newcommand{\nop}[1]{\mathopen{}\left.{#1}\right.} |
| 394 |
% no parentheses |
| 395 |
% \end{macrocode} |
| 396 |
% |
| 397 |
% |
| 398 |
% \begin{macro}{\COOL@decide@paren} |
| 399 |
% |\COOL@decide@paren[|\meta{parenthesis type}|]{|\meta{function name}|}{|\meta{contained text}|}|. |
| 400 |
% |
| 401 |
% \noindent Since the handling of parentheses is something that will be common to many elements this |
| 402 |
% function will take care of it. |
| 403 |
% |
| 404 |
% If the optional argument is given, |\COOL@notation@|\meta{function name}|Paren| is ignored and |
| 405 |
% \meta{parenthesis type} is used |
| 406 |
% |
| 407 |
% \meta{parenthesis type} and |\COOL@notation@|\meta{function name}|Paren| must be one of |none|, |p| for |()|, |b| for |[]|, |br| for |{}|, |ap| for \meta{}, |inv| for |\left.\right.| |
| 408 |
% \begin{macrocode} |
| 409 |
\let\COOL@decide@paren@no@type=\relax |
| 410 |
\newcommand{\COOL@decide@paren}[3][\COOL@decide@paren@no@type]{% |
| 411 |
\ifthenelse{ \equal{#1}{\COOL@decide@paren@no@type} }% |
| 412 |
{% |
| 413 |
\def\COOL@decide@paren@type{\csname COOL@notation@#2Paren\endcsname}% |
| 414 |
}% |
| 415 |
% Else |
| 416 |
{% |
| 417 |
\def\COOL@decide@paren@type{#1}% |
| 418 |
}% |
| 419 |
\ifthenelse{ \equal{\COOL@decide@paren@type}{none} }% |
| 420 |
{% |
| 421 |
#3% |
| 422 |
}% |
| 423 |
% Else |
| 424 |
{% |
| 425 |
\ifthenelse{ \equal{\COOL@decide@paren@type}{p} }% |
| 426 |
{% |
| 427 |
\inp{#3}% |
| 428 |
}% |
| 429 |
% Else |
| 430 |
{% |
| 431 |
\ifthenelse{ \equal{\COOL@decide@paren@type}{b} }% |
| 432 |
{% |
| 433 |
\inb{#3}% |
| 434 |
}% |
| 435 |
% Else |
| 436 |
{% |
| 437 |
\ifthenelse{ \equal{\COOL@decide@paren@type}{br} }% |
| 438 |
{% |
| 439 |
\inbr{#3}% |
| 440 |
}% |
| 441 |
% Else |
| 442 |
{% |
| 443 |
\ifthenelse{ \equal{\COOL@decide@paren@type}{ap} }% |
| 444 |
{% |
| 445 |
\inap{#3}% |
| 446 |
}% |
| 447 |
% Else |
| 448 |
{% |
| 449 |
\ifthenelse{ \equal{\COOL@decide@paren@type}{inv} }% |
| 450 |
{% |
| 451 |
\nop{#3}% |
| 452 |
}% |
| 453 |
% Else |
| 454 |
{% |
| 455 |
\PackageError{cool}{Invalid Parenthesis Option}% |
| 456 |
{*Paren can only be `none', `p', `b', `br', `ap', `inv'}% |
| 457 |
}% |
| 458 |
}% |
| 459 |
}% |
| 460 |
}% |
| 461 |
}% |
| 462 |
}% |
| 463 |
} |
| 464 |
% \end{macrocode} |
| 465 |
% \end{macro} |
| 466 |
% |
| 467 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 468 |
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 469 |
%\subsection{Indicies} |
| 470 |
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 471 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 472 |
% |
| 473 |
% \begin{macro}{\COOL@decide@indicies} |
| 474 |
% |\COOL@decide@indicies|\marg{function name}\marg{local indication}\marg{indicies} |
| 475 |
% |
| 476 |
% \noindent Since up or down indicies can be as common as the parenthesis decision, this macro is the solution. |
| 477 |
% |
| 478 |
% \meta{local indication} must be either |u| or |d| |
| 479 |
% |
| 480 |
% \meta{indicies} is very likely to be required to be a comma separated list in the near future |
| 481 |
% |
| 482 |
% the options for indicies are |
| 483 |
% |
| 484 |
% \begin{tabular}{ll} |
| 485 |
% |local| & allow the indicies to be decided by an optional argument to \\ |
| 486 |
% & the function (such as |\LeviCivita[u]{i j}|) \\ |
| 487 |
% |up| & force the indicies to appear as superscript \\ |
| 488 |
% |down| & force the indicies to appear as subscript \\ |
| 489 |
% \end{tabular} |
| 490 |
% |
| 491 |
% \begin{macrocode} |
| 492 |
\newcommand{\COOL@decide@indicies}[3]{% |
| 493 |
\def\COOL@decide@indicies@placement% |
| 494 |
{\csname COOL@notation@#1Indicies\endcsname}% |
| 495 |
\ifthenelse{\equal{\COOL@decide@indicies@placement}{local}}% |
| 496 |
{% |
| 497 |
\ifthenelse{\equal{#2}{u}}% |
| 498 |
{^{#3}}% |
| 499 |
{_{#3}}% |
| 500 |
}% |
| 501 |
% Else |
| 502 |
{% |
| 503 |
\ifthenelse{\equal{\COOL@decide@indicies@placement}{up}}% |
| 504 |
{% |
| 505 |
{^{#3}}% |
| 506 |
}% |
| 507 |
% Else |
| 508 |
{% |
| 509 |
\ifthenelse{\equal{\COOL@decide@indicies@placement}{down}}% |
| 510 |
{% |
| 511 |
{_{#3}}% |
| 512 |
}% |
| 513 |
% else |
| 514 |
{% |
| 515 |
\PackageError{cool}{Invalid Option Sent}% |
| 516 |
{#1Indices can only be 'up', 'down', or 'local'}% |
| 517 |
}% |
| 518 |
}% |
| 519 |
}% |
| 520 |
} |
| 521 |
% \end{macrocode} |
| 522 |
% \end{macro} |
| 523 |
% |
| 524 |
% |
| 525 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 526 |
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 527 |
%\subsection{COntent Oriented LaTeX (COOL)} |
| 528 |
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 529 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 530 |
% |
| 531 |
% \begin{macro}{\Style} |
| 532 |
% |\Style{|\meta{options}|}| sets the style of the output (how to notate particular functions). |
| 533 |
% \meta{options} is a comma delimited list of the form \meta{key}|=|\meta{value}, where \meta{key} is the \emph{long} |
| 534 |
% form of the command name without the preceeding backslash (i.e. |Integrate| and not |Int| or |\Int|). |
| 535 |
% The list can be in any order and need only contain the styles that the user desires to set. |
| 536 |
% |
| 537 |
% There can be multiple |\Style| commands within any document---the styled output of the command depends on the |
| 538 |
% last |\Style| command to have specified its style. |
| 539 |
% |
| 540 |
% For a list of styling options for a command, see the code where the command is defined |
| 541 |
% |
| 542 |
% \begin{macrocode} |
| 543 |
\newcommand{\Style}[1]{% |
| 544 |
\COOL@keyeater#1,\COOL@keystop\COOL@keyend% |
| 545 |
} |
| 546 |
\newcommand{\COOL@keystop}{@@@}% |
| 547 |
\def\COOL@keyeater#1=#2,#3\COOL@keyend{% |
| 548 |
\ifx#3\COOL@keystop% |
| 549 |
\expandafter\gdef\csname COOL@notation@#1\endcsname{#2}% |
| 550 |
\else% |
| 551 |
\expandafter\gdef\csname COOL@notation@#1\endcsname{#2}% |
| 552 |
\COOL@keyeater#3\COOL@keyend% |
| 553 |
\fi% |
| 554 |
} |
| 555 |
% \end{macrocode} |
| 556 |
% \end{macro} |
| 557 |
% |
| 558 |
% |
| 559 |
% |
| 560 |
% \begin{macro}{\UseStyleFile} |
| 561 |
% Since notational style should be kept consistent and will likely need to span several documents, use this command |
| 562 |
% to input a notation style file that has previously been prepared. (to be implemented in a future release) |
| 563 |
% \begin{macrocode} |
| 564 |
\newcommand{\UseStyleFile}[1]{} |
| 565 |
% \end{macrocode} |
| 566 |
% \end{macro} |
| 567 |
% |
| 568 |
% |
| 569 |
% |
| 570 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 571 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 572 |
% \subsubsection{Fundamental Constants} |
| 573 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 574 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 575 |
% |
| 576 |
% see \url{http://functions.wolfram.com/} for the definitions |
| 577 |
% \begin{macro}{\I} |
| 578 |
% The square root of minus 1, $\I = \sqrt{-1}$. |
| 579 |
% |
| 580 |
% |\Style{ISymb=\mathbbm{i}}| \Style{ISymb=\mathbbm{i}}, |\I| gives $\I$. \Style{ISymb=i} |
| 581 |
% \begin{macrocode} |
| 582 |
\newcommand{\COOL@notation@ISymb}{i} |
| 583 |
\newcommand{\I}{\COOL@notation@ISymb} |
| 584 |
% \end{macrocode} |
| 585 |
% \end{macro} |
| 586 |
% |
| 587 |
% \begin{macro}{\E} |
| 588 |
% Euler's constant and the base of the natural logarithm, $\E$. |
| 589 |
% |
| 590 |
%|\Style{ESymb=\mathbbm{e}}| \Style{ESymb=\mathbbm{e}}, |\E| gives $\E$. \Style{ESymb=e} |
| 591 |
% \begin{macrocode} |
| 592 |
\newcommand{\COOL@notation@ESymb}{e} |
| 593 |
\newcommand{\E}{\COOL@notation@ESymb} |
| 594 |
% \end{macrocode} |
| 595 |
% \end{macro} |
| 596 |
% |
| 597 |
% \begin{macro}{\PI} |
| 598 |
% Pi---the ratio of the circumference of a circle to its diameter, $\PI$. |
| 599 |
% |
| 600 |
% |\Style{PISymb=\bbpi}| \footnote{to get the `bbpi' symbol , you will need to use the package \textsf{mathbbol} and pass the \textsf{bbgreekl} option} \Style{PISymb=\bbpi}, |\PI| gives $\PI$. \Style{PISymb=\pi} |
| 601 |
% \begin{macrocode} |
| 602 |
\newcommand{\COOL@notation@PISymb}{\pi} |
| 603 |
\newcommand{\PI}{\COOL@notation@PISymb} |
| 604 |
% \end{macrocode} |
| 605 |
% \end{macro} |
| 606 |
% |
| 607 |
% \begin{macro}{\GoldenRatio} |
| 608 |
% The Golden Ratio, $\GoldenRatio$ |
| 609 |
% \begin{macrocode} |
| 610 |
\newcommand{\GoldenRatio}{\varphi} |
| 611 |
% \end{macrocode} |
| 612 |
% \end{macro} |
| 613 |
% |
| 614 |
% \begin{macro}{\EulerGamma} |
| 615 |
% Euler's Gamma constant, $\EulerGamma$. |
| 616 |
% |
| 617 |
%|\Style{EulerGammaSymb=\gamma_E}| \Style{EulerGammaSymb=\gamma_E}, |\EulerGamma| gives $\EulerGamma$ \Style{EulerGammaSymb=\gamma} |
| 618 |
% \begin{macrocode} |
| 619 |
\newcommand{\COOL@notation@EulerGammaSymb}{\gamma} |
| 620 |
\newcommand{\EulerGamma}{\COOL@notation@EulerGammaSymb} |
| 621 |
% \end{macrocode} |
| 622 |
% \end{macro} |
| 623 |
% |
| 624 |
% \begin{macro}{\Catalan} |
| 625 |
% Catalan constant, $\Catalan$ |
| 626 |
% \begin{macrocode} |
| 627 |
\newcommand{\Catalan}{C} |
| 628 |
% \end{macrocode} |
| 629 |
% \end{macro} |
| 630 |
% |
| 631 |
% \begin{macro}{\Glaisher} |
| 632 |
% Glaisher constant, $\Glaisher$ |
| 633 |
% \begin{macrocode} |
| 634 |
\newcommand{\Glaisher}{\mathord{\operatorname{Glaisher}}} |
| 635 |
% \end{macrocode} |
| 636 |
% \end{macro} |
| 637 |
% |
| 638 |
% \begin{macro}{\Khinchin} |
| 639 |
% Khinchin constant, $\Khinchin$ |
| 640 |
% \begin{macrocode} |
| 641 |
\newcommand{\Khinchin}{\mathord{\operatorname{Khinchin}}} |
| 642 |
% \end{macrocode} |
| 643 |
% \end{macro} |
| 644 |
% |
| 645 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 646 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 647 |
% \subsubsection{Symbols} |
| 648 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 649 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 650 |
% |
| 651 |
% \begin{macro}{\Infinity} |
| 652 |
% Infinity, $\Infinity$ |
| 653 |
% \begin{macrocode} |
| 654 |
\newcommand{\Infinity}{\infty} |
| 655 |
% \end{macrocode} |
| 656 |
% \end{macro} |
| 657 |
% |
| 658 |
% \begin{macro}{\Indeterminant} |
| 659 |
% An indeterminant quantity |
| 660 |
% \begin{macrocode} |
| 661 |
\newcommand{\Indeterminant}{% |
| 662 |
\mathchoice% |
| 663 |
{\mbox{\textrm>}}% |
| 664 |
{\mbox{\small>}}% |
| 665 |
{\mbox{\scriptsize>}}% |
| 666 |
{\mbox{\tiny>}}% |
| 667 |
} |
| 668 |
% \end{macrocode} |
| 669 |
% \end{macro} |
| 670 |
% |
| 671 |
% \begin{macro}{\DirectedInfinity} |
| 672 |
% \begin{macro}{\DirInfty} |
| 673 |
% Directed Infinity |\DirectedInfinity{|\meta{complex number}|}| or |\DirInfty{|\meta{complex number}|}| |
| 674 |
% \begin{macrocode} |
| 675 |
\newcommand{\DirectedInfinity}[1]{#1 \, \infty} |
| 676 |
\newcommand{\DirInfty}[1]{\DirectedInfinity{#1}} |
| 677 |
% \end{macrocode} |
| 678 |
% \end{macro} |
| 679 |
% \end{macro} |
| 680 |
% |
| 681 |
% \begin{macro}{\ComplexInfinity} |
| 682 |
% \begin{macro}{\CInfty} |
| 683 |
% Complex infinity, $\CInfty$ |
| 684 |
% \begin{macrocode} |
| 685 |
\newcommand{\ComplexInfinity}{\tilde{\infty}} |
| 686 |
\newcommand{\CInfty}{\ComplexInfinity} |
| 687 |
% \end{macrocode} |
| 688 |
% \end{macro} |
| 689 |
% \end{macro} |
| 690 |
% |
| 691 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 692 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 693 |
% \subsubsection{Exponential Functions} |
| 694 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 695 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 696 |
% |
| 697 |
% \begin{macro}{\Exp} |
| 698 |
% Exponential---for use when $\E^x$ won't suffice, $\Exp{x}$ |
| 699 |
% \begin{macrocode} |
| 700 |
\newcommand{\COOL@notation@ExpParen}{p} |
| 701 |
\newcommand{\Exp}[1] |
| 702 |
{% |
| 703 |
\exp\COOL@decide@paren{Exp}{#1}% |
| 704 |
} |
| 705 |
% \end{macrocode} |
| 706 |
% \end{macro} |
| 707 |
% |
| 708 |
% \begin{macro}{\Log} |
| 709 |
% Logarithm, |\Log{x}|. This function has several options to be set. The usual parentheses, then some |
| 710 |
% about the notation to be used for displaying the symbol. |
| 711 |
% \begin{macrocode} |
| 712 |
\newcommand{\COOL@notation@LogParen}{none} |
| 713 |
% \end{macrocode} |
| 714 |
% The following set the symbols: |
| 715 |
% |
| 716 |
% |LogBaseESymb| can be |ln| or |log|, indicating what symbol should be used for the natural logarithm. If set to |
| 717 |
% |log| then logarithms of base 10 are displayed as $\log_{10}$. |
| 718 |
% |
| 719 |
% |LogShowBase| can be either |at will| or |always| and decides whether or not one should show the base, as in |
| 720 |
% |log_b x|. If this option is set to |always| then |LogBaseESymb| is ignored. |
| 721 |
% |
| 722 |
% \begin{tabular}{lll} |
| 723 |
% |\Log{5}| & $\Log{5}$ & $\displaystyle \Log{5}$ \\ |
| 724 |
% |\Log[10]{5}| & $\Log[10]{5}$ & $\displaystyle \Log[10]{5}$ \\ |
| 725 |
% |\Log[4]{5}| & $\Log[4]{5}$ & $\displaystyle \Log[4]{5}$ \\ |
| 726 |
% |\Style{LogBaseESymb=log}|% |
| 727 |
% \Style{LogBaseESymb=log} \\ |
| 728 |
% |\Log{5}| & $\Log{5}$ & $\displaystyle \Log{5}$ \\ |
| 729 |
% |\Log[10]{5}| & $\Log[10]{5}$ & $\displaystyle \Log[10]{5}$ \\ |
| 730 |
% |\Log[4]{5}| & $\Log[4]{5}$ & $\displaystyle \Log[4]{5}$ \\ |
| 731 |
% |\Style{LogShowBase=always}|% |
| 732 |
% \Style{LogBaseESymb=ln}% |
| 733 |
% \Style{LogShowBase=always} \\ |
| 734 |
% |\Log{5}| & $\Log{5}$ & $\displaystyle \Log{5}$ \\ |
| 735 |
% |\Log[10]{5}| & $\Log[10]{5}$ & $\displaystyle \Log[10]{5}$ \\ |
| 736 |
% |\Log[4]{5}| & $\Log[4]{5}$ & $\displaystyle \Log[4]{5}$ \\ |
| 737 |
% |\Style{LogShowBase=at will}|% |
| 738 |
% \Style{LogShowBase=at will} \\ |
| 739 |
% |\Log{5}| & $\Log{5}$ & $\displaystyle \Log{5}$ \\ |
| 740 |
% |\Log[10]{5}| & $\Log[10]{5}$ & $\displaystyle \Log[10]{5}$ \\ |
| 741 |
% |\Log[4]{5}| & $\Log[4]{5}$ & $\displaystyle \Log[4]{5}$ \\ |
| 742 |
% |\Style{LogParen=p}|% |
| 743 |
% \Style{LogParen=p} \\ |
| 744 |
% |\Log[4]{5}| & $\Log[4]{5}$ & $\displaystyle \Log[4]{5}$ \\ |
| 745 |
% \end{tabular} |
| 746 |
% \begin{macrocode} |
| 747 |
\newcommand{\COOL@notation@LogBaseESymb}{ln}% 'ln', 'log' |
| 748 |
\newcommand{\COOL@notation@LogShowBase}{at will}% 'at will', 'always' |
| 749 |
\newcommand{\Log}[2][\E] |
| 750 |
{% |
| 751 |
\ifthenelse{ \equal{\COOL@notation@LogShowBase}{at will} }% |
| 752 |
{% |
| 753 |
\ifthenelse{ \equal{#1}{\E} }% |
| 754 |
{% |
| 755 |
\ifthenelse{ \equal{\COOL@notation@LogBaseESymb}{ln} }% |
| 756 |
{% |
| 757 |
\ln \COOL@decide@paren{Log}{#2}% |
| 758 |
}% |
| 759 |
% Else |
| 760 |
{% |
| 761 |
\ifthenelse{ \equal{\COOL@notation@LogBaseESymb}{log} }% |
| 762 |
{% |
| 763 |
\log \COOL@decide@paren{Log}{#2}% |
| 764 |
}% |
| 765 |
% Else |
| 766 |
{% |
| 767 |
\PackageError{cool}{Invalid Option Sent}% |
| 768 |
{LogBaseESymb can only be `ln' or `log'}% |
| 769 |
}% |
| 770 |
}% |
| 771 |
}% |
| 772 |
% Else |
| 773 |
{% |
| 774 |
\ifthenelse{ \equal{#1}{10} \AND |
| 775 |
\NOT \equal{\COOL@notation@LogBaseESymb}{log} }% |
| 776 |
{% |
| 777 |
\log \COOL@decide@paren{Log}{#2}% |
| 778 |
}% |
| 779 |
% Else |
| 780 |
{% |
| 781 |
\log_{#1} \COOL@decide@paren{Log}{#2}% |
| 782 |
}% |
| 783 |
}% |
| 784 |
}% |
| 785 |
% Else |
| 786 |
{% |
| 787 |
\ifthenelse{ \equal{\COOL@notation@LogShowBase}{always} }% |
| 788 |
{% |
| 789 |
\log_{#1}\COOL@decide@paren{Log}{#2}% |
| 790 |
}% |
| 791 |
% Else |
| 792 |
{% |
| 793 |
\PackageError{cool}{Invalid Option Sent}% |
| 794 |
{LogShowBase can only be 'at will' or 'always'}% |
| 795 |
}% |
| 796 |
}% |
| 797 |
} |
| 798 |
% \end{macrocode} |
| 799 |
% \end{macro} |
| 800 |
% |
| 801 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 802 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 803 |
% \subsubsection{Trigonometric Functions} |
| 804 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 805 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 806 |
% |
| 807 |
% \begin{macro}{\Sin} |
| 808 |
% The sine function, |\Sin{x}|, $\Sin{x}$ |
| 809 |
% \begin{macrocode} |
| 810 |
\newcommand{\COOL@notation@SinParen}{p} |
| 811 |
\newcommand{\Sin}[1]{\sin\COOL@decide@paren{Sin}{#1}} |
| 812 |
% \end{macrocode} |
| 813 |
% \end{macro} |
| 814 |
% |
| 815 |
% \begin{macro}{\Cos} |
| 816 |
% The cosine function, |\Cos{x}|, $\Cos{x}$ |
| 817 |
% \begin{macrocode} |
| 818 |
\newcommand{\COOL@notation@CosParen}{p} |
| 819 |
\newcommand{\Cos}[1]{\cos\COOL@decide@paren{Cos}{#1}} |
| 820 |
% \end{macrocode} |
| 821 |
% \end{macro} |
| 822 |
% |
| 823 |
% \begin{macro}{\Tan} |
| 824 |
% The tangent function, |\Tan{x}|, $\Tan{x}$ |
| 825 |
% \begin{macrocode} |
| 826 |
\newcommand{\COOL@notation@TanParen}{p} |
| 827 |
\newcommand{\Tan}[1]{\tan\COOL@decide@paren{Tan}{#1}} |
| 828 |
% \end{macrocode} |
| 829 |
% \end{macro} |
| 830 |
% |
| 831 |
% \begin{macro}{\Csc} |
| 832 |
% The cosecant function, |\Csc{x}|, $\Csc{x}$ |
| 833 |
% \begin{macrocode} |
| 834 |
\newcommand{\COOL@notation@CscParen}{p} |
| 835 |
\newcommand{\Csc}[1]{\csc\COOL@decide@paren{Csc}{#1}} |
| 836 |
% \end{macrocode} |
| 837 |
% \end{macro} |
| 838 |
% |
| 839 |
% \begin{macro}{\Sec} |
| 840 |
% The secant function, |\Sec{x}|, $\Sec{x}$ |
| 841 |
% \begin{macrocode} |
| 842 |
\newcommand{\COOL@notation@SecParen}{p} |
| 843 |
\newcommand{\Sec}[1]{\sec\COOL@decide@paren{Sec}{#1}} |
| 844 |
% \end{macrocode} |
| 845 |
% \end{macro} |
| 846 |
% |
| 847 |
% \begin{macro}{\Cot} |
| 848 |
% The cotangent function, |\Cot{x}|, $\Cot{x}$ |
| 849 |
% \begin{macrocode} |
| 850 |
\newcommand{\COOL@notation@CotParen}{p} |
| 851 |
\newcommand{\Cot}[1]{\cot\COOL@decide@paren{Cot}{#1}} |
| 852 |
% \end{macrocode} |
| 853 |
% \end{macro} |
| 854 |
% |
| 855 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 856 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 857 |
% \subsubsection{Inverse Trigonometric Functions} |
| 858 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 859 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 860 |
% |
| 861 |
% \begin{macro}{\COOL@notation@ArcTrig} |
| 862 |
% The inverse trigoneometric functions style is governed by this global key. It's options are |
| 863 |
% |
| 864 |
% |inverse| (default), this displays as $\sin^{-1}$ |
| 865 |
% |
| 866 |
% |arc|, this displays as $\arcsin$ |
| 867 |
% \begin{macrocode} |
| 868 |
\def\COOL@notation@ArcTrig{inverse} |
| 869 |
% \end{macrocode} |
| 870 |
% \end{macro} |
| 871 |
% |
| 872 |
% \begin{macro}{\ArcSin} |
| 873 |
% The inverse of the sine function, |\ArcSin{x}|, $\ArcSin{x}$ |
| 874 |
% \begin{macrocode} |
| 875 |
\newcommand{\COOL@notation@ArcSinParen}{p} |
| 876 |
\newcommand{\ArcSin}[1]{% |
| 877 |
\ifthenelse{ \equal{\COOL@notation@ArcTrig}{inverse} }% |
| 878 |
{% |
| 879 |
\sin^{-1}\COOL@decide@paren{ArcSin}{#1}% |
| 880 |
} |
| 881 |
% else |
| 882 |
{ |
| 883 |
\ifthenelse{\equal{\COOL@notation@ArcTrig}{arc}}% |
| 884 |
{% |
| 885 |
\arcsin\COOL@decide@paren{ArcSin}{#1}% |
| 886 |
}% |
| 887 |
% else |
| 888 |
{% |
| 889 |
\PackageError{cool}{Invalid option sent}{}% |
| 890 |
}% |
| 891 |
}% |
| 892 |
} |
| 893 |
% \end{macrocode} |
| 894 |
% \end{macro} |
| 895 |
% |
| 896 |
% \begin{macro}{\ArcCos} |
| 897 |
% the inverse of the cosine function, |\ArcCos{x}|, $\ArcCos{x}$ |
| 898 |
% \begin{macrocode} |
| 899 |
\newcommand{\COOL@notation@ArcCosParen}{p} |
| 900 |
\newcommand{\ArcCos}[1]{% |
| 901 |
\ifthenelse{ \equal{\COOL@notation@ArcTrig}{inverse} }% |
| 902 |
{% |
| 903 |
\cos^{-1}\COOL@decide@paren{ArcCos}{#1}% |
| 904 |
}% |
| 905 |
% else |
| 906 |
{% |
| 907 |
\ifthenelse{\equal{\COOL@notation@ArcTrig}{arc}}% |
| 908 |
{% |
| 909 |
\arccos\COOL@decide@paren{ArcCos}{#1}% |
| 910 |
}% |
| 911 |
% else |
| 912 |
{% |
| 913 |
\PackageError{cool}{Invalid option sent}{}% |
| 914 |
}% |
| 915 |
}% |
| 916 |
} |
| 917 |
% \end{macrocode} |
| 918 |
% \end{macro} |
| 919 |
% |
| 920 |
% \begin{macro}{\ArcTan} |
| 921 |
% The inverse of the tangent function, |\ArcTan{x}|, $\ArcTan{x}$ |
| 922 |
% \begin{macrocode} |
| 923 |
\newcommand{\COOL@notation@ArcTanParen}{p} |
| 924 |
\newcommand{\ArcTan}[1]{% |
| 925 |
\ifthenelse{ \equal{\COOL@notation@ArcTrig}{inverse} }% |
| 926 |
{% |
| 927 |
\tan^{-1}\COOL@decide@paren{ArcTan}{#1}% |
| 928 |
}% |
| 929 |
% else |
| 930 |
{% |
| 931 |
\ifthenelse{\equal{\COOL@notation@ArcTrig}{arc}}% |
| 932 |
{% |
| 933 |
\arctan\COOL@decide@paren{ArcTan}{#1}% |
| 934 |
}% |
| 935 |
% else |
| 936 |
{% |
| 937 |
\PackageError{cool}{Invalid option sent}{}% |
| 938 |
}% |
| 939 |
}% |
| 940 |
} |
| 941 |
% \end{macrocode} |
| 942 |
% \end{macro} |
| 943 |
% |
| 944 |
% \begin{macro}{\ArcCsc} |
| 945 |
% The Inverse Cosecant function, |\ArcCsc{x}|, $\ArcCsc{x}$ |
| 946 |
% \begin{macrocode} |
| 947 |
\newcommand{\COOL@notation@ArcCscParen}{p} |
| 948 |
\newcommand{\ArcCsc}[1]{\csc^{-1}\COOL@decide@paren{ArcCsc}{#1}} |
| 949 |
% \end{macrocode} |
| 950 |
% \end{macro} |
| 951 |
% |
| 952 |
% \begin{macro}{\ArcSec} |
| 953 |
% The inverse secant function, |\ArcSec{x}|, $\ArcSec{x}$ |
| 954 |
% \begin{macrocode} |
| 955 |
\newcommand{\COOL@notation@ArcSecParen}{p} |
| 956 |
\newcommand{\ArcSec}[1]{\sec^{-1}\COOL@decide@paren{ArcSec}{#1}} |
| 957 |
% \end{macrocode} |
| 958 |
% \end{macro} |
| 959 |
% |
| 960 |
% \begin{macro}{\ArcCot} |
| 961 |
% The inverse cotangent function, |\ArcCot{x}|, $\ArcCot{x}$ |
| 962 |
% \begin{macrocode} |
| 963 |
\newcommand{\COOL@notation@ArcCotParen}{p} |
| 964 |
\newcommand{\ArcCot}[1]{\cot^{-1}\COOL@decide@paren{ArcCot}{#1}} |
| 965 |
% \end{macrocode} |
| 966 |
% \end{macro} |
| 967 |
% |
| 968 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 969 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 970 |
% \subsubsection{Hyperbolic Functions} |
| 971 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 972 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 973 |
% |
| 974 |
% \begin{macro}{\Sinh} |
| 975 |
% Hyperbolic sine, |\Sinh{x}|, $\Sinh{x}$ |
| 976 |
% \begin{macrocode} |
| 977 |
\newcommand{\COOL@notation@SinhParen}{p} |
| 978 |
\newcommand{\Sinh}[1]{\sinh\COOL@decide@paren{Sinh}{#1}} |
| 979 |
% \end{macrocode} |
| 980 |
% \end{macro} |
| 981 |
% |
| 982 |
% \begin{macro}{\Cosh} |
| 983 |
% Hyperbolic cosine, |\Cosh{x}|, $\Cosh{x}$ |
| 984 |
% \begin{macrocode} |
| 985 |
\newcommand{\COOL@notation@CoshParen}{p} |
| 986 |
\newcommand{\Cosh}[1]{\cosh\COOL@decide@paren{Cosh}{#1}} |
| 987 |
% \end{macrocode} |
| 988 |
% \end{macro} |
| 989 |
% |
| 990 |
% \begin{macro}{\Tanh} |
| 991 |
% Hyperbolic Tangent, |\Tanh{x}|, $\Tanh{x}$ |
| 992 |
% \begin{macrocode} |
| 993 |
\newcommand{\COOL@notation@TanhParen}{p} |
| 994 |
\newcommand{\Tanh}[1]{\tanh\COOL@decide@paren{Tanh}{#1}} |
| 995 |
% \end{macrocode} |
| 996 |
% \end{macro} |
| 997 |
% |
| 998 |
% \begin{macro}{\Csch} |
| 999 |
% Hyperbolic cosecant |\Csch{x}|, $\Csch{x}$ |
| 1000 |
% \begin{macrocode} |
| 1001 |
\newcommand{\COOL@notation@CschParen}{p} |
| 1002 |
\DeclareMathOperator{\csch}{csch} |
| 1003 |
\newcommand{\Csch}[1]{\csch\COOL@decide@paren{Csch}{#1}} |
| 1004 |
% \end{macrocode} |
| 1005 |
% \end{macro} |
| 1006 |
% |
| 1007 |
% \begin{macro}{\Sech} |
| 1008 |
% Hyperbolic secant, |\Sech{x}|, $\Sech{x}$ |
| 1009 |
% \begin{macrocode} |
| 1010 |
\newcommand{\COOL@notation@SechParen}{p} |
| 1011 |
\DeclareMathOperator{\sech}{sech} |
| 1012 |
\newcommand{\Sech}[1]{\sech\COOL@decide@paren{Sech}{#1}} |
| 1013 |
% \end{macrocode} |
| 1014 |
% \end{macro} |
| 1015 |
% |
| 1016 |
% \begin{macro}{\Coth} |
| 1017 |
% Hyperbolic Cotangent, |\Coth{x}|, $\Coth{x}$ |
| 1018 |
% \begin{macrocode} |
| 1019 |
\newcommand{\COOL@notation@CothParen}{p} |
| 1020 |
\newcommand{\Coth}[1]{\coth\COOL@decide@paren{Coth}{#1}} |
| 1021 |
% \end{macrocode} |
| 1022 |
% \end{macro} |
| 1023 |
% |
| 1024 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1025 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1026 |
% \subsubsection{Inverse Hyperbolic Functions} |
| 1027 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1028 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1029 |
% |
| 1030 |
% \begin{macro}{\ArcSinh} |
| 1031 |
% Inverse hyperbolic sine, |\ArcSinh{x}|, $\ArcSinh{x}$ |
| 1032 |
% \begin{macrocode} |
| 1033 |
\newcommand{\COOL@notation@ArcSinhParen}{p} |
| 1034 |
\newcommand{\ArcSinh}[1]{\sinh^{-1}\COOL@decide@paren{ArcSinh}{#1}} |
| 1035 |
% \end{macrocode} |
| 1036 |
% \end{macro} |
| 1037 |
% |
| 1038 |
% \begin{macro}{\ArcCosh} |
| 1039 |
% Inverse hyperbolic cosine, |\ArcCosh{x}|, $\ArcCosh{x}$ |
| 1040 |
% \begin{macrocode} |
| 1041 |
\newcommand{\COOL@notation@ArcCoshParen}{p} |
| 1042 |
\newcommand{\ArcCosh}[1]{\cosh^{-1}\COOL@decide@paren{ArcCosh}{#1}} |
| 1043 |
% \end{macrocode} |
| 1044 |
% \end{macro} |
| 1045 |
% |
| 1046 |
% \begin{macro}{\ArcTanh} |
| 1047 |
% Inverse hyperbolic tangent, |\ArcTanh{x}|, $\ArcTanh{x}$ |
| 1048 |
% \begin{macrocode} |
| 1049 |
\newcommand{\COOL@notation@ArcTanhParen}{p} |
| 1050 |
\newcommand{\ArcTanh}[1]{\tanh^{-1}\COOL@decide@paren{ArcTanh}{#1}} |
| 1051 |
% \end{macrocode} |
| 1052 |
% \end{macro} |
| 1053 |
% |
| 1054 |
% \begin{macro}{\ArcCsch} |
| 1055 |
% Inverse hyperbolic cosecant, |\ArcCsch{x}|, $\ArcCsch{x}$ |
| 1056 |
% \begin{macrocode} |
| 1057 |
\newcommand{\COOL@notation@ArcCschParen}{p} |
| 1058 |
\newcommand{\ArcCsch}[1]{\csch^{-1}\COOL@decide@paren{ArcCsch}{#1}} |
| 1059 |
% \end{macrocode} |
| 1060 |
% \end{macro} |
| 1061 |
% |
| 1062 |
% \begin{macro}{\ArcSech} |
| 1063 |
% Inverse hyperbolic secant, |\ArcSech{x}|, $\ArcSech{x}$ |
| 1064 |
% \begin{macrocode} |
| 1065 |
\newcommand{\COOL@notation@ArcSechParen}{p} |
| 1066 |
\newcommand{\ArcSech}[1]{\sech^{-1}\COOL@decide@paren{ArcSech}{#1}} |
| 1067 |
% \end{macrocode} |
| 1068 |
% \end{macro} |
| 1069 |
% |
| 1070 |
% \begin{macro}{\ArcCoth} |
| 1071 |
% Inverse hyperbolic cotangent, |\ArcCoth{x}|, $\ArcCoth{x}$ |
| 1072 |
% \begin{macrocode} |
| 1073 |
\newcommand{\COOL@notation@ArcCothParen}{p} |
| 1074 |
\newcommand{\ArcCoth}[1]{\coth^{-1}\COOL@decide@paren{ArcCoth}{#1}} |
| 1075 |
% \end{macrocode} |
| 1076 |
% \end{macro} |
| 1077 |
% |
| 1078 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1079 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1080 |
% \subsubsection{Product Logarithms} |
| 1081 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1082 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1083 |
% |
| 1084 |
% |
| 1085 |
% \begin{macro}{\LambertW} |
| 1086 |
% Lambert Function. |\LambertW| is an alias for |\ProductLog| and its properties are therefore set using that function |
| 1087 |
% \begin{macrocode} |
| 1088 |
\newcommand{\LambertW}[1]{\ProductLog{#1}} |
| 1089 |
% \end{macrocode} |
| 1090 |
% \end{macro} |
| 1091 |
% |
| 1092 |
% \begin{macro}{\ProductLog} |
| 1093 |
% Generalized Lambert Function |\ProductLog{|[\meta{index}|,|]\meta{variable}|}|. |
| 1094 |
% |
| 1095 |
% \begin{tabular}{lll} |
| 1096 |
% Lambert Function & |\ProductLog{x}| & $\ProductLog{x}$ \\ |
| 1097 |
% Generalized Lambert Function & |\ProductLog{k,x}| & $\ProductLog{k,x}$ \\ |
| 1098 |
% \end{tabular} |
| 1099 |
% \begin{macrocode} |
| 1100 |
\newcommand{\COOL@notation@ProductLogParen}{p} |
| 1101 |
\newcommand{\ProductLog}[1]{% |
| 1102 |
\listval{#1}{0}% |
| 1103 |
\ifthenelse{\value{COOL@listpointer}=1}% |
| 1104 |
{% |
| 1105 |
W\COOL@decide@paren{ProductLog}{#1}% |
| 1106 |
}% |
| 1107 |
% else |
| 1108 |
{% |
| 1109 |
\ifthenelse{\value{COOL@listpointer}=2}% |
| 1110 |
{% |
| 1111 |
W_{\listval{#1}{1}}\COOL@decide@paren{ProductLog}{\listval{#1}{2}}% |
| 1112 |
}% |
| 1113 |
% else |
| 1114 |
{% |
| 1115 |
\PackageError{cool}{`ProductLog' Invaid Argument}% |
| 1116 |
{Must have a comma separated list of length 1 or 2} |
| 1117 |
}% |
| 1118 |
}% |
| 1119 |
} |
| 1120 |
% \end{macrocode} |
| 1121 |
% \end{macro} |
| 1122 |
% |
| 1123 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1124 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1125 |
% \subsubsection{Max and Min} |
| 1126 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1127 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1128 |
% |
| 1129 |
% \begin{macro}{\Max} |
| 1130 |
% the maximum function, |\Max{x,y,z}|, $\Max{x,y,z}$ |
| 1131 |
% \begin{macrocode} |
| 1132 |
\newcommand{\COOL@notation@MaxParen}{p} |
| 1133 |
\newcommand{\Max}[1]{\max\COOL@decide@paren{Max}{#1}} |
| 1134 |
% \end{macrocode} |
| 1135 |
% \end{macro} |
| 1136 |
% |
| 1137 |
% \begin{macro}{\Min} |
| 1138 |
% the minimum function, |\Min{x,y,z}|, $\Min{x,y,z}$ |
| 1139 |
% \begin{macrocode} |
| 1140 |
\newcommand{\COOL@notation@MinParen}{p} |
| 1141 |
\newcommand{\Min}[1]{\min\COOL@decide@paren{Min}{#1}} |
| 1142 |
% \end{macrocode} |
| 1143 |
% \end{macro} |
| 1144 |
% |
| 1145 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1146 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1147 |
% \subsubsection{Bessel Functions} |
| 1148 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1149 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1150 |
% |
| 1151 |
% \begin{macro}{\BesselJ} |
| 1152 |
% Bessel Function of the first kind, |\BesselJ{\nu}{x}|, $\BesselJ{\nu}{x}$ |
| 1153 |
% \begin{macrocode} |
| 1154 |
\newcommand{\COOL@notation@BesselJSymb}{J} |
| 1155 |
\newcommand{\COOL@notation@BesselJParen}{p} |
| 1156 |
\newcommand{\BesselJ}[2]% |
| 1157 |
{\COOL@notation@BesselJSymb_{#1}\COOL@decide@paren{BesselJ}{#2}} |
| 1158 |
% \end{macrocode} |
| 1159 |
% \end{macro} |
| 1160 |
% |
| 1161 |
% \begin{macro}{\BesselY} |
| 1162 |
% Bessel Function of the second kind, |\BesselY{\nu}{x}|, $\BesselY{\nu}{x}$ |
| 1163 |
% \begin{macrocode} |
| 1164 |
\newcommand{\COOL@notation@BesselYSymb}{Y} |
| 1165 |
\newcommand{\COOL@notation@BesselYParen}{p} |
| 1166 |
\newcommand{\BesselY}[2]% |
| 1167 |
{\COOL@notation@BesselYSymb_{#1}\COOL@decide@paren{BesselY}{#2}} |
| 1168 |
% \end{macrocode} |
| 1169 |
% \end{macro} |
| 1170 |
% |
| 1171 |
% \begin{macro}{\BesselI} |
| 1172 |
% Modified Bessel Function of the first kind, |\BesselI{\nu}{x}|, $\BesselI{\nu}{x}$ |
| 1173 |
% \begin{macrocode} |
| 1174 |
\newcommand{\COOL@notation@BesselISymb}{I} |
| 1175 |
\newcommand{\COOL@notation@BesselIParen}{p} |
| 1176 |
\newcommand{\BesselI}[2]% |
| 1177 |
{\COOL@notation@BesselISymb_{#1}\COOL@decide@paren{BesselI}{#2}} |
| 1178 |
% \end{macrocode} |
| 1179 |
% \end{macro} |
| 1180 |
% |
| 1181 |
% \begin{macro}{\BesselK} |
| 1182 |
% Modified Bessel Function of the second kind, |\BesselK{\nu}{x}|, $\BesselK{\nu}{x}$ |
| 1183 |
% \begin{macrocode} |
| 1184 |
\newcommand{\COOL@notation@BesselKSymb}{K} |
| 1185 |
\newcommand{\COOL@notation@BesselKParen}{p} |
| 1186 |
\newcommand{\BesselK}[2]% |
| 1187 |
{\COOL@notation@BesselKSymb_{#1}\COOL@decide@paren{BesselK}{#2}} |
| 1188 |
% \end{macrocode} |
| 1189 |
% \end{macro} |
| 1190 |
% |
| 1191 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1192 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1193 |
% \subsubsection{Airy Functions} |
| 1194 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1195 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1196 |
% |
| 1197 |
% \begin{macro}{\AiryAi} |
| 1198 |
% Airy Ai Function, |\AiryAi{x}|, $\AiryAi{x}$ |
| 1199 |
% \begin{macrocode} |
| 1200 |
\newcommand{\COOL@notation@AiryAiParen}{p} |
| 1201 |
\DeclareMathOperator{\AiryAiSymb}{Ai} |
| 1202 |
\newcommand{\AiryAi}[1]{\AiryAiSymb\COOL@decide@paren{AiryAi}{#1}} |
| 1203 |
% \end{macrocode} |
| 1204 |
% \end{macro} |
| 1205 |
% |
| 1206 |
% \begin{macro}{\AiryBi} |
| 1207 |
% Airy Bi Function, |\AiryBi{x}|, $\AiryBi{x}$ |
| 1208 |
% \begin{macrocode} |
| 1209 |
\newcommand{\COOL@notation@AiryBiParen}{p} |
| 1210 |
\DeclareMathOperator{\AiryBiSymb}{Bi} |
| 1211 |
\newcommand{\AiryBi}[1]{\AiryBiSymb\COOL@decide@paren{AiryBi}{#1}} |
| 1212 |
% \end{macrocode} |
| 1213 |
% \end{macro} |
| 1214 |
% |
| 1215 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1216 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1217 |
% \subsubsection{Struve Functions} |
| 1218 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1219 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1220 |
% |
| 1221 |
% \begin{macro}{\StruveH} |
| 1222 |
% Struve H function, |\StruveH{\nu}{z}|, $\StruveH{\nu}{z}$ |
| 1223 |
% \begin{macrocode} |
| 1224 |
\newcommand{\COOL@notation@StruveHParen}{p} |
| 1225 |
\newcommand{\StruveH}[2]{ {\bf H}_{#1}\COOL@decide@paren{StruveH}{#2}} |
| 1226 |
% \end{macrocode} |
| 1227 |
% \end{macro} |
| 1228 |
% |
| 1229 |
% \begin{macro}{\StruveL} |
| 1230 |
% Struve L function, |\StruveL{\nu}{z}|, $\StruveL{\nu}{z}$ |
| 1231 |
% \begin{macrocode} |
| 1232 |
\newcommand{\COOL@notation@StruveLParen}{p} |
| 1233 |
\newcommand{\StruveL}[2]{ {\bf L}_{#1}\COOL@decide@paren{StruveL}{#2}} |
| 1234 |
% \end{macrocode} |
| 1235 |
% \end{macro} |
| 1236 |
% |
| 1237 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1238 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1239 |
% \subsubsection{Integer Functions} |
| 1240 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1241 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1242 |
% |
| 1243 |
% \begin{macro}{\Floor} |
| 1244 |
% floor, |\Floor{x}|, $\Floor{x}$ |
| 1245 |
% \begin{macrocode} |
| 1246 |
\newcommand{\Floor}[1]{\lfloor #1 \rfloor} |
| 1247 |
% \end{macrocode} |
| 1248 |
% \end{macro} |
| 1249 |
% |
| 1250 |
% \begin{macro}{\Ceiling} |
| 1251 |
% ceiling, |\Ceiling{x}|, $\Ceiling{x}$ |
| 1252 |
% \begin{macrocode} |
| 1253 |
\newcommand{\Ceiling}[1]{\lceil #1 \rceil} |
| 1254 |
% \end{macrocode} |
| 1255 |
% \end{macro} |
| 1256 |
% |
| 1257 |
% \begin{macro}{\Round} |
| 1258 |
% round, |\Round{x}|, $\Round{x}$ |
| 1259 |
% \begin{macrocode} |
| 1260 |
\newcommand{\Round}[1]{\lfloor #1 \rceil} |
| 1261 |
% \end{macrocode} |
| 1262 |
% \end{macro} |
| 1263 |
% |
| 1264 |
% \begin{macro}{\iPart} |
| 1265 |
% \begin{macro}{\IntegerPart} |
| 1266 |
% The integer part of a real number, |\iPart{x}|, |\IntegerPart{x}|, $\iPart{x}$ |
| 1267 |
% \begin{macrocode} |
| 1268 |
\newcommand{\COOL@notation@IntegerPartParen}{p} |
| 1269 |
\DeclareMathOperator{\iPartSymb}{int} |
| 1270 |
\newcommand{\iPart}[1]{\iPartSymb\COOL@decide@paren{IntegerPart}{#1}} |
| 1271 |
\newcommand{\IntegerPart}[1]{\iPart{#1}} |
| 1272 |
% \end{macrocode} |
| 1273 |
% \end{macro} |
| 1274 |
% \end{macro} |
| 1275 |
% |
| 1276 |
% \begin{macro}{\fPart} |
| 1277 |
% \begin{macro}{\FractionalPart} |
| 1278 |
% the fractional part of a real number, |\fPart{x}|, |\FractionalPart{x}|, $\fPart{x}$ |
| 1279 |
% \begin{macrocode} |
| 1280 |
\newcommand{\COOL@notation@FractionalPartParen}{p} |
| 1281 |
\DeclareMathOperator{\fPartSymb}{frac} |
| 1282 |
\newcommand{\fPart}[1]{\fPartSymb\COOL@decide@paren{FractionalPart}{#1}} |
| 1283 |
\newcommand{\FractionalPart}[1]{\fPart{#1}} |
| 1284 |
% \end{macrocode} |
| 1285 |
% \end{macro} |
| 1286 |
% \end{macro} |
| 1287 |
% |
| 1288 |
% \begin{macro}{\Mod} |
| 1289 |
% Modulo, |\Mod{n}{m}|, $\Mod{n}{m}$ |
| 1290 |
% \begin{macrocode} |
| 1291 |
\newcommand{\COOL@notation@ModDisplay}{mod} |
| 1292 |
\newcommand{\Mod}[2]{% |
| 1293 |
\ifthenelse{\equal{\COOL@notation@ModDisplay}{mod}}% |
| 1294 |
{% |
| 1295 |
#1 \mod #2% |
| 1296 |
}% |
| 1297 |
% ElseIf |
| 1298 |
{ \ifthenelse{\equal{\COOL@notation@ModDisplay}{bmod}}% |
| 1299 |
{% |
| 1300 |
#1 \bmod #2% |
| 1301 |
}% |
| 1302 |
% ElseIf |
| 1303 |
{ \ifthenelse{\equal{\COOL@notation@ModDisplay}{pmod}}% |
| 1304 |
{% |
| 1305 |
#1 \pmod #2% |
| 1306 |
}% |
| 1307 |
% ElseIf |
| 1308 |
{\ifthenelse{\equal{\COOL@notation@ModDisplay}{pod}}% |
| 1309 |
{% |
| 1310 |
#1 \pod #2% |
| 1311 |
}% |
| 1312 |
% Else |
| 1313 |
{% |
| 1314 |
\PackageError{cool}{Invalid Option Sent}% |
| 1315 |
{ModDisplay can only be `mod', `bmod', `pmod', or `pod'}% |
| 1316 |
}}}}% |
| 1317 |
} |
| 1318 |
% \end{macrocode} |
| 1319 |
% \end{macro} |
| 1320 |
% |
| 1321 |
% \begin{macro}{\Quotient} |
| 1322 |
% quotient, |\Quotient{m}{n}|, $\Quotient{m}{n}$ |
| 1323 |
% \begin{macrocode} |
| 1324 |
\newcommand{\COOL@notation@QuotientParen}{p} |
| 1325 |
\DeclareMathOperator{\QuotientSymb}{quotient} |
| 1326 |
\newcommand{\Quotient}[2]% |
| 1327 |
{\QuotientSymb\COOL@decide@paren{Quotient}{#1,#2}} |
| 1328 |
% \end{macrocode} |
| 1329 |
% \end{macro} |
| 1330 |
% |
| 1331 |
% \begin{macro}{\GCD} |
| 1332 |
% greatest common divisor, |\GCD{n_1,n_2,\dots,n_m}|, $\GCD{n_1,n_2,\dots,n_m}$ |
| 1333 |
% \begin{macrocode} |
| 1334 |
\newcommand{\COOL@notation@GCDParen}{p} |
| 1335 |
\newcommand{\GCD}[1]{\gcd\COOL@decide@paren{GCD}{#1}} |
| 1336 |
% \end{macrocode} |
| 1337 |
% \end{macro} |
| 1338 |
% |
| 1339 |
% \begin{macro}{\ExtendedGCD} |
| 1340 |
% \begin{macro}{\EGCD} |
| 1341 |
% Extended Greatest Common Divisor, |
| 1342 |
% |
| 1343 |
%|\EGCD{n}{m}|, |\ExtendedGCD{n}{m}|, $\EGCD{n}{m}$ |
| 1344 |
% \begin{macrocode} |
| 1345 |
\newcommand{\COOL@notation@ExtendedGCDParen}{p} |
| 1346 |
\DeclareMathOperator{\ExtendedGCDSymb}{egcd} |
| 1347 |
\newcommand{\ExtendedGCD}[2]% |
| 1348 |
{\ExtendedGCDSymb\COOL@decide@paren{ExtendedGCD}{#1,#2}} |
| 1349 |
\newcommand{\EGCD}[2]{\ExtendedGCD{#1}{#2}} |
| 1350 |
% \end{macrocode} |
| 1351 |
% \end{macro} |
| 1352 |
% \end{macro} |
| 1353 |
% |
| 1354 |
% \begin{macro}{\LCM} |
| 1355 |
% Least Common Multiple, |\LCM{n_1,n_2,\ldots,n_m}|, $\LCM{n_1,n_2,\ldots,n_m}$ |
| 1356 |
% \begin{macrocode} |
| 1357 |
\newcommand{\COOL@notation@LCMParen}{p} |
| 1358 |
\DeclareMathOperator{\LCMSymb}{lcm} |
| 1359 |
\newcommand{\LCM}[1]{\LCMSymb\COOL@decide@paren{LCM}{#1}} |
| 1360 |
% \end{macrocode} |
| 1361 |
% \end{macro} |
| 1362 |
% |
| 1363 |
% \begin{macro}{\Fibonacci} |
| 1364 |
% Fibonacci number, |\Fibonacci{n}|, $\Fibonacci{n}$, and |
| 1365 |
% |
| 1366 |
% Fibonacci Polynomial, |\Fibonacci{n,x}|, $\Fibonacci{n,x}$ |
| 1367 |
% \begin{macrocode} |
| 1368 |
\newcommand{\COOL@notation@FibonacciParen}{p} |
| 1369 |
\newcommand{\Fibonacci}[1]{% |
| 1370 |
\liststore{#1}{COOL@Fibonacci@arg@}% |
| 1371 |
\listval{#1}{0}% |
| 1372 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 1373 |
{% |
| 1374 |
F_{#1}% |
| 1375 |
}% |
| 1376 |
% ElseIf |
| 1377 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 1378 |
{% |
| 1379 |
F_{\COOL@Fibonacci@arg@i}% |
| 1380 |
\COOL@decide@paren{Fibonacci}{\COOL@Fibonacci@arg@ii}% |
| 1381 |
}% |
| 1382 |
% Else |
| 1383 |
{% |
| 1384 |
\PackageError{cool}{Invalid Argument}% |
| 1385 |
{`Fibonacci' can only accept a |
| 1386 |
comma separate list of length 1 or 2}% |
| 1387 |
}}% |
| 1388 |
} |
| 1389 |
% \end{macrocode} |
| 1390 |
% \end{macro} |
| 1391 |
% |
| 1392 |
% \begin{macro}{\Euler} |
| 1393 |
% Euler number, |\Euler{n}|, $\Euler{n}$, and Euler Polynomial, |\Euler{n,x}|, $\Euler{n,x}$ |
| 1394 |
% \begin{macrocode} |
| 1395 |
\newcommand{\COOL@notation@EulerParen}{p} |
| 1396 |
\newcommand{\Euler}[1]{% |
| 1397 |
\liststore{#1}{COOL@Euler@arg@}% |
| 1398 |
\listval{#1}{0}% |
| 1399 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 1400 |
{% |
| 1401 |
E_{#1}% |
| 1402 |
}% |
| 1403 |
% ElseIf |
| 1404 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 1405 |
{% |
| 1406 |
E_{\COOL@Euler@arg@i}% |
| 1407 |
\COOL@decide@paren{Euler}{\COOL@Euler@arg@ii}% |
| 1408 |
}% |
| 1409 |
% Else |
| 1410 |
{% |
| 1411 |
\PackageError{cool}{Invalid Argument}% |
| 1412 |
{`Euler' can only accept a |
| 1413 |
comma separate list of length 1 or 2}% |
| 1414 |
}}% |
| 1415 |
} |
| 1416 |
% \end{macrocode} |
| 1417 |
% \end{macro} |
| 1418 |
% |
| 1419 |
% \begin{macro}{\Bernoulli} |
| 1420 |
% Bernoulli number, |\Bernoulli{n}|, $\Bernoulli{n}$ and |
| 1421 |
% |
| 1422 |
% Bernoulli Polynomial |\Bernoulli{n,x}|, $\Bernoulli{n,x}$ |
| 1423 |
% \begin{macrocode} |
| 1424 |
\newcommand{\COOL@notation@BernoulliParen}{p} |
| 1425 |
\newcommand{\Bernoulli}[1]{% |
| 1426 |
\liststore{#1}{COOL@Bernoulli@arg@}% |
| 1427 |
\listval{#1}{0}% |
| 1428 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 1429 |
{% |
| 1430 |
B_{#1}% |
| 1431 |
}% |
| 1432 |
% ElseIf |
| 1433 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 1434 |
{% |
| 1435 |
B_{\COOL@Bernoulli@arg@i}% |
| 1436 |
\COOL@decide@paren{Bernoulli}{\COOL@Bernoulli@arg@ii}% |
| 1437 |
}% |
| 1438 |
% Else |
| 1439 |
{% |
| 1440 |
\PackageError{cool}{Invalid Argument}% |
| 1441 |
{`Bernoulli' can only accept a |
| 1442 |
comma separate list of length 1 or 2}% |
| 1443 |
}}% |
| 1444 |
} |
| 1445 |
% \end{macrocode} |
| 1446 |
% \end{macro} |
| 1447 |
% |
| 1448 |
% \begin{macro}{\StirlingSOne} |
| 1449 |
% Stirling number of the first kind |\StirlingSOne{n}{m}|, $\StirlingSOne{n}{m}$ |
| 1450 |
% \begin{macrocode} |
| 1451 |
\newcommand{\StirlingSOne}[2]{S_{#1}^{\inp{#2}}} |
| 1452 |
% \end{macrocode} |
| 1453 |
% \end{macro} |
| 1454 |
% |
| 1455 |
% \begin{macro}{\StirlingSTwo} |
| 1456 |
% Stirling number of the second kind, |\StirlingSTwo{n}{m}|, $\StirlingSTwo{n}{m}$ |
| 1457 |
% \begin{macrocode} |
| 1458 |
\newcommand{\StirlingSTwo}[2]{{\cal S}_{#1}^{\inp{#2}}} |
| 1459 |
% \end{macrocode} |
| 1460 |
% \end{macro} |
| 1461 |
% |
| 1462 |
% \begin{macro}{\PartitionsP} |
| 1463 |
% Number of unrestricted partitions of an integer, |\PartitionsP{x}|, $\PartitionsP{x}$ |
| 1464 |
% \begin{macrocode} |
| 1465 |
\newcommand{\COOL@notation@PartitionsPParen}{p} |
| 1466 |
\newcommand{\PartitionsP}[1]{p\COOL@decide@paren{PartitionsP}{#1}} |
| 1467 |
% \end{macrocode} |
| 1468 |
% \end{macro} |
| 1469 |
% |
| 1470 |
% \begin{macro}{\PartitionsQ} |
| 1471 |
% number of partitions of an integer into distinct parts, |\PartitionsQ{x}|, $\PartitionsQ{x}$ |
| 1472 |
% \begin{macrocode} |
| 1473 |
\newcommand{\COOL@notation@PartitionsQParen}{p} |
| 1474 |
\newcommand{\PartitionsQ}[1]{q\COOL@decide@paren{PartitionsQ}{#1}} |
| 1475 |
% \end{macrocode} |
| 1476 |
% \end{macro} |
| 1477 |
% |
| 1478 |
% \begin{macro}{\DiscreteDelta} |
| 1479 |
% Discrete delta function, |
| 1480 |
% |
| 1481 |
% |\DiscreteDelta{n_1,n_2,\ldots,n_m}|, $\DiscreteDelta{n_1,n_2,\ldots,n_m}$ |
| 1482 |
% \begin{macrocode} |
| 1483 |
\newcommand{\COOL@notation@DiscreteDeltaParen}{p} |
| 1484 |
\newcommand{\DiscreteDelta}[1]% |
| 1485 |
{\delta\COOL@decide@paren{DiscreteDelta}{#1}} |
| 1486 |
% \end{macrocode} |
| 1487 |
% \end{macro} |
| 1488 |
% |
| 1489 |
% \begin{macro}{\KroneckerDelta} |
| 1490 |
% Kronecker Delta, |\KroneckerDelta{n_1,n_2,\ldots,n_m}|, $\KroneckerDelta{n_1,n_2,\ldots,n_m}$ |
| 1491 |
% \begin{macrocode} |
| 1492 |
\newcommand{\COOL@notation@KroneckerDeltaUseComma}{false}% |
| 1493 |
\newcommand{\COOL@notation@KroneckerDeltaIndicies}{local} |
| 1494 |
\newcommand{\KroneckerDelta}[2][u]{% |
| 1495 |
\liststore{#2}{COOL@arg@}% |
| 1496 |
\listval{#2}{0}% |
| 1497 |
\def\COOL@arg@temp{}% |
| 1498 |
\forLoop{1}{\value{COOL@listpointer}}{COOL@ct}% |
| 1499 |
{% |
| 1500 |
\ifthenelse{\equal{\COOL@notation@KroneckerDeltaUseComma}{true}}% |
| 1501 |
{% |
| 1502 |
\ifthenelse{\NOT \value{COOL@ct} = 1} |
| 1503 |
{% |
| 1504 |
\edef\COOL@arg@temp% |
| 1505 |
{\COOL@arg@temp, \csname COOL@arg@\roman{COOL@ct}\endcsname}% |
| 1506 |
}% |
| 1507 |
% Else |
| 1508 |
{% |
| 1509 |
\edef\COOL@arg@temp% |
| 1510 |
{\COOL@arg@temp \csname COOL@arg@\roman{COOL@ct}\endcsname}% |
| 1511 |
}% |
| 1512 |
}% |
| 1513 |
% Else |
| 1514 |
{% |
| 1515 |
\edef\COOL@arg@temp% |
| 1516 |
{\COOL@arg@temp \csname COOL@arg@\roman{COOL@ct}\endcsname}% |
| 1517 |
}% |
| 1518 |
}% |
| 1519 |
\delta\COOL@decide@indicies{KroneckerDelta}{#1}{\COOL@arg@temp}% |
| 1520 |
} |
| 1521 |
% \end{macrocode} |
| 1522 |
% \end{macro} |
| 1523 |
% |
| 1524 |
% \begin{macro}{\LeviCivita} |
| 1525 |
% \begin{macro}{\Signature} |
| 1526 |
% Levi-Civita totally anti-symmetric Tensor density, |
| 1527 |
% |
| 1528 |
% |\LeviCivita{n_1,n_2,\ldots,n_m}|, $\LeviCivita{n_1,n_2,\ldots,n_m}$ |
| 1529 |
% \begin{macrocode} |
| 1530 |
\newcommand{\COOL@notation@LeviCivitaUseComma}{false} |
| 1531 |
\newcommand{\COOL@notation@LeviCivitaIndicies}{local} |
| 1532 |
\newcommand{\LeviCivita}[2][u]{% |
| 1533 |
\liststore{#2}{COOL@arg@}% |
| 1534 |
\listval{#2}{0}% |
| 1535 |
\def\COOL@arg@temp{}% |
| 1536 |
\forLoop{1}{\value{COOL@listpointer}}{COOL@ct}% |
| 1537 |
{% |
| 1538 |
\ifthenelse{\equal{\COOL@notation@LeviCivitaUseComma}{true}}% |
| 1539 |
{% |
| 1540 |
\ifthenelse{\NOT \value{COOL@ct} = 1}% |
| 1541 |
{% |
| 1542 |
\edef\COOL@arg@temp% |
| 1543 |
{\COOL@arg@temp, \csname COOL@arg@\roman{COOL@ct}\endcsname}% |
| 1544 |
}% |
| 1545 |
% Else |
| 1546 |
{% |
| 1547 |
\edef\COOL@arg@temp% |
| 1548 |
{\COOL@arg@temp \csname COOL@arg@\roman{COOL@ct}\endcsname}% |
| 1549 |
}% |
| 1550 |
}% |
| 1551 |
% Else |
| 1552 |
{% |
| 1553 |
\edef\COOL@arg@temp% |
| 1554 |
{\COOL@arg@temp \csname COOL@arg@\roman{COOL@ct}\endcsname}% |
| 1555 |
}% |
| 1556 |
}% |
| 1557 |
\epsilon\COOL@decide@indicies{LeviCivita}{#1}{\COOL@arg@temp}% |
| 1558 |
}% |
| 1559 |
\newcommand{\Signature}[2][u]{\LeviCivita[#1]{#2}} |
| 1560 |
% \end{macrocode} |
| 1561 |
% \end{macro} |
| 1562 |
% \end{macro} |
| 1563 |
% |
| 1564 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1565 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1566 |
% \subsubsection{Classical Orthogonal Polynomials} |
| 1567 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1568 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1569 |
% |
| 1570 |
% \begin{macro}{\HermiteH} |
| 1571 |
% Hermite Polynomial, |\HermiteH{n}{x}|, $\HermiteH{n}{x}$ |
| 1572 |
% \begin{macrocode} |
| 1573 |
\newcommand{\COOL@notation@HermiteHParen}{p} |
| 1574 |
\newcommand{\COOL@notation@HermiteHSymb}{H} |
| 1575 |
\newcommand{\HermiteH}[2]% |
| 1576 |
{\COOL@notation@HermiteHSymb_{#1}\COOL@decide@paren{HermiteH}{#2}} |
| 1577 |
% \end{macrocode} |
| 1578 |
% \end{macro} |
| 1579 |
% |
| 1580 |
% \begin{macro}{\LaugerreL} |
| 1581 |
% Laugerre Polynomial, |\LaugerreL{\nu,x}|, $\LaugerreL{\nu,x}$ and |
| 1582 |
% |
| 1583 |
% \noindent Generalized Laugerre Polynomial |\LaugerreL{\nu,\lambda,x}|, $\LaugerreL{\nu,\lambda,x}$ |
| 1584 |
% \begin{macrocode} |
| 1585 |
\newcommand{\COOL@notation@LaugerreLParen}{p} |
| 1586 |
\newcommand{\COOL@notation@LaugerreLSymb}{L} |
| 1587 |
\newcommand{\LaugerreL}[1]{% |
| 1588 |
\liststore{#1}{COOL@list@temp@}% |
| 1589 |
\listval{#1}{0}% |
| 1590 |
\ifthenelse{\value{COOL@listpointer}=2}% |
| 1591 |
{% |
| 1592 |
\COOL@notation@LaugerreLSymb_{\COOL@list@temp@i}% |
| 1593 |
\COOL@decide@paren{LaugerreL}{\COOL@list@temp@ii}% |
| 1594 |
}% |
| 1595 |
% Else If |
| 1596 |
{ \ifthenelse{\value{COOL@listpointer}=3}% |
| 1597 |
{% |
| 1598 |
\COOL@notation@LaugerreLSymb_{\COOL@list@temp@i}^{\COOL@list@temp@ii}% |
| 1599 |
\COOL@decide@paren{LaugerreL}{\COOL@list@temp@iii}% |
| 1600 |
}% |
| 1601 |
% Else |
| 1602 |
{% |
| 1603 |
\PackageError{cool}{Invalid Argument}% |
| 1604 |
{`LaugerrL' only accepts a comma separated list of length 2 or 3}% |
| 1605 |
}}% |
| 1606 |
} |
| 1607 |
% \end{macrocode} |
| 1608 |
% \end{macro} |
| 1609 |
% |
| 1610 |
% \begin{macro}{\LegendreP} |
| 1611 |
% Legendre Polynomials |
| 1612 |
% |
| 1613 |
% \begin{tabular}{lll} |
| 1614 |
% Legendre Polynomial & |\LegendreP{n,x}| & $\LegendreP{n,x}$ \\ |
| 1615 |
% Associated Legendre Polynomial \\ |
| 1616 |
% \indent of the first kind of type 2 |
| 1617 |
% & |\LegendreP{\ell,m,x}| & $\LegendreP{\ell,m,x}$ \\ |
| 1618 |
% & |\LegendreP{\ell,m,2,x}| & $\LegendreP{\ell,m,2,x}$ \\ |
| 1619 |
% Associated Legendre Function \\ |
| 1620 |
% \indent of the first kind of type 3 |
| 1621 |
% & |\LegendreP{\ell,m,3,x}| & $\LegendreP{\ell,m,3,x}$ \\ |
| 1622 |
% \end{tabular} |
| 1623 |
% \begin{macrocode} |
| 1624 |
\newcommand{\COOL@notation@LegendrePParen}{p} |
| 1625 |
\newcommand{\COOL@notation@LegendrePSymb}{P} |
| 1626 |
\newcommand{\LegendreP}[1]{% |
| 1627 |
\liststore{#1}{COOL@LegendreP@arg@}% |
| 1628 |
\listval{#1}{0}% |
| 1629 |
\ifthenelse{\value{COOL@listpointer} = 2}% |
| 1630 |
{% |
| 1631 |
\COOL@notation@LegendrePSymb_{\COOL@LegendreP@arg@i}% |
| 1632 |
\COOL@decide@paren{LegendreP}{\COOL@LegendreP@arg@ii}% |
| 1633 |
}% |
| 1634 |
% ElseIf |
| 1635 |
{ \ifthenelse{\value{COOL@listpointer} = 3}% |
| 1636 |
{% |
| 1637 |
\COOL@notation@LegendrePSymb_{\COOL@LegendreP@arg@i}% |
| 1638 |
^{\COOL@LegendreP@arg@ii}% |
| 1639 |
\COOL@decide@paren{LegendreP}{\COOL@LegendreP@arg@iii}% |
| 1640 |
}% |
| 1641 |
% ElseIf |
| 1642 |
{ \ifthenelse{\value{COOL@listpointer} = 4}% |
| 1643 |
{% |
| 1644 |
\isint{\COOL@LegendreP@arg@iii}{COOL@isint}% |
| 1645 |
\ifthenelse{\boolean{COOL@isint}}% |
| 1646 |
{% |
| 1647 |
\ifcase\COOL@LegendreP@arg@iii\relax% |
| 1648 |
\PackageError{cool}{Invalid Argument}% |
| 1649 |
{`LegendreP' third argument must be $>$ 1}% |
| 1650 |
\or% |
| 1651 |
\PackageError{cool}{Invalid Argument}% |
| 1652 |
{`LegendreP' third argument must be $>$ 1}% |
| 1653 |
\or% |
| 1654 |
\COOL@notation@LegendrePSymb_{\COOL@LegendreP@arg@i}% |
| 1655 |
^{\COOL@LegendreP@arg@ii}% |
| 1656 |
\COOL@decide@paren{LegendreP}{\COOL@LegendreP@arg@iv}% |
| 1657 |
\or% |
| 1658 |
{\cal P}_{\COOL@LegendreP@arg@i}% |
| 1659 |
^{\COOL@LegendreP@arg@ii}% |
| 1660 |
\COOL@decide@paren{LegendreP}{\COOL@LegendreP@arg@iv}% |
| 1661 |
\else% |
| 1662 |
\PackageError{cool}{Invalid Argument}{unsupported}% |
| 1663 |
\fi% |
| 1664 |
} |
| 1665 |
% Else |
| 1666 |
{% |
| 1667 |
\PackageError{cool}{Invalid Argument}{third arg must be int}% |
| 1668 |
}% |
| 1669 |
}% |
| 1670 |
% Else |
| 1671 |
{% |
| 1672 |
\PackageError{cool}{Invalid Argument}% |
| 1673 |
{`LegendreP' can only accept a% |
| 1674 |
comma separated list of length 2-4}% |
| 1675 |
}}}% |
| 1676 |
} |
| 1677 |
% \end{macrocode} |
| 1678 |
% \end{macro} |
| 1679 |
% |
| 1680 |
% \begin{macro}{\LegendreQ} |
| 1681 |
% Legendre Polynomials of the second kind |
| 1682 |
% |
| 1683 |
% \begin{tabular}{lll} |
| 1684 |
% Legendre Polynomial & |\LegendreQ{n,x}| & $\LegendreQ{n,x}$ \\ |
| 1685 |
% Associated Legendre Polynomial \\ |
| 1686 |
% \indent of the second kind of type 2 |
| 1687 |
% & |\LegendreQ{\ell,m,x}| & $\LegendreQ{\ell,m,x}$ \\ |
| 1688 |
% & |\LegendreQ{\ell,m,2,x}| & $\LegendreQ{\ell,m,2,x}$ \\ |
| 1689 |
% Associated Legendre Function \\ |
| 1690 |
% \indent of the second kind of type 3 |
| 1691 |
% & |\LegendreQ{\ell,m,3,x}| & $\LegendreQ{\ell,m,3,x}$ \\ |
| 1692 |
% \end{tabular} |
| 1693 |
% \begin{macrocode} |
| 1694 |
\newcommand{\COOL@notation@LegendreQParen}{p} |
| 1695 |
\newcommand{\COOL@notation@LegendreQSymb}{Q} |
| 1696 |
\newcommand{\LegendreQ}[1]{% |
| 1697 |
\liststore{#1}{COOL@LegendreQ@arg@}% |
| 1698 |
\listval{#1}{0}% |
| 1699 |
\ifthenelse{\value{COOL@listpointer} = 2}% |
| 1700 |
{% |
| 1701 |
\COOL@notation@LegendreQSymb_{\COOL@LegendreQ@arg@i}% |
| 1702 |
\COOL@decide@paren{LegendreQ}{\COOL@LegendreQ@arg@ii}% |
| 1703 |
}% |
| 1704 |
% ElseIf |
| 1705 |
{ \ifthenelse{\value{COOL@listpointer} = 3}% |
| 1706 |
{% |
| 1707 |
\COOL@notation@LegendreQSymb_{\COOL@LegendreQ@arg@i}% |
| 1708 |
^{\COOL@LegendreQ@arg@ii}% |
| 1709 |
\COOL@decide@paren{LegendreQ}{\COOL@LegendreQ@arg@iii}% |
| 1710 |
}% |
| 1711 |
% ElseIf |
| 1712 |
{ \ifthenelse{\value{COOL@listpointer} = 4}% |
| 1713 |
{% |
| 1714 |
\isint{\COOL@LegendreQ@arg@iii}{COOL@isint}% |
| 1715 |
\ifthenelse{\boolean{COOL@isint}}% |
| 1716 |
{% |
| 1717 |
\ifcase\COOL@LegendreQ@arg@iii\relax% |
| 1718 |
\PackageError{cool}{Invalid Argument}% |
| 1719 |
{`LegendreQ' third argument must be $>$ 1}% |
| 1720 |
\or% |
| 1721 |
\PackageError{cool}{Invalid Argument}% |
| 1722 |
{`LegendreQ' third argument must be $>$ 1}% |
| 1723 |
\or% |
| 1724 |
\COOL@notation@LegendreQSymb_{\COOL@LegendreQ@arg@i}% |
| 1725 |
^{\COOL@LegendreQ@arg@ii}% |
| 1726 |
\COOL@decide@paren{LegendreQ}{\COOL@LegendreQ@arg@iv}% |
| 1727 |
\or% |
| 1728 |
{\cal Q}_{\COOL@LegendreQ@arg@i}% |
| 1729 |
^{\COOL@LegendreQ@arg@ii}% |
| 1730 |
\COOL@decide@paren{LegendreQ}{\COOL@LegendreQ@arg@iv}% |
| 1731 |
\else% |
| 1732 |
\PackageError{cool}{Invalid Argument}{unsupported}% |
| 1733 |
\fi% |
| 1734 |
} |
| 1735 |
% Else |
| 1736 |
{% |
| 1737 |
\PackageError{cool}{Invalid Argument}{third arg must be int}% |
| 1738 |
}% |
| 1739 |
}% |
| 1740 |
% Else |
| 1741 |
{% |
| 1742 |
\PackageError{cool}{Invalid Argument}% |
| 1743 |
{`LegendreQ' can only accept a% |
| 1744 |
comma separated list of length 2-4}% |
| 1745 |
}}}% |
| 1746 |
} |
| 1747 |
% \end{macrocode} |
| 1748 |
% \end{macro} |
| 1749 |
% |
| 1750 |
% \begin{macro}{\ChebyshevT} |
| 1751 |
% Chebyshev Polynomial of the first kind, |ChebyshevT{n}{x}|, $ChebyshevT{n}{x}$ |
| 1752 |
% \begin{macrocode} |
| 1753 |
\newcommand{\COOL@notation@ChebyshevTParen}{p} |
| 1754 |
\newcommand{\COOL@notation@ChebyshevTSymb}{T} |
| 1755 |
\newcommand{\ChebyshevT}[2]% |
| 1756 |
{\COOL@notation@ChebyshevTSymb_{#1}\COOL@decide@paren{ChebyshevT}{#2}} |
| 1757 |
% \end{macrocode} |
| 1758 |
% \end{macro} |
| 1759 |
% |
| 1760 |
% \begin{macro}{\ChebyshevU}, |\ChebyshevU{n}{z}|, $\ChebyshevU{n}{z}$ |
| 1761 |
% Chebyshev Polynomial of the second kind |
| 1762 |
% \begin{macrocode} |
| 1763 |
\newcommand{\COOL@notation@ChebyshevUParen}{p} |
| 1764 |
\newcommand{\COOL@notation@ChebyshevUSymb}{U} |
| 1765 |
\newcommand{\ChebyshevU}[2]% |
| 1766 |
{\COOL@notation@ChebyshevUSymb_{#1}\COOL@decide@paren{ChebyshevU}{#2}} |
| 1767 |
% \end{macrocode} |
| 1768 |
% \end{macro} |
| 1769 |
% |
| 1770 |
% \begin{macro}{\JacobiP} |
| 1771 |
% Jacobi Polynomial, |\JacobiP{n}{a}{b}{x}|, $\JacobiP{n}{a}{b}{x}$ |
| 1772 |
% \begin{macrocode} |
| 1773 |
\newcommand{\COOL@notation@JacobiPParen}{p} |
| 1774 |
\newcommand{\COOL@notation@JacobiPSymb}{P} |
| 1775 |
\newcommand{\JacobiP}[4]{% |
| 1776 |
\COOL@notation@JacobiPSymb_{#1}^{\inp{#2, #3}}% |
| 1777 |
\COOL@decide@paren{JacobiP}{#4}% |
| 1778 |
} |
| 1779 |
% \end{macrocode} |
| 1780 |
% \end{macro} |
| 1781 |
% |
| 1782 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1783 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1784 |
% \subsubsection{Associated Polynomials} |
| 1785 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1786 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1787 |
% |
| 1788 |
% \begin{macro}{\AssocLegendreP} |
| 1789 |
% Associated Legendre Polynomial of the first kind of type 2 |
| 1790 |
% |
| 1791 |
% |\AssocLegendreP{\ell}{m}{x}|, $\AssocLegendreP{\ell}{m}{x}$ |
| 1792 |
% \begin{macrocode} |
| 1793 |
\newcommand{\AssocLegendreP}[3]{\LegendreP{#1,#2,#3}} |
| 1794 |
% \end{macrocode} |
| 1795 |
% \end{macro} |
| 1796 |
% |
| 1797 |
% \begin{macro}{\AssocLegendreQ} |
| 1798 |
% Associated Legendre Polynomial of the second kind of type 2 |
| 1799 |
% |
| 1800 |
% |\AssocLegendreQ{\ell}{m}{x}|, $\AssocLegendreQ{\ell}{m}{x}$ |
| 1801 |
% \begin{macrocode} |
| 1802 |
\newcommand{\AssocLegendreQ}[3]{\LegendreQ{#1,#2,#3}} |
| 1803 |
% \end{macrocode} |
| 1804 |
% \end{macro} |
| 1805 |
% |
| 1806 |
% \begin{macro}{\GegenbauerC} |
| 1807 |
% Gegenbauer Polynomial, |\GegenbauerC{n}{\lambda}{x}|, $\GegenbauerC{n}{\lambda}{x}$ |
| 1808 |
% \begin{macrocode} |
| 1809 |
\newcommand{\COOL@notation@GegenbauerCParen}{p} |
| 1810 |
\newcommand{\COOL@notation@GegenbauerCSymb}{C} |
| 1811 |
\newcommand{\GegenbauerC}[3]{% |
| 1812 |
\COOL@notation@GegenbauerCSymb_{#1}^{#2}% |
| 1813 |
\COOL@decide@paren{GegenbauerC}{#3}% |
| 1814 |
} |
| 1815 |
% \end{macrocode} |
| 1816 |
% \end{macro} |
| 1817 |
% |
| 1818 |
% \begin{macro}{\SphericalHarmonicY} |
| 1819 |
% \begin{macro}{\SphericalHarmY} |
| 1820 |
% \begin{macro}{\SpHarmY} |
| 1821 |
% Spherical Harmonic, |\SpHarmY{\ell}{m}{\theta}{\phi}|, |
| 1822 |
% |
| 1823 |
% |\SphericalHarmY{\ell}{m}{\theta}{\phi}|, |
| 1824 |
% |
| 1825 |
% |\SphericalHarmonicY{\ell}{m}{\theta}{\phi}|, $\SpHarmY{\ell}{m}{\theta}{\phi}$ |
| 1826 |
% \begin{macrocode} |
| 1827 |
\newcommand{\COOL@notation@SphericalHarmonicYParen}{p} |
| 1828 |
\newcommand{\COOL@notation@SphericalHarmonicYSymb}{Y} |
| 1829 |
\newcommand{\SphericalHarmonicY}[4]{% |
| 1830 |
\COOL@notation@SphericalHarmonicYSymb_{#1}^{#2}% |
| 1831 |
\COOL@decide@paren{SphericalHarmonicY}{#3,#4}% |
| 1832 |
} |
| 1833 |
\newcommand{\SphericalHarmY}[4]{\SphericalHarmonicY{#1}{#2}{#3}{#4}} |
| 1834 |
\newcommand{\SpHarmY}[4]{\SphericalHarmonicY{#1}{#2}{#3}{#4}} |
| 1835 |
% \end{macrocode} |
| 1836 |
% \end{macro} |
| 1837 |
% \end{macro} |
| 1838 |
% \end{macro} |
| 1839 |
% |
| 1840 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1841 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1842 |
% \subsubsection{Other Polynomials} |
| 1843 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1844 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1845 |
% |
| 1846 |
% \begin{macro}{\CyclotomicC} |
| 1847 |
% Cyclotomic Polynomial, |\CyclotomicC{n}{z}|, $\CyclotomicC{n}{z}$ |
| 1848 |
% \begin{macrocode} |
| 1849 |
\newcommand{\COOL@notation@CyclotomicCParen}{p} |
| 1850 |
\newcommand{\CyclotomicC}[2]% |
| 1851 |
{C_{#1}\COOL@decide@paren{CyclotomicC}{#2}} |
| 1852 |
% \end{macrocode} |
| 1853 |
% \end{macro} |
| 1854 |
% |
| 1855 |
% \begin{macro}{\FibonacciF} |
| 1856 |
% Fibonacci Polynomial, |\FibonacciF{n}{z}|, $\FibonacciF{n}{z}$ |
| 1857 |
% \begin{macrocode} |
| 1858 |
\newcommand{\FibonacciF}[2]{\Fibonacci{#1,#2}} |
| 1859 |
% \end{macrocode} |
| 1860 |
% \end{macro} |
| 1861 |
% |
| 1862 |
% \begin{macro}{\EulerE} |
| 1863 |
% Euler Polynomial, |\EulerE{n}{z}|, $\EulerE{n}{z}$ |
| 1864 |
% \begin{macrocode} |
| 1865 |
\newcommand{\EulerE}[2]{\Euler{#1,#2}} |
| 1866 |
% \end{macrocode} |
| 1867 |
% \end{macro} |
| 1868 |
% |
| 1869 |
% \begin{macro}{\BernoulliB} |
| 1870 |
% Bernoulli Polynomial, |\BernoulliB{n}{z}|, $\BernoulliB{n}{z}$ |
| 1871 |
% \begin{macrocode} |
| 1872 |
\newcommand{\BernoulliB}[2]{\Bernoulli{#1,#2}} |
| 1873 |
% \end{macrocode} |
| 1874 |
% \end{macro} |
| 1875 |
% |
| 1876 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1877 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1878 |
% \subsubsection{Factorial Functions} |
| 1879 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1880 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1881 |
% |
| 1882 |
% \begin{macro}{\Factorial} |
| 1883 |
% Factorial, |\Factorial{n}|, $\Factorial{n}$ |
| 1884 |
% \begin{macrocode} |
| 1885 |
\newcommand{\Factorial}[1]{#1!} |
| 1886 |
% \end{macrocode} |
| 1887 |
% \end{macro} |
| 1888 |
% |
| 1889 |
% \begin{macro}{\DblFactorial} |
| 1890 |
% Double Factorial, |\DblFactorial{n}|, $\DblFactorial{n}$ |
| 1891 |
% \begin{macrocode} |
| 1892 |
\newcommand{\DblFactorial}[1]{#1!!} |
| 1893 |
% \end{macrocode} |
| 1894 |
% \end{macro} |
| 1895 |
% |
| 1896 |
% \begin{macro}{\Binomial} |
| 1897 |
% binomial, |\Binomial{n}{r}|, $\Binomial{n}{r}$ |
| 1898 |
% \begin{macrocode} |
| 1899 |
\newcommand{\Binomial}[2]{ \binom{#1}{#2} } |
| 1900 |
% \end{macrocode} |
| 1901 |
% \end{macro} |
| 1902 |
% |
| 1903 |
% \begin{macro}{\Multinomial} |
| 1904 |
% Multinomial, |\Multinomial{n_1,\ldots,n_m}|, $\Multinomial{n_1,\ldots,n_m}$ |
| 1905 |
% \begin{macrocode} |
| 1906 |
\newcommand{\Multinomial}[1]% |
| 1907 |
{% |
| 1908 |
\listval{#1}{0}% get the length of the list |
| 1909 |
\setcounter{COOL@listlen}{\value{COOL@listpointer}}% record length |
| 1910 |
\liststore{#1}{COOL@list@temp@}% |
| 1911 |
\isint{\COOL@list@temp@i}{COOL@isint}% check that the entries are integers |
| 1912 |
\setcounter{COOL@ct}{2}% |
| 1913 |
\whiledo{ \boolean{COOL@isint} \AND |
| 1914 |
\NOT \value{COOL@ct}>\value{COOL@listlen} }% |
| 1915 |
{% |
| 1916 |
\def\COOL@Multinomial@tempa% |
| 1917 |
{\csname COOL@list@temp@\roman{COOL@ct}\endcsname}% |
| 1918 |
\isint{\COOL@Multinomial@tempa}{COOL@isint}% |
| 1919 |
\stepcounter{COOL@ct}% |
| 1920 |
}% |
| 1921 |
\ifthenelse{\boolean{COOL@isint}}% |
| 1922 |
{% |
| 1923 |
% all of them are integers |
| 1924 |
\setcounter{COOL@ct@}{ \COOL@list@temp@i }% records the sum |
| 1925 |
\forLoop{2}{\value{COOL@listlen}}{COOL@ct}% |
| 1926 |
{% |
| 1927 |
\addtocounter{COOL@ct@}% |
| 1928 |
{\csname COOL@list@temp@\roman{COOL@ct}\endcsname}% |
| 1929 |
}% |
| 1930 |
\left(\arabic{COOL@ct@}% |
| 1931 |
}% |
| 1932 |
% Else |
| 1933 |
{% |
| 1934 |
\left(% |
| 1935 |
\listval{#1}{1}% |
| 1936 |
\forLoop{2}{\value{COOL@listlen}}{COOL@ct}% |
| 1937 |
{% |
| 1938 |
+ \listval{#1}{\arabic{COOL@ct}}% |
| 1939 |
}% |
| 1940 |
}% |
| 1941 |
;#1\right)% |
| 1942 |
} |
| 1943 |
% \end{macrocode} |
| 1944 |
% \end{macro} |
| 1945 |
% |
| 1946 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1947 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1948 |
% \subsubsection{Gamma Functions} |
| 1949 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 1950 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1951 |
% |
| 1952 |
% \begin{macro}{\GammaFunc} |
| 1953 |
% Gamma Function |
| 1954 |
% |
| 1955 |
% \noindent \begin{tabular}{lll} |
| 1956 |
% Gamma Function & |\GammaFunc{z}| & $\GammaFunc{z}$ \\ |
| 1957 |
% Incomplete Gamma Function & |\GammaFunc{a,z}| & $\GammaFunc{a,z}$ \\ |
| 1958 |
% Generalized Incomplete Gamma Function & |\GammaFunc{a,x,y}| & $\GammaFunc{a,x,y}$ |
| 1959 |
% \end{tabular} |
| 1960 |
% \begin{macrocode} |
| 1961 |
\newcommand{\COOL@notation@GammaFuncParen}{p} |
| 1962 |
\newcommand{\GammaFunc}[1]{% |
| 1963 |
\listval{#1}{0}% |
| 1964 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 1965 |
{% |
| 1966 |
\Gamma\COOL@decide@paren{GammaFunc}{#1}% |
| 1967 |
}% |
| 1968 |
% ElseIf |
| 1969 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 1970 |
{% |
| 1971 |
\Gamma\COOL@decide@paren{GammaFunc}{#1}% |
| 1972 |
}% |
| 1973 |
% ElseIf |
| 1974 |
{ \ifthenelse{\value{COOL@listpointer} = 3}% |
| 1975 |
{% |
| 1976 |
\Gamma\COOL@decide@paren{GammaFunc}{#1}% |
| 1977 |
}% |
| 1978 |
% Else |
| 1979 |
{% |
| 1980 |
\PackageError{cool}{Invalid Argument}% |
| 1981 |
{`GammaFunc' can only accept a comma separate list of length 1 to 3}% |
| 1982 |
}% |
| 1983 |
}}% |
| 1984 |
} |
| 1985 |
% \end{macrocode} |
| 1986 |
% \end{macro} |
| 1987 |
% |
| 1988 |
% \begin{macro}{\IncGamma} |
| 1989 |
% incomplete Gamma function, |\IncGamma{a}{x}|, $\IncGamma{a}{x}$ |
| 1990 |
% \begin{macrocode} |
| 1991 |
\newcommand{\IncGamma}[2]{\GammaFunc{#1,#2}} |
| 1992 |
% \end{macrocode} |
| 1993 |
% \end{macro} |
| 1994 |
% |
| 1995 |
% \begin{macro}{\GenIncGamma} |
| 1996 |
% Generalized Incomplete Gamma, |\GenIncGamma{a}{x}{y}|, $\GenIncGamma{a}{x}{y}$ |
| 1997 |
% \begin{macrocode} |
| 1998 |
\newcommand{\GenIncGamma}[3]{\GammaFunc{#1, #2, #3}} |
| 1999 |
% \end{macrocode} |
| 2000 |
% \end{macro} |
| 2001 |
% |
| 2002 |
% \begin{macro}{\GammaRegularized} |
| 2003 |
% \begin{macro}{\RegIncGamma} |
| 2004 |
% \begin{macro}{\GammaReg} |
| 2005 |
% Regularized Incomplete Gamma |
| 2006 |
% |
| 2007 |
% \begin{tabular}{ll} |
| 2008 |
% |\GammaRegularized{a,x}| & $\GammaRegularized{a,x}$ \\ |
| 2009 |
% |\RegIncGamma{a}{x}| & $\RegIncGamma{a}{x}$ \\ |
| 2010 |
% |\GammaReg{a,x}| & $\GammaReg{a,x}$ \\ |
| 2011 |
% \end{tabular} |
| 2012 |
% \begin{macrocode} |
| 2013 |
\newcommand{\COOL@notation@GammaRegularizedParen}{p}% |
| 2014 |
\newcommand{\GammaRegularized}[1]{% |
| 2015 |
\listval{#1}{0}% |
| 2016 |
\ifthenelse{\value{COOL@listpointer} = 2}% |
| 2017 |
{% |
| 2018 |
Q\COOL@decide@paren{GammaRegularized}{#1}% |
| 2019 |
}% |
| 2020 |
% ElseIf |
| 2021 |
{ \ifthenelse{\value{COOL@listpointer} = 3}% |
| 2022 |
{% |
| 2023 |
Q\COOL@decide@paren{GammaRegularized}{#1}% |
| 2024 |
}% |
| 2025 |
% Else |
| 2026 |
{% |
| 2027 |
\PackageError{cool}{Invalid Argument}% |
| 2028 |
{`GammaRegularized' can only accept comma% |
| 2029 |
separated lists of length 2 or 3}% |
| 2030 |
}% |
| 2031 |
}% |
| 2032 |
} |
| 2033 |
\newcommand{\RegIncGamma}[2]{\GammaRegularized{#1, #2}} |
| 2034 |
\newcommand{\GammaReg}[1]{\GammaRegularized{#1}} |
| 2035 |
% \end{macrocode} |
| 2036 |
% \end{macro} |
| 2037 |
% \end{macro} |
| 2038 |
% \end{macro} |
| 2039 |
% |
| 2040 |
% \begin{macro}{\RegIncGammaInv} |
| 2041 |
% \begin{macro}{\InverseGammaRegularized} |
| 2042 |
% \begin{macro}{\GammaRegInv} |
| 2043 |
% Inverse of Regularized Incomplete Gamma, |
| 2044 |
% |
| 2045 |
% \begin{tabular}{ll} |
| 2046 |
% |\RegIncGammaInv{a}{x}| & $\RegIncGammaInv{a}{x}$ \\ |
| 2047 |
% |\InverseGammaRegularized{a,x}| & $\InverseGammaRegularized{a,x}$ \\ |
| 2048 |
% |\GammaRegInv{a,x}| & $\GammaRegInv{a,x}$ \\ |
| 2049 |
% \end{tabular} |
| 2050 |
% \begin{macrocode} |
| 2051 |
\newcommand{\COOL@notation@InverseGammaRegularizedParen}{p} |
| 2052 |
\newcommand{\InverseGammaRegularized}[1]{% |
| 2053 |
\listval{#1}{0}% |
| 2054 |
\ifthenelse{\value{COOL@listpointer} = 2}% |
| 2055 |
{% |
| 2056 |
Q^{-1}\COOL@decide@paren{InverseGammaRegularized}{#1}% |
| 2057 |
}% |
| 2058 |
% ElseIf |
| 2059 |
{ \ifthenelse{\value{COOL@listpointer} = 3}% |
| 2060 |
{% |
| 2061 |
Q^{-1}\COOL@decide@paren{InverseGammaRegularized}{#1}% |
| 2062 |
}% |
| 2063 |
% Else |
| 2064 |
{% |
| 2065 |
\PackageError{cool}{Invalid Argument}% |
| 2066 |
{`InverseGammaRegularized' can only accept% |
| 2067 |
a comma separated list of length 2 or 3}% |
| 2068 |
}% |
| 2069 |
}% |
| 2070 |
} |
| 2071 |
\newcommand{\RegIncGammaInv}[2]{\InverseGammaRegularized{#1, #2}} |
| 2072 |
\newcommand{\GammaRegInv}[1]{\InverseGammaRegularized{#1}} |
| 2073 |
% \end{macrocode} |
| 2074 |
% \end{macro} |
| 2075 |
% \end{macro} |
| 2076 |
% \end{macro} |
| 2077 |
% |
| 2078 |
% \begin{macro}{\GenRegIncGamma} |
| 2079 |
% Generalized Regularized Incomplete Gamma |
| 2080 |
% |
| 2081 |
% \begin{tabular}{ll} |
| 2082 |
% |\GenRegIncGamma{a}{x}{y}| & $\GenRegIncGamma{a}{x}{y}$ \\ |
| 2083 |
% |\GammaRegularized{a,x,y}| & $\GammaRegularized{a,x,y}$ |
| 2084 |
% \end{tabular} |
| 2085 |
% \begin{macrocode} |
| 2086 |
\newcommand{\GenRegIncGamma}[3]{\GammaRegularized{#1, #2, #3}} |
| 2087 |
% \end{macrocode} |
| 2088 |
% \end{macro} |
| 2089 |
% |
| 2090 |
% \begin{macro}{\GenRegIncGammaInv} |
| 2091 |
% Inverse of Gen. Reg. Incomplete Gamma, |\GenRegIncGammaInv{a}{x}{y}|, $\GenRegIncGammaInv{a}{x}{y}$ |
| 2092 |
% \begin{macrocode} |
| 2093 |
\newcommand{\GenRegIncGammaInv}[3]{\InverseGammaRegularized{#1, #2, #3}} |
| 2094 |
% \end{macrocode} |
| 2095 |
% \end{macro} |
| 2096 |
% |
| 2097 |
% \begin{macro}{\Pochhammer} |
| 2098 |
% Pochhammer Symbol |\Pochhammer{a}{n}|, $\Pochhammer{a}{n}$ |
| 2099 |
% \begin{macrocode} |
| 2100 |
\newcommand{\Pochhammer}[2]{\inp{#1}_{#2}} |
| 2101 |
% \end{macrocode} |
| 2102 |
% \end{macro} |
| 2103 |
% |
| 2104 |
% \begin{macro}{\LogGamma} |
| 2105 |
% Log Gamma Function, |\LogGamma{x}|, $\LogGamma{x}$ |
| 2106 |
% \begin{macrocode} |
| 2107 |
\newcommand{\COOL@notation@LogGammaParen}{p} |
| 2108 |
\DeclareMathOperator{\LogGammaSymb}{log\Gamma} |
| 2109 |
\newcommand{\LogGamma}[1]{\LogGammaSymb\COOL@decide@paren{LogGamma}{#1}} |
| 2110 |
% \end{macrocode} |
| 2111 |
% \end{macro} |
| 2112 |
% |
| 2113 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2114 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2115 |
% \subsubsection{Derivatives of Gamma Functions} |
| 2116 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2117 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2118 |
% |
| 2119 |
% \begin{macro}{\DiGamma} |
| 2120 |
% Digamma function, |\DiGamma{x}|, $\DiGamma{x}$ |
| 2121 |
% \begin{macrocode} |
| 2122 |
\newcommand{\COOL@notation@DiGammaParen}{p} |
| 2123 |
\newcommand{\DiGamma}[1]{\digamma\COOL@decide@paren{DiGamma}{#1}} |
| 2124 |
% \end{macrocode} |
| 2125 |
% \end{macro} |
| 2126 |
% PolyGamma function, |\PolyGamma{\nu}{x}|, $\PolyGamma{\nu}{x}$ |
| 2127 |
% \begin{macro}{\PolyGamma} |
| 2128 |
% |
| 2129 |
% \begin{macrocode} |
| 2130 |
\newcommand{\COOL@notation@PolyGammaParen}{p} |
| 2131 |
\newcommand{\PolyGamma}[2]% |
| 2132 |
{\psi^{\inp{#1}}\COOL@decide@paren{PolyGamma}{#2}} |
| 2133 |
% \end{macrocode} |
| 2134 |
% \end{macro} |
| 2135 |
% |
| 2136 |
% \begin{macro}{\HarmNum} |
| 2137 |
% Harmonic Number |
| 2138 |
% |
| 2139 |
% \begin{tabular}{lll} |
| 2140 |
% Harmonic Number & |\HarmNum{x}| & $\HarmNum{x}$ \\ |
| 2141 |
% General Harmonic Number & |\HarmNum{x,r}| & $\HarmNum{x,r}$ \\ |
| 2142 |
% \end{tabular} |
| 2143 |
% \begin{macrocode} |
| 2144 |
\newcommand{\HarmNum}[1]{% |
| 2145 |
\listval{#1}{0}% |
| 2146 |
\ifthenelse{\value{COOL@listpointer}=1}% |
| 2147 |
{% |
| 2148 |
H_{#1} |
| 2149 |
}% |
| 2150 |
% Else If |
| 2151 |
{ \ifthenelse{\value{COOL@listpointer}=2}% |
| 2152 |
{% |
| 2153 |
\liststore{#1}{COOL@list@temp@}% |
| 2154 |
H^{\inp{\COOL@list@temp@ii}}_{\COOL@list@temp@i}% |
| 2155 |
}% |
| 2156 |
% Else |
| 2157 |
{% |
| 2158 |
\PackageError{cool}{Invalid Argument}% |
| 2159 |
{`Harm Num' can only accept a comma separated list of length 1 or 2}% |
| 2160 |
}}% |
| 2161 |
} |
| 2162 |
% \end{macrocode} |
| 2163 |
% \end{macro} |
| 2164 |
% |
| 2165 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2166 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2167 |
% \subsubsection{Beta Functions} |
| 2168 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2169 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2170 |
% |
| 2171 |
% \begin{macro}{\Beta} |
| 2172 |
% \begin{tabular}{lll} |
| 2173 |
% Beta Function & |\Beta{a,b}| & $\Beta{a,b}$ \\ |
| 2174 |
% Incomplete Beta Function & |\Beta{z,a,b}| & $\Beta{z,a,b}$ \\ |
| 2175 |
% Generalized Incomplete Beta Function & |\Beta{z_1,z_2,a,b}| & $\Beta{z_1,z_2,a,b}$ |
| 2176 |
% \end{tabular} |
| 2177 |
% \begin{macrocode} |
| 2178 |
\newcommand{\COOL@notation@BetaParen}{p} |
| 2179 |
\newcommand{\Beta}[1]{% |
| 2180 |
\liststore{#1}{COOL@Beta@arg@}% |
| 2181 |
\listval{#1}{0}% |
| 2182 |
\ifthenelse{\value{COOL@listpointer} = 2}% |
| 2183 |
{% |
| 2184 |
B\COOL@decide@paren{Beta}{\COOL@Beta@arg@i, \COOL@Beta@arg@ii}% |
| 2185 |
}% |
| 2186 |
% ElseIf |
| 2187 |
{ \ifthenelse{\value{COOL@listpointer} = 3}% |
| 2188 |
{% |
| 2189 |
B_{\COOL@Beta@arg@i}% |
| 2190 |
\COOL@decide@paren{Beta}{\COOL@Beta@arg@ii, \COOL@Beta@arg@iii}% |
| 2191 |
}% |
| 2192 |
% ElseIf |
| 2193 |
{ \ifthenelse{\value{COOL@listpointer} = 4}% |
| 2194 |
{% |
| 2195 |
B_{\inp{\COOL@Beta@arg@i,\COOL@Beta@arg@ii}}% |
| 2196 |
\COOL@decide@paren{Beta}{\COOL@Beta@arg@iii, \COOL@Beta@arg@iv}% |
| 2197 |
}% |
| 2198 |
% Else |
| 2199 |
{% |
| 2200 |
\PackageError{cool}{Invalid Argument}% |
| 2201 |
{`Beta' can only accept a comma separated list of length 2 to 4}% |
| 2202 |
}% |
| 2203 |
}}% |
| 2204 |
} |
| 2205 |
% \end{macrocode} |
| 2206 |
% \end{macro} |
| 2207 |
% |
| 2208 |
% \begin{macro}{\IncBeta} |
| 2209 |
% Incomplete Beta Function |
| 2210 |
% |
| 2211 |
% \begin{tabular}{ll} |
| 2212 |
% |\IncBeta{z}{a}{b}| & $\IncBeta{z}{a}{b}$ \\ |
| 2213 |
% |\Beta{z,a,b}| & $\Beta{z,a,b}$ |
| 2214 |
% \end{tabular} |
| 2215 |
% \begin{macrocode} |
| 2216 |
\newcommand{\IncBeta}[3]{\Beta{#1,#2, #3}} |
| 2217 |
% \end{macrocode} |
| 2218 |
% \end{macro} |
| 2219 |
% |
| 2220 |
% \begin{macro}{\GenIncBeta} |
| 2221 |
% Generalized Incomplete Beta Function |
| 2222 |
% |
| 2223 |
% \begin{tabular}{ll} |
| 2224 |
% |\GenIncBeta{x}{y}{a}{b}| & $\GenIncBeta{x}{y}{a}{b}$ \\ |
| 2225 |
% |\Beta{x,y,a,b}| & $\Beta{x,y,a,b}$ |
| 2226 |
% \end{tabular} |
| 2227 |
% \begin{macrocode} |
| 2228 |
\newcommand{\GenIncBeta}[4]{\Beta{#1,#2,#3,#4}} |
| 2229 |
% \end{macrocode} |
| 2230 |
% \end{macro} |
| 2231 |
% |
| 2232 |
% \begin{macro}{\BetaRegularized} |
| 2233 |
% \begin{macro}{\BetaReg} |
| 2234 |
% \begin{macro}{\RegIncBeta} |
| 2235 |
% Regularized Incomplete Beta Function |
| 2236 |
% |
| 2237 |
% \begin{tabular}{ll} |
| 2238 |
% |\BetaRegularized{z,a,b}| & $\BetaRegularized{z,a,b}$ \\ |
| 2239 |
% |\BetaReg{z,a,b}| & $\BetaReg{z,a,b}$ \\ |
| 2240 |
% |\RegIncBeta{z}{a}{b}| & $\RegIncBeta{z}{a}{b}$ |
| 2241 |
% \end{tabular} |
| 2242 |
% \begin{macrocode} |
| 2243 |
\newcommand{\COOL@notation@BetaRegularizedParen}{p} |
| 2244 |
\newcommand{\BetaRegularized}[1]{% |
| 2245 |
\liststore{#1}{COOL@BetaRegularized@arg@}% |
| 2246 |
\listval{#1}{0}% |
| 2247 |
\ifthenelse{\value{COOL@listpointer} = 3}% |
| 2248 |
{% |
| 2249 |
I_{\COOL@BetaRegularized@arg@i}% |
| 2250 |
\COOL@decide@paren{BetaRegularized}% |
| 2251 |
{\COOL@BetaRegularized@arg@ii, \COOL@BetaRegularized@arg@iii}% |
| 2252 |
}% |
| 2253 |
% ElseIf |
| 2254 |
{ \ifthenelse{\value{COOL@listpointer} = 4}% |
| 2255 |
{% |
| 2256 |
I_{\inp{\COOL@BetaRegularized@arg@i, \COOL@BetaRegularized@arg@ii}}% |
| 2257 |
\COOL@decide@paren{BetaRegularized}% |
| 2258 |
{\COOL@BetaRegularized@arg@iii, \COOL@BetaRegularized@arg@iv}% |
| 2259 |
}% |
| 2260 |
% Else |
| 2261 |
{% |
| 2262 |
\PackageError{cool}{Invalid Argument}% |
| 2263 |
{`BetaRegularized' can only accept% |
| 2264 |
a comma separated list of length 3 or 4}% |
| 2265 |
}% |
| 2266 |
}% |
| 2267 |
} |
| 2268 |
\newcommand{\RegIncBeta}[3]{\BetaRegularized{#1,#2,#3}} |
| 2269 |
\newcommand{\BetaReg}[1]{\BetaRegularized{#1}} |
| 2270 |
% \end{macrocode} |
| 2271 |
% \end{macro} |
| 2272 |
% \end{macro} |
| 2273 |
% \end{macro} |
| 2274 |
% |
| 2275 |
% \begin{macro}{\InverseBetaRegularized} |
| 2276 |
% \begin{macro}{\BetaRegInv} |
| 2277 |
% \begin{macro}{\RegIncBetaInv} |
| 2278 |
% Inverse of Regularized Incomplete Beta Function |
| 2279 |
% |
| 2280 |
% \begin{tabular}{ll} |
| 2281 |
% |\InverseBetaRegularized{z,a,b}| & $\InverseBetaRegularized{z,a,b}$ \\ |
| 2282 |
% |\BetaRegInv{z,a,b}| & $\BetaRegInv{z,a,b}$ \\ |
| 2283 |
% |\RegIncBetaInv{z}{a}{b}| & $\RegIncBetaInv{z}{a}{b}$ |
| 2284 |
% \end{tabular} |
| 2285 |
% \begin{macrocode} |
| 2286 |
\newcommand{\COOL@notation@InverseBetaRegularizedParen}{p} |
| 2287 |
\newcommand{\InverseBetaRegularized}[1]{% |
| 2288 |
\liststore{#1}{COOL@InverseBetaRegularized@arg@}% |
| 2289 |
\listval{#1}{0}% |
| 2290 |
\ifthenelse{\value{COOL@listpointer} = 3}% |
| 2291 |
{% |
| 2292 |
I^{-1}_{\COOL@InverseBetaRegularized@arg@i}% |
| 2293 |
\COOL@decide@paren{InverseBetaRegularized}% |
| 2294 |
{\COOL@InverseBetaRegularized@arg@ii,% |
| 2295 |
\COOL@InverseBetaRegularized@arg@iii}% |
| 2296 |
}% |
| 2297 |
% ElseIf |
| 2298 |
{ \ifthenelse{\value{COOL@listpointer} = 4}% |
| 2299 |
{% |
| 2300 |
I^{-1}_{\inp{ \COOL@InverseBetaRegularized@arg@i,% |
| 2301 |
\COOL@InverseBetaRegularized@arg@ii% |
| 2302 |
}% |
| 2303 |
}% |
| 2304 |
\COOL@decide@paren{InverseBetaRegularized}% |
| 2305 |
{\COOL@InverseBetaRegularized@arg@iii,% |
| 2306 |
\COOL@InverseBetaRegularized@arg@iv}% |
| 2307 |
}% |
| 2308 |
% Else |
| 2309 |
{% |
| 2310 |
\PackageError{cool}{Invalid Argument}% |
| 2311 |
{`InverseBetaRegularized' can only accept% |
| 2312 |
a comma separated list of length 3 or 4}% |
| 2313 |
}% |
| 2314 |
}% |
| 2315 |
} |
| 2316 |
\newcommand{\RegIncBetaInv}[3]{\InverseBetaRegularized{#1,#2,#3}} |
| 2317 |
\newcommand{\BetaRegInv}[1]{\InverseBetaRegularized{#1}} |
| 2318 |
% \end{macrocode} |
| 2319 |
% \end{macro} |
| 2320 |
% \end{macro} |
| 2321 |
% \end{macro} |
| 2322 |
% |
| 2323 |
% \begin{macro}{\GenRegIncBeta} |
| 2324 |
% Generalized Regularized Incomplete Beta Func |
| 2325 |
% |
| 2326 |
% \begin{tabular}{ll} |
| 2327 |
% |\GenRegIncBeta{x}{y}{a}{b}| & $\GenRegIncBeta{x}{y}{a}{b}$ \\ |
| 2328 |
% |\Beta{x,y,a,b}| & $\Beta{x,y,a,b}$ |
| 2329 |
% \end{tabular} |
| 2330 |
% \begin{macrocode} |
| 2331 |
\newcommand{\GenRegIncBeta}[4]{\Beta{#1,#2,#3,#4}} |
| 2332 |
% \end{macrocode} |
| 2333 |
% \end{macro} |
| 2334 |
% |
| 2335 |
% \begin{macro}{\GenRegIncBetaInv} |
| 2336 |
% Inverse of Generalized Regularized Incomplete Beta Function |
| 2337 |
% |
| 2338 |
% \begin{tabular}{ll} |
| 2339 |
% |\GenRegIncBetaInv{x}{y}{z}{b}| & $\GenRegIncBetaInv{x}{y}{z}{b}$ \\ |
| 2340 |
% |\InverseBetaRegularized{x,y,z,b}| & $\InverseBetaRegularized{x,y,z,b}$ |
| 2341 |
% \end{tabular} |
| 2342 |
% \begin{macrocode} |
| 2343 |
\newcommand{\GenRegIncBetaInv}[4]{\InverseBetaRegularized{#1,#2,#3,#4}} |
| 2344 |
% \end{macrocode} |
| 2345 |
% \end{macro} |
| 2346 |
% |
| 2347 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2348 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2349 |
% \subsubsection{Error Functions} |
| 2350 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2351 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2352 |
% |
| 2353 |
% \begin{macro}{\Erf} |
| 2354 |
% \begin{tabular}{lll} |
| 2355 |
% Error Function & |\Erf{x}| & $\Erf{x}$ \\ |
| 2356 |
% Generalized Error Function & |\Erf{x,y}| & $\Erf{x,y}$ |
| 2357 |
% \end{tabular} |
| 2358 |
% \begin{macrocode} |
| 2359 |
\newcommand{\COOL@notation@ErfParen}{p} |
| 2360 |
\DeclareMathOperator{\ErfSymb}{erf} |
| 2361 |
\newcommand{\Erf}[1]{% |
| 2362 |
\liststore{#1}{COOL@Erf@arg@}% |
| 2363 |
\listval{#1}{0}% |
| 2364 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 2365 |
{% |
| 2366 |
\ErfSymb\COOL@decide@paren{Erf}{#1} |
| 2367 |
}% |
| 2368 |
% ElseIf |
| 2369 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 2370 |
{% |
| 2371 |
\ErfSymb\COOL@decide@paren{Erf}{#1} |
| 2372 |
}% |
| 2373 |
% Else |
| 2374 |
{% |
| 2375 |
\PackageError{cool}{Invalid Argument}% |
| 2376 |
{`Erf' can only accept a comma separated list of length 1 or 2}% |
| 2377 |
}% |
| 2378 |
}% |
| 2379 |
} |
| 2380 |
% \end{macrocode} |
| 2381 |
% \end{macro} |
| 2382 |
% |
| 2383 |
% \begin{macro}{\ErfInv} |
| 2384 |
% Inverse of Error Function |
| 2385 |
% |
| 2386 |
% \begin{tabular}{ll} |
| 2387 |
% |\ErfInv{x}| & $\ErfInv{x}$ \\ |
| 2388 |
% |\ErfInv{x,y}| & $\ErfInv{x,y}$ |
| 2389 |
% \end{tabular} |
| 2390 |
% \begin{macrocode} |
| 2391 |
\newcommand{\COOL@notation@ErfInvParen}{p} |
| 2392 |
\newcommand{\ErfInv}[1]{% |
| 2393 |
\liststore{#1}{COOL@Erf@arg@}% |
| 2394 |
\listval{#1}{0}% |
| 2395 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 2396 |
{% |
| 2397 |
\ErfSymb^{-1}\COOL@decide@paren{ErfInv}{#1} |
| 2398 |
}% |
| 2399 |
% ElseIf |
| 2400 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 2401 |
{% |
| 2402 |
\ErfSymb^{-1}\COOL@decide@paren{ErfInv}{#1} |
| 2403 |
}% |
| 2404 |
% Else |
| 2405 |
{% |
| 2406 |
\PackageError{cool}{Invalid Argument}% |
| 2407 |
{`Erf' can only accept a comma separated list of length 1 or 2}% |
| 2408 |
}% |
| 2409 |
}% |
| 2410 |
} |
| 2411 |
% \end{macrocode} |
| 2412 |
% \end{macro} |
| 2413 |
|
| 2414 |
% |
| 2415 |
% \begin{macro}{\GenErf} |
| 2416 |
% \begin{macro}{\GenErfInv} |
| 2417 |
% Generalized Error Function and its inverse |
| 2418 |
% |
| 2419 |
% \begin{tabular}{ll} |
| 2420 |
% |\GenErf{z_1}{z_2}| & $\GenErf{z_1}{z_2}$ \\ |
| 2421 |
% |\GenErfInv{z_1}{z_2}| & $\GenErfInv{z_1}{z_2}$ |
| 2422 |
% \end{tabular} |
| 2423 |
% \begin{macrocode} |
| 2424 |
\newcommand{\GenErf}[2]{\Erf{#1,#2}} |
| 2425 |
\newcommand{\GenErfInv}[2]{\ErfInv{#1, #2}} |
| 2426 |
% \end{macrocode} |
| 2427 |
% \end{macro} |
| 2428 |
% \end{macro} |
| 2429 |
% |
| 2430 |
% \begin{macro}{\Erfc} |
| 2431 |
% Complimentary Error Function and its inverse |
| 2432 |
% |
| 2433 |
% \begin{tabular}{ll} |
| 2434 |
% |\Erfc{z}| & $\Erfc{z}$ \\ |
| 2435 |
% |\ErfcInv{z}| & $\ErfcInv{z}$ |
| 2436 |
% \end{tabular} |
| 2437 |
% \begin{macrocode} |
| 2438 |
\newcommand{\COOL@notation@ErfcParen}{p} |
| 2439 |
\DeclareMathOperator{\ErfcSymb}{erfc} |
| 2440 |
\newcommand{\Erfc}[1]{\ErfcSymb\COOL@decide@paren{Erfc}{#1}} |
| 2441 |
\newcommand{\COOL@notation@ErfcInvParen}{p} |
| 2442 |
\newcommand{\ErfcInv}[1]% |
| 2443 |
{\ErfcSymb^{-1}\COOL@decide@paren{ErfcInv}{#1}} |
| 2444 |
% \end{macrocode} |
| 2445 |
% \end{macro} |
| 2446 |
% |
| 2447 |
% \begin{macro}{\Erfi} |
| 2448 |
% Imaginary Error Function, |\Erfi{z}|, $\Erfi{z}$ |
| 2449 |
% \begin{macrocode} |
| 2450 |
\newcommand{\COOL@notation@ErfiParen}{p} |
| 2451 |
\DeclareMathOperator{\ErfiSymb}{erfi} |
| 2452 |
\newcommand{\Erfi}[1]{\ErfiSymb\COOL@decide@paren{Erfi}{#1}} |
| 2453 |
% \end{macrocode} |
| 2454 |
% \end{macro} |
| 2455 |
% |
| 2456 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2457 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2458 |
% \subsubsection{Fresnel Integrals} |
| 2459 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2460 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2461 |
% |
| 2462 |
% \begin{macro}{\FresnelS} |
| 2463 |
% Fresnel Integral, |\FresnelS{z}|, $\FresnelS{z}$ |
| 2464 |
% \begin{macrocode} |
| 2465 |
\newcommand{\COOL@notation@FresnelSParen}{p} |
| 2466 |
\newcommand{\FresnelS}[1]{S\COOL@decide@paren{FresnelS}{#1}} |
| 2467 |
% \end{macrocode} |
| 2468 |
% \end{macro} |
| 2469 |
% |
| 2470 |
% \begin{macro}{\FresnelC} |
| 2471 |
% Fresnel Integral, |\FresnelC{z}|, $\FresnelC{z}$ |
| 2472 |
% \begin{macrocode} |
| 2473 |
\newcommand{\COOL@notation@FresnelCParen}{p} |
| 2474 |
\newcommand{\FresnelC}[1]{C\COOL@decide@paren{FresnelC}{#1}} |
| 2475 |
% \end{macrocode} |
| 2476 |
% \end{macro} |
| 2477 |
% |
| 2478 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2479 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2480 |
% \subsubsection{Exponential Integrals} |
| 2481 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2482 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2483 |
% |
| 2484 |
% \begin{macro}{\ExpIntE} |
| 2485 |
% Exponential Integral, |\ExpIntE{\nu}{x}|, $\ExpIntE{\nu}{x}$ |
| 2486 |
% \begin{macrocode} |
| 2487 |
\newcommand{\COOL@notation@ExpIntEParen}{p} |
| 2488 |
\newcommand{\ExpIntE}[2]{E_{#1}\COOL@decide@paren{ExpIntE}{#2}} |
| 2489 |
% \end{macrocode} |
| 2490 |
% \end{macro} |
| 2491 |
% |
| 2492 |
% \begin{macro}{\ExpIntEi} |
| 2493 |
% Exponential Integral, |\ExpIntEi{x}|, $\ExpIntEi{x}$ |
| 2494 |
% \begin{macrocode} |
| 2495 |
\newcommand{\COOL@notation@ExpIntEiParen}{p} |
| 2496 |
\DeclareMathOperator{\ExpIntEiSymb}{Ei} |
| 2497 |
\newcommand{\ExpIntEi}[1]% |
| 2498 |
{\ExpIntEiSymb\COOL@decide@paren{ExpIntEi}{#1}} |
| 2499 |
% \end{macrocode} |
| 2500 |
% \end{macro} |
| 2501 |
% |
| 2502 |
% \begin{macro}{\LogInt} |
| 2503 |
% Logarithmic Integral, |\LogInt{x}|, $\LogInt{x}$ |
| 2504 |
% \begin{macrocode} |
| 2505 |
\newcommand{\COOL@notation@LogIntParen}{p} |
| 2506 |
\DeclareMathOperator{\LogIntSymb}{li} |
| 2507 |
\newcommand{\LogInt}[1]{\LogIntSymb\COOL@decide@paren{LogInt}{#1}} |
| 2508 |
% \end{macrocode} |
| 2509 |
% \end{macro} |
| 2510 |
% |
| 2511 |
% \begin{macro}{\SinInt} |
| 2512 |
% Sine Integral, |\SinInt{x}|, $\SinInt{x}$ |
| 2513 |
% \begin{macrocode} |
| 2514 |
\newcommand{\COOL@notation@SinIntParen}{p} |
| 2515 |
\DeclareMathOperator{\SinIntSymb}{Si} |
| 2516 |
\newcommand{\SinInt}[1]{\SinIntSymb\COOL@decide@paren{SinInt}{#1}} |
| 2517 |
% \end{macrocode} |
| 2518 |
% \end{macro} |
| 2519 |
% |
| 2520 |
% \begin{macro}{\CosInt} |
| 2521 |
% Cosine Integral, |\CosInt{x}|, $\CosInt{x}$ |
| 2522 |
% \begin{macrocode} |
| 2523 |
\newcommand{\COOL@notation@CosIntParen}{p} |
| 2524 |
\DeclareMathOperator{\CosIntSymb}{Ci} |
| 2525 |
\newcommand{\CosInt}[1]{\CosIntSymb\COOL@decide@paren{CosInt}{#1}} |
| 2526 |
% \end{macrocode} |
| 2527 |
% \end{macro} |
| 2528 |
% |
| 2529 |
% \begin{macro}{\SinhInt} |
| 2530 |
% Hyberbolic Sine Integral, |\SinhInt{x}|, $\SinhInt{x}$ |
| 2531 |
% \begin{macrocode} |
| 2532 |
\newcommand{\COOL@notation@SinhIntParen}{p} |
| 2533 |
\DeclareMathOperator{\SinhIntSymb}{Shi} |
| 2534 |
\newcommand{\SinhInt}[1]{\SinhIntSymb\COOL@decide@paren{SinhInt}{#1}} |
| 2535 |
% \end{macrocode} |
| 2536 |
% \end{macro} |
| 2537 |
% |
| 2538 |
% \begin{macro}{\CoshInt} |
| 2539 |
% Hyberbolic Cosine Integral, |\CoshInt{x}|, $\CoshInt{x}$ |
| 2540 |
% \begin{macrocode} |
| 2541 |
\newcommand{\COOL@notation@CoshIntParen}{p} |
| 2542 |
\DeclareMathOperator{\CoshIntSymb}{Chi} |
| 2543 |
\newcommand{\CoshInt}[1]{\CoshIntSymb\COOL@decide@paren{CoshInt}{#1}} |
| 2544 |
% \end{macrocode} |
| 2545 |
% \end{macro} |
| 2546 |
% |
| 2547 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2548 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2549 |
% \subsubsection{Hypergeometric Functions} |
| 2550 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 2551 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2552 |
% |
| 2553 |
% \begin{macro}{\COOL@Hypergeometric@pq@ab@value} |
| 2554 |
% This macro is a decision maker that decides what to return for the Hypergeometric function since |
| 2555 |
% its results vary based on the nature of the input. This macro is called as |
| 2556 |
% |
| 2557 |
% |\COOL@Hypergeometric@pq@ab@value| |
| 2558 |
% \DeleteShortVerb{\|}% |
| 2559 |
% \verb|{|`p'\texttt{|}`q'\verb|}|% |
| 2560 |
% \marg{p\_input\textnormal{\texttt{|}}q\_input}% |
| 2561 |
% \verb|{|`a'\texttt{|}`b'\verb|}|% |
| 2562 |
% \marg{a\_input\textnormal{\texttt{|}}b\_input}% |
| 2563 |
% \MakeShortVerb{\|} |
| 2564 |
% \begin{macrocode} |
| 2565 |
\newcommand{\COOL@Hypergeometric@pq@ab@value}[4]{% |
| 2566 |
\ifthenelse{\boolean{COOL@#1@isint} \AND \boolean{COOL@#3@islist}}% |
| 2567 |
{% #1 is an INT and #3 is a LIST |
| 2568 |
\ifthenelse{ #2 = 0 }% |
| 2569 |
{% |
| 2570 |
\PackageWarning{cool}{`#3'-arg ignored}% |
| 2571 |
}% |
| 2572 |
% Else |
| 2573 |
{% |
| 2574 |
\ifthenelse{ #2 = 1 }% |
| 2575 |
{% |
| 2576 |
\PackageError{cool}{`Hypergeometric' `#1'-arg mismatch with `#3'-arg}{}% |
| 2577 |
}% |
| 2578 |
% Else |
| 2579 |
{% |
| 2580 |
#4% |
| 2581 |
}% |
| 2582 |
}% |
| 2583 |
}% |
| 2584 |
% Else |
| 2585 |
{}% |
| 2586 |
\ifthenelse{ \boolean{COOL@#1@isint} \AND |
| 2587 |
\NOT \boolean{COOL@#3@islist} }% |
| 2588 |
{% |
| 2589 |
\ifthenelse{ #2 = 0 }% |
| 2590 |
{% |
| 2591 |
% return nothing |
| 2592 |
}% |
| 2593 |
% Else |
| 2594 |
{% |
| 2595 |
\ifthenelse{ #2 = 1 }% |
| 2596 |
{% |
| 2597 |
% return |
| 2598 |
#4% |
| 2599 |
}% |
| 2600 |
% Else |
| 2601 |
{% |
| 2602 |
\forLoop{1}{#2}{COOL@ct} |
| 2603 |
{% |
| 2604 |
\ifthenelse{ \value{COOL@ct} = 1 }{}{,}% |
| 2605 |
#4_{\arabic{COOL@ct}}% |
| 2606 |
}% end for loop |
| 2607 |
}% |
| 2608 |
}% |
| 2609 |
}% |
| 2610 |
% else |
| 2611 |
{}% |
| 2612 |
\ifthenelse{ \NOT \boolean{COOL@#1@isint} \AND |
| 2613 |
\boolean{COOL@#3@islist} }% |
| 2614 |
{% |
| 2615 |
\PackageError{cool}{Invalid Argument}% |
| 2616 |
{`Hypergeometric': `#1'-arg is not int but `#3'-arg is list} |
| 2617 |
}% |
| 2618 |
% else |
| 2619 |
{}% |
| 2620 |
\ifthenelse{ \NOT \boolean{COOL@#1@isint} \AND |
| 2621 |
\NOT \boolean{COOL@#3@islist} }% |
| 2622 |
{% |
| 2623 |
%return |
| 2624 |
#4_1,\ldots,#4_{#2}% |
| 2625 |
}% |
| 2626 |
% else |
| 2627 |
{}% |
| 2628 |
}% |
| 2629 |
% \end{macrocode} |
| 2630 |
% \end{macro} |
| 2631 |
% |
| 2632 |
% \begin{macro}{\Hypergeometric} |
| 2633 |
% Generalized Hypergeometric function. $\Hypergeometric{p}{q}{a}{b}{x}$ |
| 2634 |
% |
| 2635 |
% \begin{tabular}{lr} |
| 2636 |
% |\Hypergeometric{0}{0}{}{}{x}| & $\Hypergeometric{0}{0}{}{}{x}$ \\ |
| 2637 |
% |\Hypergeometric{0}{1}{}{b}{x}| & $\Hypergeometric{0}{1}{}{b}{x}$ \\ |
| 2638 |
% |\Hypergeometric{1}{1}{a}{b}{x}| & $\Hypergeometric{1}{1}{a}{b}{x}$ \\ |
| 2639 |
% |\Hypergeometric{1}{1}{1}{1}{x}| & $\Hypergeometric{1}{1}{1}{1}{x}$ \\ |
| 2640 |
% |\Hypergeometric{3}{5}{a}{b}{x}| \\ |
| 2641 |
% \multicolumn{2}{r}{$\Hypergeometric{3}{5}{a}{b}{x}$} |
| 2642 |
% \\ |
| 2643 |
% |\Hypergeometric{3}{5}{1,2,3}{1,2,3,4,5}{x}| |
| 2644 |
% \\ |
| 2645 |
% \multicolumn{2}{r}{$\Hypergeometric{3}{5}{1,2,3}{1,2,3,4,5}{x}$} |
| 2646 |
% \\ |
| 2647 |
% |\Hypergeometric{p}{5}{a}{b}{x}| \\ |
| 2648 |
% \multicolumn{2}{r}{$\Hypergeometric{p}{5}{a}{b}{x}$} |
| 2649 |
% \\ |
| 2650 |
% |\Hypergeometric{p}{3}{a}{1,2,3}{x}| \\ |
| 2651 |
% \multicolumn{2}{r}{$\Hypergeometric{p}{3}{a}{1,2,3}{x}$ } |
| 2652 |
% \\ |
| 2653 |
% |\Hypergeometric{p}{q}{a}{b}{x}| \\ |
| 2654 |
% \multicolumn{2}{r}{$\Hypergeometric{p}{q}{a}{b}{x}$} |
| 2655 |
% \end{tabular} |
| 2656 |
% \begin{macrocode} |
| 2657 |
\newcommand{\COOL@notation@HypergeometricParen}{p} |
| 2658 |
\newcommand{\COOL@notation@HypergeometricSymb}{F} |
| 2659 |
\newcommand{\Hypergeometric}[6][F]{% |
| 2660 |
\provideboolean{COOL@p@isint}% |
| 2661 |
\provideboolean{COOL@q@isint}% |
| 2662 |
\provideboolean{COOL@a@islist}% |
| 2663 |
\provideboolean{COOL@b@islist}% |
| 2664 |
\isint{#2}{COOL@isint}% |
| 2665 |
\ifthenelse{\boolean{COOL@isint}}% |
| 2666 |
{\setboolean{COOL@p@isint}{true}}% |
| 2667 |
% Else |
| 2668 |
{\setboolean{COOL@p@isint}{false}}% |
| 2669 |
\isint{#3}{COOL@isint}% |
| 2670 |
\ifthenelse{\boolean{COOL@isint}}% |
| 2671 |
{\setboolean{COOL@q@isint}{true}}% |
| 2672 |
% Else |
| 2673 |
{\setboolean{COOL@q@isint}{false}}% |
| 2674 |
\listval{#4}{0}% |
| 2675 |
\ifthenelse{\value{COOL@listpointer}>1}% |
| 2676 |
{\setboolean{COOL@a@islist}{true}}% |
| 2677 |
% Else |
| 2678 |
{\setboolean{COOL@a@islist}{false}}% |
| 2679 |
% \end{macrocode} |
| 2680 |
% ensure that the submitted list is the same length as p |
| 2681 |
% \begin{macrocode} |
| 2682 |
\ifthenelse{ \boolean{COOL@p@isint} \AND |
| 2683 |
\boolean{COOL@a@islist} \AND |
| 2684 |
\NOT \( #2 = \value{COOL@listpointer} \) }% |
| 2685 |
{% |
| 2686 |
\PackageError{cool}{`Hypergeometric' `p'-arg mismatch with `a'-arg}{}% |
| 2687 |
}% |
| 2688 |
% else |
| 2689 |
{}% |
| 2690 |
\listval{#5}{0}% |
| 2691 |
\ifthenelse{\value{COOL@listpointer}>1}% |
| 2692 |
{\setboolean{COOL@b@islist}{true}}% |
| 2693 |
% Else |
| 2694 |
{\setboolean{COOL@b@islist}{false}}% |
| 2695 |
% \end{macrocode} |
| 2696 |
% ensure that the submitted `b' list is the same length as q |
| 2697 |
% \begin{macrocode} |
| 2698 |
\ifthenelse{ \boolean{COOL@q@isint} \AND |
| 2699 |
\boolean{COOL@b@islist} \AND |
| 2700 |
\NOT \( #3 = \value{COOL@listpointer} \) }% |
| 2701 |
{% |
| 2702 |
\PackageError{cool}{`Hypergeometric' `q'-arg mismatch with `b'-arg}% |
| 2703 |
{`b' list is not the same length as `q'}% |
| 2704 |
}% |
| 2705 |
% else |
| 2706 |
{}% |
| 2707 |
% troubleshoot |
| 2708 |
\ifthenelse{ \boolean{COOL@a@islist} \AND \NOT \boolean{COOL@p@isint} }% |
| 2709 |
{% |
| 2710 |
\PackageError{cool}{`Hypergeometric' `a'-arg mismatch with `p'-arg}% |
| 2711 |
{happens if `a'-arg is a list and `p'-arg isn't an integer}% |
| 2712 |
}% |
| 2713 |
% else |
| 2714 |
{}% |
| 2715 |
\ifthenelse{ \boolean{COOL@b@islist} \AND \NOT \boolean{COOL@q@isint} }% |
| 2716 |
{% |
| 2717 |
\PackageError{cool}{`Hypergeometric' `b'-arg mismatch with `q'-arg}% |
| 2718 |
{happens if `b'-arg is a list and `q'-arg isn't an integer}% |
| 2719 |
}% |
| 2720 |
% else |
| 2721 |
{}% |
| 2722 |
% \end{macrocode} |
| 2723 |
% First print the ${}_p F_q$ |
| 2724 |
% \begin{macrocode} |
| 2725 |
{}_{#2}{\COOL@notation@HypergeometricSymb}_{#3}% |
| 2726 |
\COOL@decide@paren{Hypergeometric}% |
| 2727 |
{% |
| 2728 |
\COOL@Hypergeometric@pq@ab@value{p}{#2}{a}{#4};% |
| 2729 |
\COOL@Hypergeometric@pq@ab@value{q}{#3}{b}{#5};% |
| 2730 |
#6% |
| 2731 |
}% |
| 2732 |
} |
| 2733 |
% \end{macrocode} |
| 2734 |
% \end{macro} |
| 2735 |
% |
| 2736 |
% |
| 2737 |
% \begin{macro}{\RegHypergeometric} |
| 2738 |
% Regularized hypergeometric function $\RegHypergeometric{p}{q}{a}{b}{x}$ |
| 2739 |
% \begin{macrocode} |
| 2740 |
\newcommand{\COOL@notation@RegHypergeometricParen}{p} |
| 2741 |
\newcommand{\COOL@notation@RegHypergeometricSymb}{\tilde{F}} |
| 2742 |
\newcommand{\RegHypergeometric}[6][\tilde{F}]{% |
| 2743 |
\provideboolean{COOL@p@isint}% |
| 2744 |
\provideboolean{COOL@q@isint}% |
| 2745 |
\provideboolean{COOL@a@islist}% |
| 2746 |
\provideboolean{COOL@b@islist}% |
| 2747 |
\isint{#2}{COOL@isint}% |
| 2748 |
\ifthenelse{\boolean{COOL@isint}}% |
| 2749 |
{\setboolean{COOL@p@isint}{true}}% |
| 2750 |
% Else |
| 2751 |
{\setboolean{COOL@p@isint}{false}}% |
| 2752 |
\isint{#3}{COOL@isint}% |
| 2753 |
\ifthenelse{\boolean{COOL@isint}}% |
| 2754 |
{\setboolean{COOL@q@isint}{true}}% |
| 2755 |
% Else |
| 2756 |
{\setboolean{COOL@q@isint}{false}}% |
| 2757 |
\listval{#4}{0}% |
| 2758 |
\ifthenelse{\value{COOL@listpointer}>1}% |
| 2759 |
{\setboolean{COOL@a@islist}{true}}% |
| 2760 |
% Else |
| 2761 |
{\setboolean{COOL@a@islist}{false}}% |
| 2762 |
% \end{macrocode} |
| 2763 |
% ensure that the submitted list is the same length as p |
| 2764 |
% \begin{macrocode} |
| 2765 |
\ifthenelse{ \boolean{COOL@p@isint} \AND |
| 2766 |
\boolean{COOL@a@islist} \AND |
| 2767 |
\NOT \( #2 = \value{COOL@listpointer} \) }% |
| 2768 |
{% |
| 2769 |
\PackageError{cool}% |
| 2770 |
{`RegHypergeometric' `p'-arg mismatch with `a'-arg}{}% |
| 2771 |
}% |
| 2772 |
% else |
| 2773 |
{}% |
| 2774 |
\listval{#5}{0}% |
| 2775 |
\ifthenelse{\value{COOL@listpointer}>1}% |
| 2776 |
{\setboolean{COOL@b@islist}{true}}% |
| 2777 |
% Else |
| 2778 |
{\setboolean{COOL@b@islist}{false}}% |
| 2779 |
% \end{macrocode} |
| 2780 |
% ensure that the submitted `b' list is the same length as q |
| 2781 |
% \begin{macrocode} |
| 2782 |
\ifthenelse{ \boolean{COOL@q@isint} \AND |
| 2783 |
\boolean{COOL@b@islist} \AND |
| 2784 |
\NOT \( #3 = \value{COOL@listpointer} \) }% |
| 2785 |
{% |
| 2786 |
\PackageError{cool}% |
| 2787 |
{`RegHypergeometric' `q'-arg mismatch with `b'-arg}% |
| 2788 |
{`b' list is not the same length as `q'}% |
| 2789 |
}% |
| 2790 |
% else |
| 2791 |
{}% |
| 2792 |
% troubleshoot |
| 2793 |
\ifthenelse{ \boolean{COOL@a@islist} \AND \NOT \boolean{COOL@p@isint} }% |
| 2794 |
{% |
| 2795 |
\PackageError{cool}% |
| 2796 |
{`RegHypergeometric' `a'-arg mismatch with `p'-arg}% |
| 2797 |
{happens if `a'-arg is a list and `p'-arg isn't an integer}% |
| 2798 |
}% |
| 2799 |
% else |
| 2800 |
{}% |
| 2801 |
\ifthenelse{ \boolean{COOL@b@islist} \AND \NOT \boolean{COOL@q@isint} }% |
| 2802 |
{% |
| 2803 |
\PackageError{cool}% |
| 2804 |
{`RegHypergeometric' `b'-arg mismatch with `q'-arg}% |
| 2805 |
{happens if `b'-arg is a list and `q'-arg isn't an integer}% |
| 2806 |
}% |
| 2807 |
% else |
| 2808 |
{}% |
| 2809 |
% \end{macrocode} |
| 2810 |
% First print the ${}_p F_q$ |
| 2811 |
% \begin{macrocode} |
| 2812 |
{}_{#2}{\COOL@notation@RegHypergeometricSymb}_{#3}% |
| 2813 |
\COOL@decide@paren{RegHypergeometric}% |
| 2814 |
{% |
| 2815 |
\COOL@Hypergeometric@pq@ab@value{p}{#2}{a}{#4};% |
| 2816 |
\COOL@Hypergeometric@pq@ab@value{q}{#3}{b}{#5};% |
| 2817 |
#6% |
| 2818 |
}% |
| 2819 |
} |
| 2820 |
% \end{macrocode} |
| 2821 |
% \end{macro} |
| 2822 |
% |
| 2823 |
% |
| 2824 |
% \begin{macro}{\AppellFOne} |
| 2825 |
% Appell Hypergeometric Function |
| 2826 |
% |
| 2827 |
% \begin{tabular}{ll} |
| 2828 |
% |\AppellFOne{a}{b_1,b_2}{c}{z_1,z_2}| & $\AppellFOne{a}{b_1,b_2}{c}{z_1,z_2}$ \\ |
| 2829 |
% \end{tabular} |
| 2830 |
% \begin{macrocode} |
| 2831 |
\newcommand{\COOL@notation@AppellFOneParen}{p} |
| 2832 |
\newcommand{\AppellFOne}[4]% |
| 2833 |
{F_{1}\COOL@decide@paren{AppellFOne}{#1; #2; #3; #4}} |
| 2834 |
% \end{macrocode} |
| 2835 |
% \end{macro} |
| 2836 |
% |
| 2837 |
% |
| 2838 |
% \begin{macro}{\HypergeometricU} |
| 2839 |
% Tricomi confluent hypergeometric function |
| 2840 |
% |
| 2841 |
% \begin{tabular}{ll} |
| 2842 |
% |\HypergeometricU{a}{b}{z}| & $\HypergeometricU{a}{b}{z}$ \\ |
| 2843 |
% \end{tabular} |
| 2844 |
% \begin{macrocode} |
| 2845 |
\newcommand{\COOL@notation@HypergeometricUSymb}{U} |
| 2846 |
\newcommand{\HypergeometricU}[3]% |
| 2847 |
{\COOL@notation@HypergeometricUSymb\inp{#1, #2, #3}} |
| 2848 |
% \end{macrocode} |
| 2849 |
% \end{macro} |
| 2850 |
% |
| 2851 |
% |
| 2852 |
% \begin{macro}{\COOL@MeijerG@anp@value} |
| 2853 |
% This macro is a decision maker for the |\MeijerG| macro. Despite the name it is used for both $p$ and $q$. |
| 2854 |
% It is called as |
| 2855 |
% |
| 2856 |
% |\COOL@MeijerG@anp@value| |
| 2857 |
% \DeleteShortVerb{\|} |
| 2858 |
% \marg{a\textnormal{\texttt{|}}b} |
| 2859 |
% \marg{n\textnormal{\texttt{|}}m} |
| 2860 |
% \marg{p\textnormal{\texttt{|}}q} |
| 2861 |
% \MakeShortVerb{\|} |
| 2862 |
% \begin{macrocode} |
| 2863 |
\newcommand{\COOL@MeijerG@anp@value}[3]{% |
| 2864 |
\isint{#3}{COOL@isint}% |
| 2865 |
\ifthenelse{\boolean{COOL@isint}}% |
| 2866 |
{% |
| 2867 |
\isint{#2}{COOL@isint}% |
| 2868 |
\ifthenelse{\boolean{COOL@isint}}% |
| 2869 |
{% |
| 2870 |
\forLoop{1}{#3}{COOL@ct}% |
| 2871 |
{% |
| 2872 |
\ifthenelse{\value{COOL@ct}=1}{}{,}% |
| 2873 |
#1_{\arabic{COOL@ct}}% |
| 2874 |
}% |
| 2875 |
}% |
| 2876 |
% else |
| 2877 |
{% |
| 2878 |
#1_1,\ldots,#1_{#2},#1_{#2+1},\dots,#1_{#3}% |
| 2879 |
}% |
| 2880 |
}% |
| 2881 |
% else |
| 2882 |
{% |
| 2883 |
\isint{#2}{COOL@isint}% |
| 2884 |
\ifthenelse{\boolean{COOL@isint}}% |
| 2885 |
{% |
| 2886 |
\forLoop{1}{#2}{COOL@ct}% |
| 2887 |
{% |
| 2888 |
\ifthenelse{\value{COOL@ct}=1}{}{,}% |
| 2889 |
#1_{\arabic{COOL@ct}}% |
| 2890 |
}% |
| 2891 |
\setcounter{COOL@ct}{#2}% |
| 2892 |
\addtocounter{COOL@ct}{1}% |
| 2893 |
,#1_{\arabic{COOL@ct}}, \ldots, #1_{#3}% |
| 2894 |
}% |
| 2895 |
% else |
| 2896 |
{% |
| 2897 |
#1_1,\ldots,#1_{#2},#1_{#2+1},\dots,#1_{#3}% |
| 2898 |
}% |
| 2899 |
}% |
| 2900 |
} |
| 2901 |
% \end{macrocode} |
| 2902 |
% \end{macro} |
| 2903 |
% |
| 2904 |
% |
| 2905 |
% \begin{macro}{\MeijerG} |
| 2906 |
% |\MeijerG{|$a_1, \ldots, a_n$|}{|$a_{n+1}, \ldots, a_p$|}{|$b_1, \ldots, b_m$|}{|$b_{m+1}, \ldots, b_q$|}|\marg{x} |
| 2907 |
% |
| 2908 |
% \noindent |\MeijerG[|\meta{a list symbol},\meta{b list symbol}|]|\marg{n}\marg{p}\marg{m}\marg{q}\marg{x} |
| 2909 |
% |
| 2910 |
% \noindent |\MeijerG[|\meta{a list symbol}|]|\marg{n}\marg{p}|{|$b_1, \ldots, b_m$|}{|$b_{m+1}, \ldots, b_q$|}|\marg{x} |
| 2911 |
% |
| 2912 |
% \noindent |\MeijerG[,|\meta{b list symbol}|]{|$a_1, \ldots, a_n$|}{|$a_{n+1}, \ldots, a_p$|}|\marg{m}\marg{q}\marg{x} |
| 2913 |
% |
| 2914 |
% \hspace{0.25cm} |
| 2915 |
% |
| 2916 |
% \begin{tabular}{c} |
| 2917 |
% Meijer $G$-Function |
| 2918 |
% \\ |
| 2919 |
% \begin{tabular}{ll} |
| 2920 |
% |\MeijerG[a,b]{n}{p}{m}{q}{z}| & $\MeijerG[a,b]{n}{p}{m}{q}{z}$ \\ |
| 2921 |
% \end{tabular} |
| 2922 |
% \\ |
| 2923 |
% Meijer $G$-Function |
| 2924 |
% \\ |
| 2925 |
% \begin{tabular}{ll} |
| 2926 |
% |\MeijerG{1,2}{3}{a,b}{c,d}{z}| & $\MeijerG{1,2}{3}{a,b}{c,d}{z}$ \\ |
| 2927 |
% \end{tabular} |
| 2928 |
% \\ |
| 2929 |
% Generalized Meijer $G$-Function |
| 2930 |
% \\ |
| 2931 |
% \begin{tabular}{ll} |
| 2932 |
% |\MeijerG[a,b]{n}{p}{m}{q}{z,r}| & $\MeijerG[a,b]{n}{p}{m}{q}{z,r}$ \\ |
| 2933 |
% \end{tabular} |
| 2934 |
% \\ |
| 2935 |
% Generalized Meijer $G$-Function |
| 2936 |
% \\ |
| 2937 |
% \begin{tabular}{ll} |
| 2938 |
% |\MeijerG{1,2}{3}{a,b}{c,d}{z,r}| & $\MeijerG{1,2}{3}{a,b}{c,d}{z,r}$ |
| 2939 |
% \end{tabular} |
| 2940 |
% \end{tabular} |
| 2941 |
% \begin{macrocode} |
| 2942 |
\newcommand{\COOL@notation@MeijerGSymb}{G} |
| 2943 |
\newcommand{\MeijerG}[6][@,@]{% |
| 2944 |
\listval{#1}{0} |
| 2945 |
\ifthenelse{\value{COOL@listpointer}>2 \OR \value{COOL@listpointer}<1}% |
| 2946 |
{% |
| 2947 |
\PackageError{cool}{`MeijerG' Invalid Optional Argument}% |
| 2948 |
{Must be a comma separated list of length 1 or 2}% |
| 2949 |
}% |
| 2950 |
% else |
| 2951 |
{% |
| 2952 |
}% |
| 2953 |
\COOL@notation@MeijerGSymb% |
| 2954 |
\ifthenelse{\equal{#1}{@,@}}% |
| 2955 |
{% |
| 2956 |
\listval{#2}{0}% n |
| 2957 |
\setcounter{COOL@ct}{\value{COOL@listpointer}}% |
| 2958 |
\listval{#4}{0}% m |
| 2959 |
\setcounter{COOL@ct@}{\value{COOL@listpointer}}% |
| 2960 |
^{\arabic{COOL@ct@},\arabic{COOL@ct}}% |
| 2961 |
\listval{#3}{0}% p - n |
| 2962 |
\addtocounter{COOL@ct}{\value{COOL@listpointer}}% |
| 2963 |
\listval{#5}{0}% q - m |
| 2964 |
\addtocounter{COOL@ct@}{\value{COOL@listpointer}}% |
| 2965 |
_{\arabic{COOL@ct},\arabic{COOL@ct@}}% |
| 2966 |
\mathopen{}\left(% |
| 2967 |
#6% |
| 2968 |
\left|% |
| 2969 |
{ {#2,#3} \@@atop {#4,#5} }% |
| 2970 |
\right)\right.% |
| 2971 |
}% |
| 2972 |
% else |
| 2973 |
{% |
| 2974 |
\listval{#1}{0}% |
| 2975 |
\ifthenelse{\value{COOL@listpointer}=2}% |
| 2976 |
{% |
| 2977 |
\provideboolean{COOL@MeijerG@opt@one@blank}% |
| 2978 |
\def\COOL@MeijerG@sniffer##1,##2\COOL@MeijerG@sniffer@end{% |
| 2979 |
\ifthenelse{\equal{##1}{}}% |
| 2980 |
{% |
| 2981 |
\setboolean{COOL@MeijerG@opt@one@blank}{true}% |
| 2982 |
}% |
| 2983 |
% else |
| 2984 |
{% |
| 2985 |
\setboolean{COOL@MeijerG@opt@one@blank}{false}% |
| 2986 |
}% |
| 2987 |
}% |
| 2988 |
\expandafter\COOL@MeijerG@sniffer#1\COOL@MeijerG@sniffer@end\relax% |
| 2989 |
\ifthenelse{\boolean{COOL@MeijerG@opt@one@blank}}% |
| 2990 |
{% |
| 2991 |
% \end{macrocode} |
| 2992 |
% this is |\MeijerG[,b]{a_1,...,a_n}{a_{n++},...,a_p}{m}{q}{x}| |
| 2993 |
% \begin{macrocode} |
| 2994 |
\listval{#2}{0}% n |
| 2995 |
\setcounter{COOL@ct}{\value{COOL@listpointer}}% |
| 2996 |
^{#4,\arabic{COOL@ct}}% |
| 2997 |
\listval{#3}{0}% p |
| 2998 |
\addtocounter{COOL@ct}{\value{COOL@listpointer}}% |
| 2999 |
_{\arabic{COOL@ct},#5}% |
| 3000 |
\mathopen{}\left(% |
| 3001 |
#6% |
| 3002 |
\left|% |
| 3003 |
{% |
| 3004 |
{#2,#3} \@@atop {\COOL@MeijerG@anp@value{\listval{#1}{2}}{#4}{#5}} |
| 3005 |
}% |
| 3006 |
\right)\right.% |
| 3007 |
}% |
| 3008 |
% else |
| 3009 |
{% |
| 3010 |
^{#4,#2}_{#3,#5}% |
| 3011 |
\mathopen{}\left(% |
| 3012 |
#6% |
| 3013 |
\left|% |
| 3014 |
{% |
| 3015 |
{\COOL@MeijerG@anp@value{\listval{#1}{1}}{#2}{#3}}% |
| 3016 |
\@@atop% |
| 3017 |
{\COOL@MeijerG@anp@value{\listval{#1}{2}}{#4}{#5}} |
| 3018 |
}% |
| 3019 |
\right)\right.% |
| 3020 |
}% |
| 3021 |
}% |
| 3022 |
% else |
| 3023 |
{% |
| 3024 |
% \end{macrocode} |
| 3025 |
% this is| \MeijerG[a]{n}{p}{b_1,...,b_m}{b_{m++},...,a_p}{x}| |
| 3026 |
% \begin{macrocode} |
| 3027 |
\listval{#4}{0}% m |
| 3028 |
\setcounter{COOL@ct}{\value{COOL@listpointer}}% |
| 3029 |
^{\arabic{COOL@ct}, #2}% |
| 3030 |
\listval{#5}{0}% q |
| 3031 |
\addtocounter{COOL@ct}{\value{COOL@listpointer}}% |
| 3032 |
_{#3, \arabic{COOL@ct}}% |
| 3033 |
\mathopen{}\left(% |
| 3034 |
#6% |
| 3035 |
\left|% |
| 3036 |
{% |
| 3037 |
{\COOL@MeijerG@anp@value{#1}{#2}{#3}} \@@atop {#4,#5} |
| 3038 |
}% |
| 3039 |
\right)\right.% |
| 3040 |
}% |
| 3041 |
}% |
| 3042 |
}% |
| 3043 |
% \end{macrocode} |
| 3044 |
% \end{macro} |
| 3045 |
% |
| 3046 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3047 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3048 |
% \subsubsection{Angular Momentum Functions} |
| 3049 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3050 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3051 |
% |
| 3052 |
% \begin{macro}{\ClebschGordon} |
| 3053 |
% Clebsch-Gordon Coefficients |
| 3054 |
% |
| 3055 |
% \begin{tabular}{ll} |
| 3056 |
% |\ClebschGordon{j_1,m_1}{j_2,m_2}{j,m}| & $\ClebschGordon{j_1,m_1}{j_2,m_2}{j,m}$ \\ |
| 3057 |
% \end{tabular} |
| 3058 |
% |
| 3059 |
% \noindent \url{http://functions.wolfram.com/HypergeometricFunctions/ClebschGordan/} |
| 3060 |
% \begin{macrocode} |
| 3061 |
\newcommand{\ClebschGordon}[3]{% |
| 3062 |
\listval{#1}{0}% |
| 3063 |
\ifthenelse{\NOT \value{COOL@listpointer}=2}% |
| 3064 |
{% |
| 3065 |
\PackageError{cool}{`ClebschGordon' Invalid Argument}% |
| 3066 |
{Must have a comma separated list of length two}% |
| 3067 |
}% |
| 3068 |
% else |
| 3069 |
{}% |
| 3070 |
\listval{#2}{0}% |
| 3071 |
\ifthenelse{\NOT \value{COOL@listpointer}=2}% |
| 3072 |
{% |
| 3073 |
\PackageError{cool}{`ClebschGordon' Invalid Argument}% |
| 3074 |
{Must have a comma separated list of length two}% |
| 3075 |
}% |
| 3076 |
% else |
| 3077 |
{}% |
| 3078 |
\listval{#3}{0}% |
| 3079 |
\ifthenelse{\NOT \value{COOL@listpointer}=2}% |
| 3080 |
{% |
| 3081 |
\PackageError{cool}{`ClebschGordon' Invalid Argument}% |
| 3082 |
{Must have a comma separated list of length two}% |
| 3083 |
}% |
| 3084 |
% else |
| 3085 |
{}% |
| 3086 |
\left<% |
| 3087 |
\listval{#1}{1},\listval{#2}{1};% |
| 3088 |
\listval{#1}{2},\listval{#2}{2}% |
| 3089 |
\left|% |
| 3090 |
\listval{#1}{1},\listval{#2}{1};% |
| 3091 |
\listval{#3}{1},\listval{#3}{2}% |
| 3092 |
\right>\right.% |
| 3093 |
} |
| 3094 |
% \end{macrocode} |
| 3095 |
% \end{macro} |
| 3096 |
% |
| 3097 |
% |
| 3098 |
% \begin{macro}{\ThreeJSymbol} |
| 3099 |
% Wigner 3-j Symbol |
| 3100 |
% |
| 3101 |
% \begin{tabular}{ll} |
| 3102 |
% |\ThreeJSymbol{j_1,m_1}{j_2,m_2}{j_3,m_3}| & $\ThreeJSymbol{j_1,m_1}{j_2,m_2}{j_3,m_3}$ \\ |
| 3103 |
% \end{tabular} |
| 3104 |
% |
| 3105 |
% \noindent \url{http://functions.wolfram.com/HypergeometricFunctions/ThreeJSymbol/} |
| 3106 |
% \begin{macrocode} |
| 3107 |
\newcommand{\ThreeJSymbol}[3]{% |
| 3108 |
\listval{#1}{0}% |
| 3109 |
\ifthenelse{\NOT \value{COOL@listpointer}=2}% |
| 3110 |
{% |
| 3111 |
\PackageError{cool}{`ThreeJSymbol' Invalid Argument}% |
| 3112 |
{Must have comma separated list of length 2}% |
| 3113 |
}% |
| 3114 |
% else |
| 3115 |
{}% |
| 3116 |
\listval{#2}{0}% |
| 3117 |
\ifthenelse{\NOT \value{COOL@listpointer}=2}% |
| 3118 |
{% |
| 3119 |
\PackageError{cool}{`ThreeJSymbol' Invalid Argument}% |
| 3120 |
{Must have comma separated list of length 2}% |
| 3121 |
}% |
| 3122 |
% else |
| 3123 |
{}% |
| 3124 |
\listval{#3}{0}% |
| 3125 |
\ifthenelse{\NOT \value{COOL@listpointer}=2}% |
| 3126 |
{% |
| 3127 |
\PackageError{cool}{`ThreeJSymbol' Invalid Argument}% |
| 3128 |
{Must have comma separated list of length 2}% |
| 3129 |
}% |
| 3130 |
% else |
| 3131 |
{}% |
| 3132 |
\mathchoice{% |
| 3133 |
% displaystyle |
| 3134 |
\inp{\!% |
| 3135 |
\begin{array}{ccc}% |
| 3136 |
\listval{#1}{1} & \listval{#2}{1} & \listval{#3}{1} \\% |
| 3137 |
\listval{#1}{2} & \listval{#2}{2} & \listval{#3}{2} |
| 3138 |
\end{array}% |
| 3139 |
\!}% |
| 3140 |
}% |
| 3141 |
{% |
| 3142 |
% inline |
| 3143 |
\inp{\!% |
| 3144 |
{\listval{#1}{1} \@@atop \listval{#1}{2}}% |
| 3145 |
{\listval{#2}{1} \@@atop \listval{#2}{2}}% |
| 3146 |
{\listval{#3}{1} \@@atop \listval{#3}{2}}% |
| 3147 |
\!}% |
| 3148 |
}% |
| 3149 |
{% |
| 3150 |
% subscript |
| 3151 |
\inp{\!% |
| 3152 |
{\listval{#1}{1} \@@atop \listval{#1}{2}}% |
| 3153 |
{\listval{#2}{1} \@@atop \listval{#2}{2}}% |
| 3154 |
{\listval{#3}{1} \@@atop \listval{#3}{2}}% |
| 3155 |
\!}% |
| 3156 |
}% |
| 3157 |
{% |
| 3158 |
% subsubscript |
| 3159 |
\inp{\!% |
| 3160 |
{\listval{#1}{1} \@@atop \listval{#1}{2}}% |
| 3161 |
{\listval{#2}{1} \@@atop \listval{#2}{2}}% |
| 3162 |
{\listval{#3}{1} \@@atop \listval{#3}{2}}% |
| 3163 |
\!}% |
| 3164 |
}% |
| 3165 |
} |
| 3166 |
% \end{macrocode} |
| 3167 |
% \end{macro} |
| 3168 |
% |
| 3169 |
% |
| 3170 |
% \begin{macro}{\SixJSymbol} |
| 3171 |
% Racah 6-j Symbol |
| 3172 |
% |
| 3173 |
% \begin{tabular}{ll} |
| 3174 |
% |\SixJSymbol{j_1,j_2,j_3}{j_4,j_5,j_6}| & $\SixJSymbol{j_1,j_2,j_3}{j_4,j_5,j_6}$ \\ |
| 3175 |
% \end{tabular} |
| 3176 |
% |
| 3177 |
% \url{http://functions.wolfram.com/HypergeometricFunctions/SixJSymbol/} |
| 3178 |
% \begin{macrocode} |
| 3179 |
\newcommand{\SixJSymbol}[2]{% |
| 3180 |
\listval{#1}{0}% |
| 3181 |
\ifthenelse{\NOT \value{COOL@listpointer}=3}% |
| 3182 |
{% |
| 3183 |
\PackageError{cool}{`SixJSymbol' Invalid Argument}% |
| 3184 |
{Must have a comma separated list of length 3}% |
| 3185 |
}% |
| 3186 |
%else |
| 3187 |
{}% |
| 3188 |
\listval{#2}{0}% |
| 3189 |
\ifthenelse{\NOT \value{COOL@listpointer}=3}% |
| 3190 |
{% |
| 3191 |
\PackageError{cool}{`SixJSymbol' Invalid Argument}% |
| 3192 |
{Must have a comma separated list of length 3}% |
| 3193 |
}% |
| 3194 |
%else |
| 3195 |
{}% |
| 3196 |
\mathchoice{% |
| 3197 |
% displaystyle |
| 3198 |
\inbr{\!% |
| 3199 |
\begin{array}{ccc}% |
| 3200 |
\listval{#1}{1} & \listval{#1}{2} & \listval{#1}{3} \\% |
| 3201 |
\listval{#2}{1} & \listval{#2}{2} & \listval{#2}{3}% |
| 3202 |
\end{array}% |
| 3203 |
\!}% |
| 3204 |
}% |
| 3205 |
{% |
| 3206 |
% inline |
| 3207 |
\inbr{\!% |
| 3208 |
{\listval{#1}{1} \@@atop \listval{#2}{1}}% |
| 3209 |
{\listval{#1}{2} \@@atop \listval{#2}{2}}% |
| 3210 |
{\listval{#1}{3} \@@atop \listval{#2}{3}}% |
| 3211 |
\!}% |
| 3212 |
}% |
| 3213 |
{% |
| 3214 |
% superscript |
| 3215 |
\inbr{\!% |
| 3216 |
{\listval{#1}{1} \@@atop \listval{#2}{1}}% |
| 3217 |
{\listval{#1}{2} \@@atop \listval{#2}{2}}% |
| 3218 |
{\listval{#1}{3} \@@atop \listval{#2}{3}}% |
| 3219 |
\!}% |
| 3220 |
}% |
| 3221 |
{% |
| 3222 |
% supersuperscript |
| 3223 |
\inbr{\!% |
| 3224 |
{\listval{#1}{1} \@@atop \listval{#2}{1}}% |
| 3225 |
{\listval{#1}{2} \@@atop \listval{#2}{2}}% |
| 3226 |
{\listval{#1}{3} \@@atop \listval{#2}{3}}% |
| 3227 |
\!}% |
| 3228 |
}% |
| 3229 |
} |
| 3230 |
% \end{macrocode} |
| 3231 |
% \end{macro} |
| 3232 |
% |
| 3233 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3234 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3235 |
% \subsubsection{Complete Elliptic Integrals} |
| 3236 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3237 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3238 |
% |
| 3239 |
% \begin{macro}{\EllipticK} |
| 3240 |
% Complete Elliptic Integral of the First Kind |
| 3241 |
% |
| 3242 |
% \begin{tabular}{ll} |
| 3243 |
% |\EllipticK{x}| & $\EllipticK{x}$ \\ |
| 3244 |
% \end{tabular} |
| 3245 |
% \begin{macrocode} |
| 3246 |
\newcommand{\COOL@notation@EllipticKParen}{p} |
| 3247 |
\newcommand{\COOL@notation@EllipticKSymb}{K} |
| 3248 |
\newcommand{\EllipticK}[1]% |
| 3249 |
{\COOL@notation@EllipticKSymb\COOL@decide@paren{EllipticK}{#1}}% |
| 3250 |
% \end{macrocode} |
| 3251 |
% \end{macro} |
| 3252 |
% |
| 3253 |
% |
| 3254 |
% \begin{macro}{\EllipticE} |
| 3255 |
% Complete Elliptic Integral of the Second Kind |
| 3256 |
% |
| 3257 |
% \begin{tabular}{ll} |
| 3258 |
% |\EllipticE{x}| & $\EllipticE{x}$ \\ |
| 3259 |
% \end{tabular} |
| 3260 |
% \begin{macrocode} |
| 3261 |
\newcommand{\COOL@notation@EllipticEParen}{p} |
| 3262 |
\newcommand{\COOL@notation@EllipticESymb}{E} |
| 3263 |
\newcommand{\EllipticE}[1]{% |
| 3264 |
\liststore{#1}{COOL@EllipticE@arg@}% |
| 3265 |
\listval{#1}{0}% |
| 3266 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 3267 |
{% |
| 3268 |
\COOL@notation@EllipticESymb\COOL@decide@paren{EllipticE}{#1}% |
| 3269 |
}% |
| 3270 |
% ElseIf |
| 3271 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 3272 |
{% |
| 3273 |
\COOL@notation@EllipticESymb% |
| 3274 |
\COOL@decide@paren{EllipticE}% |
| 3275 |
{\COOL@EllipticE@arg@i \left| \, \COOL@EllipticE@arg@ii \!\!\right.}% |
| 3276 |
}% |
| 3277 |
% Else |
| 3278 |
{% |
| 3279 |
\PackageError{Invalid Argument}% |
| 3280 |
{`EllipticE' can only accept a comma separated list of length 1 or 2}% |
| 3281 |
}% |
| 3282 |
}% |
| 3283 |
} |
| 3284 |
% \end{macrocode} |
| 3285 |
% \end{macro} |
| 3286 |
% |
| 3287 |
% |
| 3288 |
% \begin{macro}{\EllipticPi} |
| 3289 |
% Complete Elliptic Integral of the Third Kind |
| 3290 |
% |
| 3291 |
% \begin{tabular}{ll} |
| 3292 |
% |\EllipticPi{n,m}| & $\EllipticPi{n,m}$ \\ |
| 3293 |
% \end{tabular} |
| 3294 |
% \begin{macrocode} |
| 3295 |
\newcommand{\COOL@notation@EllipticPiParen}{p} |
| 3296 |
\newcommand{\COOL@notation@EllipticPiSymb}{\Pi} |
| 3297 |
\newcommand{\EllipticPi}[1]{% |
| 3298 |
\liststore{#1}{COOL@EllipticPi@arg@}% |
| 3299 |
\listval{#1}{0}% |
| 3300 |
\ifthenelse{\value{COOL@listpointer} = 2}% |
| 3301 |
{% |
| 3302 |
\COOL@notation@EllipticPiSymb% |
| 3303 |
\COOL@decide@paren{EllipticPi}% |
| 3304 |
{\COOL@EllipticPi@arg@i \left| \, \COOL@EllipticPi@arg@ii \!\!\right.}% |
| 3305 |
}% |
| 3306 |
% ElseIf |
| 3307 |
{ \ifthenelse{\value{COOL@listpointer} = 3}% |
| 3308 |
{% |
| 3309 |
\COOL@notation@EllipticPiSymb% |
| 3310 |
\COOL@decide@paren{EllipticPi}% |
| 3311 |
{ \COOL@EllipticPi@arg@i; \,% |
| 3312 |
\COOL@EllipticPi@arg@ii \left| \,% |
| 3313 |
\COOL@EllipticPi@arg@iii \!\!\right.% |
| 3314 |
}% |
| 3315 |
}% |
| 3316 |
% Else |
| 3317 |
{% |
| 3318 |
\PackageError{cool}{Invalid Argument}% |
| 3319 |
{`EllipticPi' can only accept a comma separated list of length 2 or 3}% |
| 3320 |
}% |
| 3321 |
}% |
| 3322 |
} |
| 3323 |
% \end{macrocode} |
| 3324 |
% \end{macro} |
| 3325 |
% |
| 3326 |
% |
| 3327 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3328 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3329 |
% \subsubsection{Incomplete Elliptic Integrals} |
| 3330 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3331 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3332 |
% |
| 3333 |
% \begin{macro}{\EllipticF} |
| 3334 |
% \begin{macro}{\IncEllipticF} |
| 3335 |
% Incomplete Elliptic Integral of the First Kind |
| 3336 |
% |
| 3337 |
% \begin{tabular}{ll} |
| 3338 |
% |\EllipticF{z,m}| & $\EllipticF{z,m}$ \\ |
| 3339 |
% |\IncEllipticF{z}{m}| & $\IncEllipticF{z}{m}$ \\ |
| 3340 |
% \end{tabular} |
| 3341 |
% \begin{macrocode} |
| 3342 |
\newcommand{\COOL@notation@EllipticFParen}{p} |
| 3343 |
\newcommand{\COOL@notation@EllipticFSymb}{F} |
| 3344 |
\newcommand{\EllipticF}[1]{% |
| 3345 |
\liststore{#1}{COOL@EllipticF@arg@}% |
| 3346 |
\listval{#1}{0}% |
| 3347 |
\ifthenelse{ \value{COOL@listpointer} = 2 }% |
| 3348 |
{% |
| 3349 |
\COOL@notation@EllipticFSymb% |
| 3350 |
\COOL@decide@paren{EllipticF}% |
| 3351 |
{\COOL@EllipticF@arg@i \left| \, \COOL@EllipticF@arg@ii \!\!\right.}% |
| 3352 |
}% |
| 3353 |
% Else |
| 3354 |
{% |
| 3355 |
\PackageError{cool}{Invalid Argument}% |
| 3356 |
{`EllipticF' can only accept a comma separated list of length 2}% |
| 3357 |
}% |
| 3358 |
} |
| 3359 |
\newcommand{\IncEllipticF}[2]{\EllipticF{#1,#2}} |
| 3360 |
% \end{macrocode} |
| 3361 |
% \end{macro} |
| 3362 |
% \end{macro} |
| 3363 |
% |
| 3364 |
% |
| 3365 |
% \begin{macro}{\IncEllipticE} |
| 3366 |
% Incomplete Elliptic Integral of the Second Kind |
| 3367 |
% |
| 3368 |
% \begin{tabular}{ll} |
| 3369 |
% |\IncEllipticE{z}{m}| & $\IncEllipticE{z}{m}$ \\ |
| 3370 |
% |\EllipticE{z,m}| & $\EllipticE{z,m}$ |
| 3371 |
% \end{tabular} |
| 3372 |
% \begin{macrocode} |
| 3373 |
\newcommand{\IncEllipticE}[2]{\EllipticE{#1,#2}} |
| 3374 |
% \end{macrocode} |
| 3375 |
% \end{macro} |
| 3376 |
% |
| 3377 |
% |
| 3378 |
% \begin{macro}{\IncEllipticPi} |
| 3379 |
% \begin{macro}{\EllipticPi} |
| 3380 |
% Incomplete Elliptic Integral of the Third Kind |
| 3381 |
% |
| 3382 |
% \begin{tabular}{ll} |
| 3383 |
% |\IncEllipticPi{n}{z}{m}| & $\IncEllipticPi{n}{z}{m}$ \\ |
| 3384 |
% |\EllipticPi{n,z,m}| & $\EllipticPi{n,z,m}$ |
| 3385 |
% \end{tabular} |
| 3386 |
% \begin{macrocode} |
| 3387 |
\newcommand{\IncEllipticPi}[3]{\EllipticPi{#1,#2,#3}} |
| 3388 |
% \end{macrocode} |
| 3389 |
% \end{macro} |
| 3390 |
% \end{macro} |
| 3391 |
% |
| 3392 |
% |
| 3393 |
% \begin{macro}{\JacobiZeta} |
| 3394 |
% Jacobi Zeta Function |
| 3395 |
% |
| 3396 |
% \begin{tabular}{ll} |
| 3397 |
% |\JacobiZeta{z}{m}| & $\JacobiZeta{z}{m}$ \\ |
| 3398 |
% \end{tabular} |
| 3399 |
% \begin{macrocode} |
| 3400 |
\newcommand{\COOL@notation@JacobiZetaParen}{p} |
| 3401 |
\newcommand{\COOL@notation@JacobiZetaSymb}{Z} |
| 3402 |
\newcommand{\JacobiZeta}[2]{% |
| 3403 |
\COOL@notation@JacobiZetaSymb |
| 3404 |
\COOL@decide@paren{JacobiZeta}{#1 \left| \, #2 \right.\!\!}% |
| 3405 |
} |
| 3406 |
% \end{macrocode} |
| 3407 |
% \end{macro} |
| 3408 |
% |
| 3409 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3410 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3411 |
% \subsubsection{Jacobi Theta Functions} |
| 3412 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3413 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3414 |
% |
| 3415 |
% \begin{macro}{\EllipticTheta} |
| 3416 |
% \begin{macro}{\JacobiTheta} |
| 3417 |
% Jacobi Theta Functions |
| 3418 |
% |
| 3419 |
% \begin{tabular}{ll} |
| 3420 |
% |\JacobiTheta{1}{z}{q}| & $\JacobiTheta{1}{z}{q}$ \\ |
| 3421 |
% |\JacobiTheta{2}{z}{q}| & $\JacobiTheta{2}{z}{q}$ \\ |
| 3422 |
% |\JacobiTheta{3}{z}{q}| & $\JacobiTheta{3}{z}{q}$ \\ |
| 3423 |
% |\JacobiTheta{4}{z}{q}| & $\JacobiTheta{4}{z}{q}$ \\ |
| 3424 |
% \end{tabular} |
| 3425 |
% \begin{macrocode} |
| 3426 |
\newcommand{\COOL@notation@EllipticThetaParen}{p} |
| 3427 |
\newcommand{\EllipticTheta}[3]% |
| 3428 |
{\vartheta_{#1}\COOL@decide@paren{EllipticTheta}{#2, #3}} |
| 3429 |
\newcommand{\JacobiTheta}[3]{\EllipticTheta{#1}{#2}{#3}} |
| 3430 |
% \end{macrocode} |
| 3431 |
% \end{macro} |
| 3432 |
% \end{macro} |
| 3433 |
% |
| 3434 |
% |
| 3435 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3436 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3437 |
% \subsubsection{Neville Theta Functions} |
| 3438 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3439 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3440 |
% |
| 3441 |
% \begin{macro}{\NevilleThetaC} |
| 3442 |
% Neville Theta Function, |\NevilleThetaC{z}{m}|, $\NevilleThetaC{z}{m}$ |
| 3443 |
% \begin{macrocode} |
| 3444 |
\newcommand{\COOL@notation@NevilleThetaCParen}{p} |
| 3445 |
\newcommand{\NevilleThetaC}[2]{% |
| 3446 |
\vartheta_{c}\COOL@decide@paren{NevilleThetaC}% |
| 3447 |
{#1 \left| \, #2 \right.\!\!}% |
| 3448 |
} |
| 3449 |
% \end{macrocode} |
| 3450 |
% \end{macro} |
| 3451 |
% |
| 3452 |
% \begin{macro}{\NevilleThetaD} |
| 3453 |
% Neville Theta Function, |\NevilleThetaD{z}{m}|, $\NevilleThetaD{z}{m}$ |
| 3454 |
% \begin{macrocode} |
| 3455 |
\newcommand{\COOL@notation@NevilleThetaDParen}{p} |
| 3456 |
\newcommand{\NevilleThetaD}[2]{% |
| 3457 |
\vartheta_{d}\COOL@decide@paren{NevilleThetaD}% |
| 3458 |
{#1 \left| \, #2 \right.\!\!}% |
| 3459 |
} |
| 3460 |
% \end{macrocode} |
| 3461 |
% \end{macro} |
| 3462 |
% |
| 3463 |
% \begin{macro}{\NevilleThetaN} |
| 3464 |
% Neville Theta Function, |\NevilleThetaN{z}{m}|, $\NevilleThetaN{z}{m}$ |
| 3465 |
% \begin{macrocode} |
| 3466 |
\newcommand{\COOL@notation@NevilleThetaNParen}{p} |
| 3467 |
\newcommand{\NevilleThetaN}[2]{% |
| 3468 |
\vartheta_{n}\COOL@decide@paren{NevilleThetaN}% |
| 3469 |
{#1 \left| \, #2 \right.\!\!}% |
| 3470 |
} |
| 3471 |
% \end{macrocode} |
| 3472 |
% \end{macro} |
| 3473 |
% |
| 3474 |
% \begin{macro}{\NevilleThetaS} |
| 3475 |
% Neville Theta Function, |\NevilleThetaS{z}{m}|, $\NevilleThetaS{z}{m}$ |
| 3476 |
% \begin{macrocode} |
| 3477 |
\newcommand{\COOL@notation@NevilleThetaSParen}{p} |
| 3478 |
\newcommand{\NevilleThetaS}[2]{% |
| 3479 |
\vartheta_{s}\COOL@decide@paren{NevilleThetaS}% |
| 3480 |
{#1 \left| \, #2 \right.\!\!}% |
| 3481 |
} |
| 3482 |
% \end{macrocode} |
| 3483 |
% \end{macro} |
| 3484 |
% |
| 3485 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3486 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3487 |
% \subsubsection{Weierstrass Functions} |
| 3488 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3489 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3490 |
% |
| 3491 |
% \begin{macro}{\WeierstrassP} |
| 3492 |
% \begin{macro}{\WeiP} |
| 3493 |
% Weierstrass Elliptic Function |
| 3494 |
% |
| 3495 |
% \begin{tabular}{ll} |
| 3496 |
% |\WeierstrassP{z}{g_2,g_3}| & $\WeierstrassP{z}{g_2,g_3}$ \\ |
| 3497 |
% |\WeiP{z}{g_2,g_3}| & $\WeiP{z}{g_2,g_3}$ \\ |
| 3498 |
% \end{tabular} |
| 3499 |
% \begin{macrocode} |
| 3500 |
\newcommand{\COOL@notation@WeierstrassPParen}{p} |
| 3501 |
\newcommand{\WeierstrassP}[2]{% |
| 3502 |
\liststore{#2}{COOL@WeiP@arg@g@}% |
| 3503 |
\listval{#2}{0}% |
| 3504 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 3505 |
{% |
| 3506 |
\PackageError{cool}{Invalid Argument}% |
| 3507 |
{`WeierstrassP' second argument must be% |
| 3508 |
a comma separated list of length 2}% |
| 3509 |
} |
| 3510 |
% Else |
| 3511 |
{% |
| 3512 |
\wp\COOL@decide@paren{WeierstrassP}{#1; #2} |
| 3513 |
}% |
| 3514 |
} |
| 3515 |
\newcommand{\WeiP}[2]{\WeierstrassP{#1}{#2}} |
| 3516 |
% \end{macrocode} |
| 3517 |
% \end{macro} |
| 3518 |
% \end{macro} |
| 3519 |
% |
| 3520 |
% \begin{macro}{\WeierstrassPInv} |
| 3521 |
% \begin{macro}{\WeiPInv} |
| 3522 |
% Inverse of Weierstrass Elliptic Function |
| 3523 |
% |
| 3524 |
% \begin{tabular}{lll} |
| 3525 |
% Inverse & |\WeiPInv{z}{g_2,g_3}| & $\WeiPInv{z}{g_2,g_3}$ |
| 3526 |
% \\ |
| 3527 |
% Generalized Inverse & |\WeiPInv{z_1,z_2}{g_2,g_3}| & $\WeiPInv{z_1,z_2}{g_2,g_3}$ |
| 3528 |
% \\ |
| 3529 |
% \end{tabular} |
| 3530 |
% \begin{macrocode} |
| 3531 |
\newcommand{\COOL@notation@WeierstrassPInvParen}{p} |
| 3532 |
\newcommand{\WeierstrassPInv}[2]{% |
| 3533 |
\liststore{#1}{COOL@WeiPinv@arg@z@}% |
| 3534 |
\liststore{#1}{COOL@WeiPinv@arg@g@}% |
| 3535 |
\listval{#2}{0}% |
| 3536 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 3537 |
{% |
| 3538 |
\PackageError{cool}{Invalid Argument}% |
| 3539 |
{`WeierstrassPInv' second argument must be% |
| 3540 |
a comma separated list of length 2}% |
| 3541 |
} |
| 3542 |
% Else |
| 3543 |
{ |
| 3544 |
\listval{#1}{0}% |
| 3545 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 3546 |
{% |
| 3547 |
\wp^{-1}\COOL@decide@paren{WeierstrassPInv}{#1; #2}% |
| 3548 |
}% |
| 3549 |
% ElseIf |
| 3550 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 3551 |
{% |
| 3552 |
\wp^{-1}\COOL@decide@paren{WeierstrassPInv}{#1; #2}% |
| 3553 |
}% |
| 3554 |
% Else |
| 3555 |
{% |
| 3556 |
\PackageError{cool}{Invalid Argument}% |
| 3557 |
{`WeierstrassPInv' first argument must be% |
| 3558 |
a comma separate list of length 1 or 2}% |
| 3559 |
}}% |
| 3560 |
}% |
| 3561 |
} |
| 3562 |
\newcommand{\WeiPInv}[2]{\WeierstrassPInv{#1}{#2}} |
| 3563 |
% \end{macrocode} |
| 3564 |
% \end{macro} |
| 3565 |
% \end{macro} |
| 3566 |
% |
| 3567 |
% \begin{macro}{\WeierstrassPGenInv} |
| 3568 |
% Generalized Inverse of Weierstrass Elliptic Function |
| 3569 |
% |
| 3570 |
% |\WierstrassPGenInv{z_1}{z_2}{g_1}{g_2}| |
| 3571 |
% \begin{macrocode} |
| 3572 |
\newcommand{\WeierstrassPGenInv}[4]{\WeierstrassPInv{#1,#2}{#3,#4}} |
| 3573 |
% \end{macrocode} |
| 3574 |
% \end{macro} |
| 3575 |
% |
| 3576 |
% \begin{macro}{\WeierstrassSigma} |
| 3577 |
% \begin{macro}{\WeiSigma} |
| 3578 |
% Wierstrass Sigma Function |
| 3579 |
% |
| 3580 |
% \begin{tabular}{lll} |
| 3581 |
% Sigma & |\WeierstrassSigma{z}{g_2,g_3}| & $\WeierstrassSigma{z}{g_2,g_3}$ \\ |
| 3582 |
% & |\WeiSigma{z}{g_2,g_3}| & $\WeiSigma{z}{g_2,g_3}$ \\ |
| 3583 |
% Associated Sigma & |\WeierstrassSigma{n,z}{g_2,g_3}| & $\WeierstrassSigma{n,z}{g_2,g_3}$ \\ |
| 3584 |
% & |\WeiSigma{n,z}{g_2,g_3}| & $\WeiSigma{n,z}{g_2,g_3}$ \\ |
| 3585 |
% \end{tabular} |
| 3586 |
% \begin{macrocode} |
| 3587 |
\newcommand{\WeierstrassSigma}[2]{% |
| 3588 |
\liststore{#1}{COOL@WeiSigma@arg@z@}% |
| 3589 |
\liststore{#2}{COOL@WeiSigma@arg@g@}% |
| 3590 |
\listval{#2}{0}% |
| 3591 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2} |
| 3592 |
{% |
| 3593 |
\PackageError{cool}{Invalid Argument}% |
| 3594 |
{`WeierstrassSigma' second argument must be% |
| 3595 |
a comma separated list of length 2}% |
| 3596 |
}% |
| 3597 |
% Else |
| 3598 |
{% |
| 3599 |
\listval{#1}{0}% |
| 3600 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 3601 |
{% |
| 3602 |
\sigma\inp{#1; #2}% |
| 3603 |
}% |
| 3604 |
% ElseIf |
| 3605 |
{ \ifthenelse{\value{COOL@listpointer} = 2}% |
| 3606 |
{% |
| 3607 |
\sigma_{\COOL@WeiSigma@arg@z@i}\inp{\COOL@WeiSigma@arg@z@ii; #2}% |
| 3608 |
}% |
| 3609 |
% Else |
| 3610 |
{% |
| 3611 |
\PackageError{cool}{Invalid Argument}% |
| 3612 |
{`WeierstrassSigma' first argument must be% |
| 3613 |
a comma separated list of length 1 or 2}% |
| 3614 |
}}% |
| 3615 |
}% |
| 3616 |
} |
| 3617 |
\newcommand{\WeiSigma}[2]{\WeierstrassSigma{#1}{#2}} |
| 3618 |
% \end{macrocode} |
| 3619 |
% \end{macro} |
| 3620 |
% \end{macro} |
| 3621 |
% |
| 3622 |
% \begin{macro}{\AssocWeierstrassSigma} |
| 3623 |
% Associated Weierstrass Sigma Function |
| 3624 |
% |
| 3625 |
% \begin{tabular}{ll} |
| 3626 |
% |\AssocWeierstrassSigma{n}{z}{g_2}{g_3}| & $\AssocWeierstrassSigma{n}{z}{g_2}{g_3}$ \\ |
| 3627 |
% |\WeiSigma{n,z}{g_2,g_3}| & $\WeiSigma{n,z}{g_2,g_3}$ |
| 3628 |
% \end{tabular} |
| 3629 |
% \begin{macrocode} |
| 3630 |
\newcommand{\AssocWeierstrassSigma}[4]{\WeierstrassSigma{#1,#2}{#3,#4}} |
| 3631 |
% \end{macrocode} |
| 3632 |
% \end{macro} |
| 3633 |
% |
| 3634 |
% \begin{macro}{\WeierstrassZeta} |
| 3635 |
% \begin{macro}{\WeiZeta} |
| 3636 |
% Weierstrass Zeta Function |
| 3637 |
% |
| 3638 |
% \begin{tabular}{ll} |
| 3639 |
% |\WeierstrassZeta{z}{g_2,g_3}| & $\WeierstrassZeta{z}{g_2,g_3}$ \\ |
| 3640 |
% |\WeiZeta{z}{g_2,g_3}| & $\WeiZeta{z}{g_2,g_3}$ \\ |
| 3641 |
% \end{tabular} |
| 3642 |
% \begin{macrocode} |
| 3643 |
\newcommand{\COOL@notation@WeierstrassZetaParen}{p}% |
| 3644 |
\newcommand{\WeierstrassZeta}[2]{% |
| 3645 |
\listval{#2}{0}% |
| 3646 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 3647 |
{% |
| 3648 |
\PackageError{cool}{Invalid Argument}% |
| 3649 |
{`WeierstrassZeta' second argument must be% |
| 3650 |
a comma separated list of length 2}% |
| 3651 |
}% |
| 3652 |
% Else |
| 3653 |
{% |
| 3654 |
\zeta\COOL@decide@paren{WeierstrassZeta}{#1; #2}% |
| 3655 |
}% |
| 3656 |
} |
| 3657 |
\newcommand{\WeiZeta}[2]{\WeierstrassZeta{#1}{#2}} |
| 3658 |
% \end{macrocode} |
| 3659 |
% \end{macro} |
| 3660 |
% \end{macro} |
| 3661 |
% |
| 3662 |
% \begin{macro}{\WeierstrassHalfPeriods} |
| 3663 |
% \begin{macro}{\WeiHalfPeriods} |
| 3664 |
% Weierstrass half-periods |
| 3665 |
% |
| 3666 |
% \begin{tabular}{ll} |
| 3667 |
% |\WeierstrassHalfPeriods{g_2,g_3}| & $\WeierstrassHalfPeriods{g_2,g_3}$ \\ |
| 3668 |
% |\WeiHalfPeriods{g_2,g_3}| & $\WeiHalfPeriods{g_2,g_3}$ \\ |
| 3669 |
% \end{tabular} |
| 3670 |
% \begin{macrocode} |
| 3671 |
\newcommand{\WeierstrassHalfPeriods}[1]{% |
| 3672 |
\listval{#1}{0}% |
| 3673 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 3674 |
{% |
| 3675 |
\PackageError{cool}{Invalid Argument}% |
| 3676 |
{`WeierstrassHalfPeriods' can only accept% |
| 3677 |
a comma separated list of length 2}% |
| 3678 |
}% |
| 3679 |
% Else |
| 3680 |
{% |
| 3681 |
\{ \omega_1\inp{#1}, \omega_3\inp{#1} \}% |
| 3682 |
}% |
| 3683 |
} |
| 3684 |
\newcommand{\WeiHalfPeriods}[1]{\WeierstrassHalfPeriods{#1}} |
| 3685 |
% \end{macrocode} |
| 3686 |
% \end{macro} |
| 3687 |
% \end{macro} |
| 3688 |
% |
| 3689 |
% \begin{macro}{\WeierstrassInvariants} |
| 3690 |
% Weierstrass Invariants |
| 3691 |
% |
| 3692 |
% \noindent |
| 3693 |
% \begin{tabular}{ll} |
| 3694 |
% |\WeierstrassInvariants{\omega_1,\omega_3}| & $\WeierstrassInvariants{\omega_1,\omega_3}$ \\ |
| 3695 |
% |\WeiInvars{\omega_1,\omega_3}| & $\WeiInvars{\omega_1,\omega_3}$ \\ |
| 3696 |
% \end{tabular} |
| 3697 |
% \begin{macrocode} |
| 3698 |
\newcommand{\WeierstrassInvariants}[1]{% |
| 3699 |
\listval{#1}{0}% |
| 3700 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 3701 |
{% |
| 3702 |
\PackageError{cool}{Invalid Argument}% |
| 3703 |
{`WeierstrassInvariants' can only accept% |
| 3704 |
a comma separated list of length 2}% |
| 3705 |
}% |
| 3706 |
% Else |
| 3707 |
{% |
| 3708 |
\{ g_2\inp{#1}, g_3\inp{#1} \}% |
| 3709 |
}% |
| 3710 |
} |
| 3711 |
\newcommand{\WeiInvars}[1]{\WeierstrassInvariants{#1}} |
| 3712 |
% \end{macrocode} |
| 3713 |
% \end{macro} |
| 3714 |
% |
| 3715 |
% \begin{macro}{\COOL@hideOnSF} |
| 3716 |
% Used to hide inputs or other when style is |sf| |
| 3717 |
% |
| 3718 |
% \begin{tabular}{ll} |
| 3719 |
% |sf| & short form \\ |
| 3720 |
% |ff| & full form |
| 3721 |
% \end{tabular} |
| 3722 |
% \begin{macrocode} |
| 3723 |
\newcommand{\COOL@hideOnSF}[2] |
| 3724 |
{% |
| 3725 |
\ifthenelse{ \equal{\csname COOL@notation@#1\endcsname}{sf} }% |
| 3726 |
{}% |
| 3727 |
% Else |
| 3728 |
{#2}% |
| 3729 |
} |
| 3730 |
% \end{macrocode} |
| 3731 |
% \end{macro} |
| 3732 |
% |
| 3733 |
% \begin{macro}{\WeierstrassPHalfPeriodValues} |
| 3734 |
% \begin{macro}{\WeiPHalfPeriodVal} |
| 3735 |
% Weierstrass elliptic function values at half-periods |
| 3736 |
% |
| 3737 |
% \begin{tabular}{c} |
| 3738 |
% |\Style{WeierstrassPHalfPeriodValuesDisplay=sf}| (Default) \\ |
| 3739 |
% |\WeierstrassPHalfPeriodValues{g_2,g_3}| \\ |
| 3740 |
% |\WeiPHalfPeriodVal{g_2,g_3}| \\ |
| 3741 |
% $\WeiPHalfPeriodVal{g_2,g_3}$ \\ |
| 3742 |
% \\ |
| 3743 |
% |\Style{WeierstrassPHalfPeriodValuesDisplay=ff}| |
| 3744 |
% \Style{WeierstrassPHalfPeriodValuesDisplay=ff}% \\ |
| 3745 |
% |\WeierstrassPHalfPeriodValues{g_2,g_3}| \\ |
| 3746 |
% |\WeiPHalfPeriodVal{g_2,g_3}| \\ |
| 3747 |
% $\WeiPHalfPeriodVal{g_2,g_3}$ |
| 3748 |
% \end{tabular} |
| 3749 |
% \begin{macrocode} |
| 3750 |
\newcommand{\COOL@notation@WeierstrassPHalfPeriodValuesDisplay}{sf} |
| 3751 |
\newcommand{\WeierstrassPHalfPeriodValues}[1] |
| 3752 |
{% |
| 3753 |
\listval{#1}{0}% |
| 3754 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 3755 |
{% |
| 3756 |
\PackageError{cool}{Invalid Argument}% |
| 3757 |
{`WeierstrassPHalfPeriodValues' can only accept% |
| 3758 |
a comma separated list of length 2}% |
| 3759 |
}% |
| 3760 |
% Else |
| 3761 |
{% |
| 3762 |
\{ e_1\COOL@hideOnSF{WeierstrassPHalfPeriodValuesDisplay}{\inp{#1}},% |
| 3763 |
e_2\COOL@hideOnSF{WeierstrassPHalfPeriodValuesDisplay}{\inp{#1}},% |
| 3764 |
e_3\COOL@hideOnSF{WeierstrassPHalfPeriodValuesDisplay}{\inp{#1}}% |
| 3765 |
\}% |
| 3766 |
}% |
| 3767 |
} |
| 3768 |
\newcommand{\WeiPHalfPeriodVal}[1]{\WeierstrassPHalfPeriodValues{#1}} |
| 3769 |
% \end{macrocode} |
| 3770 |
% \end{macro} |
| 3771 |
% \end{macro} |
| 3772 |
% |
| 3773 |
% \begin{macro}{\WeierstrassZetaHalfPeriodValues} |
| 3774 |
% \begin{macro}{\WeiZetaHalfPeriodVal} |
| 3775 |
% Weierstrass zeta function values at half-periods |
| 3776 |
% |
| 3777 |
% \begin{tabular}{c} |
| 3778 |
% |\Style{WeierstrassZetaHalfPeriodValuesDisplay=sf}| (Default) \\ |
| 3779 |
% |\WeierstrassZetaHalfPeriodValues{g_2,g_3}| \\ |
| 3780 |
% |\WeiZetaHalfPeriodVal{g_2,g_3}| \\ |
| 3781 |
% $\WeiZetaHalfPeriodVal{g_2,g_3}$ \\ |
| 3782 |
% \\ |
| 3783 |
% |\Style{WeierstrassZetaHalfPeriodValuesDisplay=ff}| |
| 3784 |
% \Style{WeierstrassZetaHalfPeriodValuesDisplay=ff}% \\ |
| 3785 |
% |\WeierstrassZetaHalfPeriodValues{g_2,g_3}| \\ |
| 3786 |
% |\WeiZetaHalfPeriodVal{g_2,g_3}| \\ |
| 3787 |
% $\WeiZetaHalfPeriodVal{g_2,g_3}$ |
| 3788 |
% \end{tabular} |
| 3789 |
% \begin{macrocode} |
| 3790 |
\newcommand{\COOL@notation@WeierstrassZetaHalfPeriodValuesDisplay}{sf} |
| 3791 |
\newcommand{\WeierstrassZetaHalfPeriodValues}[1] |
| 3792 |
{% |
| 3793 |
\listval{#1}{0}% |
| 3794 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 3795 |
{% |
| 3796 |
\PackageError{cool}{Invalid Argument}% |
| 3797 |
{`WeierstrassZetaHalfPeriodValues' can only accept% |
| 3798 |
a comma separated list of length 2}% |
| 3799 |
}% |
| 3800 |
% Else |
| 3801 |
{% |
| 3802 |
\{% |
| 3803 |
\eta_1\COOL@hideOnSF% |
| 3804 |
{WeierstrassZetaHalfPeriodValuesDisplay}{\inp{#1}},% |
| 3805 |
\eta_2\COOL@hideOnSF% |
| 3806 |
{WeierstrassZetaHalfPeriodValuesDisplay}{\inp{#1}},% |
| 3807 |
\eta_3\COOL@hideOnSF% |
| 3808 |
{WeierstrassZetaHalfPeriodValuesDisplay}{\inp{#1}}% |
| 3809 |
\}% |
| 3810 |
}% |
| 3811 |
} |
| 3812 |
\newcommand{\WeiZetaHalfPeriodVal}[1]% |
| 3813 |
{\WeierstrassZetaHalfPeriodValues{#1}} |
| 3814 |
% \end{macrocode} |
| 3815 |
% \end{macro} |
| 3816 |
% \end{macro} |
| 3817 |
% |
| 3818 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3819 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3820 |
% \subsubsection{Jacobi Functions} |
| 3821 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 3822 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3823 |
% |
| 3824 |
% \begin{macro}{\JacobiAmplitude} |
| 3825 |
% Amplitude, |\JacobiAmplitude{z}{m}|, $\JacobiAmplitude{z}{m}$ |
| 3826 |
% \begin{macrocode} |
| 3827 |
\newcommand{\COOL@notation@JacobiAmplitudeParen}{p} |
| 3828 |
\DeclareMathOperator{\JacobiAmplitudeSymb}{am} |
| 3829 |
\newcommand{\JacobiAmplitude}[2]{% |
| 3830 |
\JacobiAmplitudeSymb\COOL@decide@paren% |
| 3831 |
{JacobiAmplitude}{#1 \left| \, #2 \right.\!\!}% |
| 3832 |
} |
| 3833 |
% \end{macrocode} |
| 3834 |
% \end{macro} |
| 3835 |
% |
| 3836 |
% \begin{macro}{\JacobiCD} |
| 3837 |
% \begin{macro}{\JacobiCDInv} |
| 3838 |
% Jacobi elliptic function and its inverse |
| 3839 |
% |
| 3840 |
% \begin{tabular}{ll} |
| 3841 |
% |\JacobiCD{z}{m}| & $\JacobiCD{z}{m}$ \\ |
| 3842 |
% |\JacobiCDInv{z}{m}| & $\JacobiCDInv{z}{m}$ \\ |
| 3843 |
% \end{tabular} |
| 3844 |
% \begin{macrocode} |
| 3845 |
\newcommand{\COOL@notation@JacobiCDParen}{p} |
| 3846 |
\newcommand{\COOL@notation@JacobiCDInvParen}{p} |
| 3847 |
\DeclareMathOperator{\JacobiCDSymb}{cd} |
| 3848 |
\newcommand{\JacobiCD}[2]{% |
| 3849 |
\JacobiCDSymb\COOL@decide@paren% |
| 3850 |
{JacobiCD}{#1 \left| \, #2 \right.\!\!}% |
| 3851 |
} |
| 3852 |
\newcommand{\JacobiCDInv}[2]{% |
| 3853 |
\JacobiCDSymb^{-1}\COOL@decide@paren% |
| 3854 |
{JacobiCDInv}{#1 \left| \, #2 \right.\!\!}% |
| 3855 |
} |
| 3856 |
% \end{macrocode} |
| 3857 |
% \end{macro} |
| 3858 |
% \end{macro} |
| 3859 |
% |
| 3860 |
% \begin{macro}{\JacobiCN} |
| 3861 |
% \begin{macro}{\JacobiCNInv} |
| 3862 |
% Jacobi elliptic function and its inverse |
| 3863 |
% |
| 3864 |
% \begin{tabular}{ll} |
| 3865 |
% |\JacobiCN{z}{m}| & $\JacobiCN{z}{m}$ \\ |
| 3866 |
% |\JacobiCNInv{z}{m}| & $\JacobiCNInv{z}{m}$ \\ |
| 3867 |
% \end{tabular} |
| 3868 |
% \begin{macrocode} |
| 3869 |
\newcommand{\COOL@notation@JacobiCNParen}{p} |
| 3870 |
\newcommand{\COOL@notation@JacobiCNInvParen}{p} |
| 3871 |
\DeclareMathOperator{\JacobiCNSymb}{cn} |
| 3872 |
\newcommand{\JacobiCN}[2]{% |
| 3873 |
\JacobiCNSymb\COOL@decide@paren% |
| 3874 |
{JacobiCN}{#1 \left| \, #2 \right.\!\!}% |
| 3875 |
} |
| 3876 |
\newcommand{\JacobiCNInv}[2]{% |
| 3877 |
\JacobiCNSymb^{-1}\COOL@decide@paren% |
| 3878 |
{JacobiCNInv}{#1 \left| \, #2 \right.\!\!}% |
| 3879 |
} |
| 3880 |
% \end{macrocode} |
| 3881 |
% \end{macro} |
| 3882 |
% \end{macro} |
| 3883 |
% |
| 3884 |
% \begin{macro}{\JacobiCS} |
| 3885 |
% \begin{macro}{\JacobiCSInv} |
| 3886 |
% Jacobi elliptic function and its inverse |
| 3887 |
% |
| 3888 |
% \begin{tabular}{ll} |
| 3889 |
% |\JacobiCS{z}{m}| & $\JacobiCS{z}{m}$ \\ |
| 3890 |
% |\JacobiCSInv{z}{m}| & $\JacobiCSInv{z}{m}$ \\ |
| 3891 |
% \end{tabular} |
| 3892 |
% \begin{macrocode} |
| 3893 |
\newcommand{\COOL@notation@JacobiCSParen}{p} |
| 3894 |
\newcommand{\COOL@notation@JacobiCSInvParen}{p} |
| 3895 |
\DeclareMathOperator{\JacobiCSSymb}{cs} |
| 3896 |
\newcommand{\JacobiCS}[2]{% |
| 3897 |
\JacobiCSSymb\COOL@decide@paren% |
| 3898 |
{JacobiCS}{#1 \left| \, #2 \right.\!\!}% |
| 3899 |
} |
| 3900 |
\newcommand{\JacobiCSInv}[2]{% |
| 3901 |
\JacobiCSSymb^{-1}\COOL@decide@paren% |
| 3902 |
{JacobiCSInv}{#1 \left| \, #2 \right.\!\!}% |
| 3903 |
} |
| 3904 |
% \end{macrocode} |
| 3905 |
% \end{macro} |
| 3906 |
% \end{macro} |
| 3907 |
% |
| 3908 |
% \begin{macro}{\JacobiDC} |
| 3909 |
% \begin{macro}{\JacobiDCInv} |
| 3910 |
% Jacobi elliptic function and its inverse |
| 3911 |
% |
| 3912 |
% \begin{tabular}{ll} |
| 3913 |
% |\JacobiDC{z}{m}| & $\JacobiDC{z}{m}$ \\ |
| 3914 |
% |\JacobiDCInv{z}{m}| & $\JacobiDCInv{z}{m}$ \\ |
| 3915 |
% \end{tabular} |
| 3916 |
% \begin{macrocode} |
| 3917 |
\newcommand{\COOL@notation@JacobiDCParen}{p} |
| 3918 |
\newcommand{\COOL@notation@JacobiDCInvParen}{p} |
| 3919 |
\DeclareMathOperator{\JacobiDCSymb}{dc} |
| 3920 |
\newcommand{\JacobiDC}[2]{% |
| 3921 |
\JacobiDCSymb\COOL@decide@paren% |
| 3922 |
{JacobiDC}{#1 \left| \, #2 \right.\!\!}% |
| 3923 |
} |
| 3924 |
\newcommand{\JacobiDCInv}[2]{% |
| 3925 |
\JacobiDCSymb^{-1}\COOL@decide@paren% |
| 3926 |
{JacobiDCInv}{#1 \left| \, #2 \right.\!\!}% |
| 3927 |
} |
| 3928 |
% \end{macrocode} |
| 3929 |
% \end{macro} |
| 3930 |
% \end{macro} |
| 3931 |
% |
| 3932 |
% \begin{macro}{\JacobiDN} |
| 3933 |
% \begin{macro}{\JacobiDNInv} |
| 3934 |
% Jacobi elliptic function and its inverse |
| 3935 |
% |
| 3936 |
% \begin{tabular}{ll} |
| 3937 |
% |\JacobiDN{z}{m}| & $\JacobiDN{z}{m}$ \\ |
| 3938 |
% |\JacobiDNInv{z}{m}| & $\JacobiDNInv{z}{m}$ \\ |
| 3939 |
% \end{tabular} |
| 3940 |
% \begin{macrocode} |
| 3941 |
\newcommand{\COOL@notation@JacobiDNParen}{p} |
| 3942 |
\newcommand{\COOL@notation@JacobiDNInvParen}{p} |
| 3943 |
\DeclareMathOperator{\JacobiDNSymb}{dn} |
| 3944 |
\newcommand{\JacobiDN}[2]{% |
| 3945 |
\JacobiDNSymb\COOL@decide@paren% |
| 3946 |
{JacobiDN}{#1 \left| \, #2 \right.\!\!}% |
| 3947 |
} |
| 3948 |
\newcommand{\JacobiDNInv}[2]{% |
| 3949 |
\JacobiDNSymb^{-1}\COOL@decide@paren% |
| 3950 |
{JacobiDNInv}{#1 \left| \, #2 \right.\!\!}% |
| 3951 |
} |
| 3952 |
% \end{macrocode} |
| 3953 |
% \end{macro} |
| 3954 |
% \end{macro} |
| 3955 |
% |
| 3956 |
% \begin{macro}{\JacobiDS} |
| 3957 |
% \begin{macro}{\JacobiDSInv} |
| 3958 |
% Jacobi elliptic function and its inverse |
| 3959 |
% |
| 3960 |
% \begin{tabular}{ll} |
| 3961 |
% |\JacobiDS{z}{m}| & $\JacobiDS{z}{m}$ \\ |
| 3962 |
% |\JacobiDSInv{z}{m}| & $\JacobiDSInv{z}{m}$ \\ |
| 3963 |
% \end{tabular} |
| 3964 |
% \begin{macrocode} |
| 3965 |
\newcommand{\COOL@notation@JacobiDSParen}{p} |
| 3966 |
\newcommand{\COOL@notation@JacobiDSInvParen}{p} |
| 3967 |
\DeclareMathOperator{\JacobiDSSymb}{ds} |
| 3968 |
\newcommand{\JacobiDS}[2]{% |
| 3969 |
\JacobiDSSymb\COOL@decide@paren% |
| 3970 |
{JacobiDS}{#1 \left| \, #2 \right.\!\!}% |
| 3971 |
} |
| 3972 |
\newcommand{\JacobiDSInv}[2]{% |
| 3973 |
\JacobiDSSymb^{-1}\COOL@decide@paren% |
| 3974 |
{JacobiDSInv}{#1 \left| \, #2 \right.\!\!}% |
| 3975 |
} |
| 3976 |
% \end{macrocode} |
| 3977 |
% \end{macro} |
| 3978 |
% \end{macro} |
| 3979 |
% |
| 3980 |
% \begin{macro}{\JacobiNC} |
| 3981 |
% \begin{macro}{\JacobiNCInv} |
| 3982 |
% Jacobi elliptic function and its inverse |
| 3983 |
% |
| 3984 |
% \begin{tabular}{ll} |
| 3985 |
% |\JacobiNC{z}{m}| & $\JacobiNC{z}{m}$ \\ |
| 3986 |
% |\JacobiNCInv{z}{m}| & $\JacobiNCInv{z}{m}$ \\ |
| 3987 |
% \end{tabular} |
| 3988 |
% \begin{macrocode} |
| 3989 |
\newcommand{\COOL@notation@JacobiNCParen}{p} |
| 3990 |
\newcommand{\COOL@notation@JacobiNCInvParen}{p} |
| 3991 |
\DeclareMathOperator{\JacobiNCSymb}{nc} |
| 3992 |
\newcommand{\JacobiNC}[2]{% |
| 3993 |
\JacobiNCSymb\COOL@decide@paren% |
| 3994 |
{JacobiNC}{#1 \left| \, #2 \right.\!\!}% |
| 3995 |
} |
| 3996 |
\newcommand{\JacobiNCInv}[2]{% |
| 3997 |
\JacobiNCSymb^{-1}\COOL@decide@paren% |
| 3998 |
{JacobiNCInv}{#1 \left| \, #2 \right.\!\!}% |
| 3999 |
} |
| 4000 |
% \end{macrocode} |
| 4001 |
% \end{macro} |
| 4002 |
% \end{macro} |
| 4003 |
% |
| 4004 |
% \begin{macro}{\JacobiND} |
| 4005 |
% \begin{macro}{\JacobiNDinv} |
| 4006 |
% Jacobi elliptic function and its inverse |
| 4007 |
% |
| 4008 |
% \begin{tabular}{ll} |
| 4009 |
% |\JacobiND{z}{m}| & $\JacobiND{z}{m}$ \\ |
| 4010 |
% |\JacobiNDInv{z}{m}| & $\JacobiNDInv{z}{m}$ \\ |
| 4011 |
% \end{tabular} |
| 4012 |
% \begin{macrocode} |
| 4013 |
\newcommand{\COOL@notation@JacobiNDParen}{p} |
| 4014 |
\newcommand{\COOL@notation@JacobiNDInvParen}{p} |
| 4015 |
\DeclareMathOperator{\JacobiNDSymb}{nd} |
| 4016 |
\newcommand{\JacobiND}[2]{% |
| 4017 |
\JacobiNDSymb\COOL@decide@paren% |
| 4018 |
{JacobiND}{#1 \left| \, #2 \right.\!\!}% |
| 4019 |
} |
| 4020 |
\newcommand{\JacobiNDInv}[2]{% |
| 4021 |
\JacobiNDSymb^{-1}\COOL@decide@paren% |
| 4022 |
{JacobiNDInv}{#1 \left| \, #2 \right.\!\!}% |
| 4023 |
} |
| 4024 |
% \end{macrocode} |
| 4025 |
% \end{macro} |
| 4026 |
% \end{macro} |
| 4027 |
% |
| 4028 |
% \begin{macro}{\JacobiNS} |
| 4029 |
% \begin{macro}{\JacobiNSInv} |
| 4030 |
% Jacobi elliptic function and its inverse |
| 4031 |
% |
| 4032 |
% \begin{tabular}{ll} |
| 4033 |
% |\JacobiNS{z}{m}| & $\JacobiNS{z}{m}$ \\ |
| 4034 |
% |\JacobiNSInv{z}{m}| & $\JacobiNSInv{z}{m}$ \\ |
| 4035 |
% \end{tabular} |
| 4036 |
% \begin{macrocode} |
| 4037 |
\newcommand{\COOL@notation@JacobiNSParen}{p} |
| 4038 |
\newcommand{\COOL@notation@JacobiNSInvParen}{p} |
| 4039 |
\DeclareMathOperator{\JacobiNSSymb}{ns} |
| 4040 |
\newcommand{\JacobiNS}[2]{% |
| 4041 |
\JacobiNSSymb\COOL@decide@paren% |
| 4042 |
{JacobiNS}{#1 \left| \, #2 \right.\!\!}% |
| 4043 |
} |
| 4044 |
\newcommand{\JacobiNSInv}[2]{% |
| 4045 |
\JacobiNSSymb^{-1}\COOL@decide@paren% |
| 4046 |
{JacobiNSInv}{#1 \left| \, #2 \right.\!\!}% |
| 4047 |
} |
| 4048 |
% \end{macrocode} |
| 4049 |
% \end{macro} |
| 4050 |
% \end{macro} |
| 4051 |
% |
| 4052 |
% \begin{macro}{\JacobiSC} |
| 4053 |
% \begin{macro}{\JacobiSCInv} |
| 4054 |
% Jacobi elliptic function and its inverse |
| 4055 |
% |
| 4056 |
% \begin{tabular}{ll} |
| 4057 |
% |\JacobiSC{z}{m}| & $\JacobiSC{z}{m}$ \\ |
| 4058 |
% |\JacobiSCInv{z}{m}| & $\JacobiSCInv{z}{m}$ \\ |
| 4059 |
% \end{tabular} |
| 4060 |
% \begin{macrocode} |
| 4061 |
\newcommand{\COOL@notation@JacobiSCParen}{p} |
| 4062 |
\newcommand{\COOL@notation@JacobiSCInvParen}{p} |
| 4063 |
\DeclareMathOperator{\JacobiSCSymb}{sc} |
| 4064 |
\newcommand{\JacobiSC}[2]{% |
| 4065 |
\JacobiSCSymb\COOL@decide@paren% |
| 4066 |
{JacobiSC}{#1 \left| \, #2 \right.\!\!}% |
| 4067 |
} |
| 4068 |
\newcommand{\JacobiSCInv}[2]{% |
| 4069 |
\JacobiSCSymb^{-1}\COOL@decide@paren% |
| 4070 |
{JacobiSCInv}{#1 \left| \, #2 \right.\!\!}% |
| 4071 |
} |
| 4072 |
% \end{macrocode} |
| 4073 |
% \end{macro} |
| 4074 |
% \end{macro} |
| 4075 |
% |
| 4076 |
% \begin{macro}{\JacobiSD} |
| 4077 |
% \begin{macro}{\JacobiSDInv} |
| 4078 |
% Jacobi elliptic function and its inverse |
| 4079 |
% |
| 4080 |
% \begin{tabular}{ll} |
| 4081 |
% |\JacobiSD{z}{m}| & $\JacobiSD{z}{m}$ \\ |
| 4082 |
% |\JacobiSDInv{z}{m}| & $\JacobiSDInv{z}{m}$ \\ |
| 4083 |
% \end{tabular} |
| 4084 |
% \begin{macrocode} |
| 4085 |
\newcommand{\COOL@notation@JacobiSDParen}{p} |
| 4086 |
\newcommand{\COOL@notation@JacobiSDInvParen}{p} |
| 4087 |
\DeclareMathOperator{\JacobiSDSymb}{sd} |
| 4088 |
\newcommand{\JacobiSD}[2]{% |
| 4089 |
\JacobiSDSymb\COOL@decide@paren% |
| 4090 |
{JacobiSD}{#1 \left| \, #2 \right.\!\!}% |
| 4091 |
} |
| 4092 |
\newcommand{\JacobiSDInv}[2]{% |
| 4093 |
\JacobiSDSymb^{-1}\COOL@decide@paren% |
| 4094 |
{JacobiSDInv}{#1 \left| \, #2 \right.\!\!}% |
| 4095 |
} |
| 4096 |
% \end{macrocode} |
| 4097 |
% \end{macro} |
| 4098 |
% \end{macro} |
| 4099 |
% |
| 4100 |
% \begin{macro}{\JacobiSN} |
| 4101 |
% \begin{macro}{\JacobiSNInv} |
| 4102 |
% Jacobi elliptic function and its inverse |
| 4103 |
% |
| 4104 |
% \begin{tabular}{ll} |
| 4105 |
% |\JacobiSN{z}{m}| & $\JacobiSN{z}{m}$ \\ |
| 4106 |
% |\JacobiSNInv{z}{m}| & $\JacobiSNInv{z}{m}$ \\ |
| 4107 |
% \end{tabular} |
| 4108 |
% \begin{macrocode} |
| 4109 |
\newcommand{\COOL@notation@JacobiSNParen}{p} |
| 4110 |
\newcommand{\COOL@notation@JacobiSNInvParen}{p} |
| 4111 |
\DeclareMathOperator{\JacobiSNSymb}{sn} |
| 4112 |
\newcommand{\JacobiSN}[2]{% |
| 4113 |
\JacobiSNSymb\COOL@decide@paren% |
| 4114 |
{JacobiSN}{#1 \left| \, #2 \right.\!\!}% |
| 4115 |
} |
| 4116 |
\newcommand{\JacobiSNInv}[2]{% |
| 4117 |
\JacobiSNSymb^{-1}\COOL@decide@paren% |
| 4118 |
{JacobiSNInv}{#1 \left| \, #2 \right.\!\!}% |
| 4119 |
} |
| 4120 |
% \end{macrocode} |
| 4121 |
% \end{macro} |
| 4122 |
% \end{macro} |
| 4123 |
% |
| 4124 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4125 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4126 |
% \subsubsection{Modular Functions} |
| 4127 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4128 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4129 |
% |
| 4130 |
% \begin{macro}{\DedekindEta} |
| 4131 |
% Dedekind eta modular function, |\DedekindEta{z}|, $\DedekindEta{z}$ |
| 4132 |
% \begin{macrocode} |
| 4133 |
\newcommand{\COOL@notation@DedekindEtaParen}{p} |
| 4134 |
\newcommand{\DedekindEta}[1]{\eta\COOL@decide@paren{DedekindEta}{#1}} |
| 4135 |
% \end{macrocode} |
| 4136 |
% \end{macro} |
| 4137 |
% |
| 4138 |
% \begin{macro}{\KleinInvariantJ} |
| 4139 |
% Klein invariant modular function, |\KleinInvariantJ{z}|, $\KleinInvariantJ{z}$ |
| 4140 |
% \begin{macrocode} |
| 4141 |
\newcommand{\COOL@notation@KleinInvariantJParen}{p} |
| 4142 |
\newcommand{\KleinInvariantJ}[1]% |
| 4143 |
{J\COOL@decide@paren{KleinInvariantJ}{#1}} |
| 4144 |
% \end{macrocode} |
| 4145 |
% \end{macro} |
| 4146 |
% |
| 4147 |
% \begin{macro}{\ModularLambda} |
| 4148 |
% Modular lambda function, |\ModularLambda{z}|, $\ModularLambda{z}$ |
| 4149 |
% \begin{macrocode} |
| 4150 |
\newcommand{\COOL@notation@ModularLambdaParen}{p} |
| 4151 |
\newcommand{\ModularLambda}[1]% |
| 4152 |
{\lambda\COOL@decide@paren{ModularLambda}{#1}} |
| 4153 |
% \end{macrocode} |
| 4154 |
% \end{macro} |
| 4155 |
% |
| 4156 |
% \begin{macro}{\EllipticNomeQ} |
| 4157 |
% \begin{macro}{\EllipticNomeQInv} |
| 4158 |
% Nome and its inverse |
| 4159 |
% |
| 4160 |
% \begin{tabular}{ll} |
| 4161 |
% |\EllipticNomeQ{m}| & $\EllipticNomeQ{m}$ \\ |
| 4162 |
% |\EllipticNomeQInv{m}| & $\EllipticNomeQInv{m}$ \\ |
| 4163 |
% \end{tabular} |
| 4164 |
% \begin{macrocode} |
| 4165 |
\newcommand{\COOL@notation@EllipticNomeQParen}{p} |
| 4166 |
\newcommand{\COOL@notation@EllipticNomeQInvParen}{p} |
| 4167 |
\newcommand{\EllipticNomeQ}[1]% |
| 4168 |
{q\COOL@decide@paren{EllipticNomeQ}{#1}} |
| 4169 |
\newcommand{\EllipticNomeQInv}[1]% |
| 4170 |
{q^{-1}\COOL@decide@paren{EllipticNomeQ}{#1}} |
| 4171 |
% \end{macrocode} |
| 4172 |
% \end{macro} |
| 4173 |
% \end{macro} |
| 4174 |
% |
| 4175 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4176 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4177 |
% \subsubsection{Arithmetic Geometric Mean} |
| 4178 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4179 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4180 |
% |
| 4181 |
% \begin{macro}{\ArithGeoMean} |
| 4182 |
% \begin{macro}{\AGM} |
| 4183 |
% Arithmetic Geometric Mean |
| 4184 |
% |
| 4185 |
% \begin{tabular}{ll} |
| 4186 |
% |\ArithGeoMean{a}{b}| & $\ArithGeoMean{a}{b}$ \\ |
| 4187 |
% |\AGM{a}{b}| & $\AGM{a}{b}$ \\ |
| 4188 |
% \end{tabular} |
| 4189 |
% \begin{macrocode} |
| 4190 |
\newcommand{\COOL@notation@ArithGeoMeanParen}{p} |
| 4191 |
\DeclareMathOperator{\ArithGeoMeanSymb}{agm} |
| 4192 |
\newcommand{\ArithGeoMean}[2]% |
| 4193 |
{\ArithGeoMeanSymb\COOL@decide@paren{ArithGeoMean}{#1, #2}} |
| 4194 |
\newcommand{\AGM}[2]{\ArithGeoMean{#1}{#2}} |
| 4195 |
% \end{macrocode} |
| 4196 |
% \end{macro} |
| 4197 |
% \end{macro} |
| 4198 |
% |
| 4199 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4200 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4201 |
% \subsubsection{Elliptic Exp and Log} |
| 4202 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4203 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4204 |
% |
| 4205 |
% \begin{macro}{\EllipticExp} |
| 4206 |
% \begin{macro}{\EExp} |
| 4207 |
% Elliptic exponential |
| 4208 |
% |
| 4209 |
% \begin{tabular}{ll} |
| 4210 |
% |\EllipticExp{z}{a,b}| & $\EllipticExp{z}{a,b}$ \\ |
| 4211 |
% |\EExp{z}{a,b}| & $\EExp{z}{a,b}$ \\ |
| 4212 |
% \end{tabular} |
| 4213 |
% \begin{macrocode} |
| 4214 |
\newcommand{\COOL@notation@EllipticExpParen}{p} |
| 4215 |
\DeclareMathOperator{\EllipticExpSymb}{eexp} |
| 4216 |
\newcommand{\EllipticExp}[2]{% |
| 4217 |
\liststore{#2}{COOL@EllipticExp@arg@} |
| 4218 |
\listval{#2}{0}% |
| 4219 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 4220 |
{% |
| 4221 |
\PackageError{cool}{Invalid Argument}% |
| 4222 |
{`EllipticExp' second argument must be |
| 4223 |
a comma separated list of length 2}% |
| 4224 |
}% |
| 4225 |
% Else |
| 4226 |
{% |
| 4227 |
\EllipticExpSymb\COOL@decide@paren{EllipticExp}{#1; #2}% |
| 4228 |
}% |
| 4229 |
} |
| 4230 |
\newcommand{\EExp}[2]{\EllipticExp{#1}{#2}} |
| 4231 |
% \end{macrocode} |
| 4232 |
% \end{macro} |
| 4233 |
% \end{macro} |
| 4234 |
% |
| 4235 |
% \begin{macro}{\EllipticLog} |
| 4236 |
% \begin{macro}{\ELog} |
| 4237 |
% Elliptic logarithm |
| 4238 |
% |
| 4239 |
% \begin{tabular}{ll} |
| 4240 |
% |\EllipticLog{z_1,z_2}{a,b}| & $\EllipticLog{z_1,z_2}{a,b}$ \\ |
| 4241 |
% |\ELog{z_1,z_2}{a,b}| & $\ELog{z_1,z_2}{a,b}$ \\ |
| 4242 |
% \end{tabular} |
| 4243 |
% \begin{macrocode} |
| 4244 |
\newcommand{\COOL@notation@EllipticLogParen}{p} |
| 4245 |
\DeclareMathOperator{\EllipticLogSymb}{elog} |
| 4246 |
\newcommand{\EllipticLog}[2]{% |
| 4247 |
\liststore{#1}{COOL@EllipticLog@arg@z@}% |
| 4248 |
\liststore{#2}{COOL@EllipticLog@arg@a@}% |
| 4249 |
\listval{#1}{0}% |
| 4250 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 4251 |
{% |
| 4252 |
\PackageError{cool}{Invalid Argument}% |
| 4253 |
{`EllipticLog' first argument must be |
| 4254 |
a comma separated list of length 2}% |
| 4255 |
}% |
| 4256 |
% Else |
| 4257 |
{% |
| 4258 |
\listval{#2}{0}% |
| 4259 |
\ifthenelse{\NOT \value{COOL@listpointer} = 2}% |
| 4260 |
{% |
| 4261 |
\PackageError{cool}{Invalid Argument}% |
| 4262 |
{`EllipticLog' second argument must be% |
| 4263 |
a comma separated list of length 2}% |
| 4264 |
}% |
| 4265 |
% Else |
| 4266 |
{% |
| 4267 |
\EllipticLogSymb\COOL@decide@paren{EllipticLog}{#1; #2}% |
| 4268 |
}% |
| 4269 |
}% |
| 4270 |
} |
| 4271 |
\newcommand{\ELog}[2]{\EllipticLog{#1}{#2}} |
| 4272 |
% \end{macrocode} |
| 4273 |
% \end{macro} |
| 4274 |
% \end{macro} |
| 4275 |
% |
| 4276 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4277 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4278 |
% \subsubsection{Zeta Functions} |
| 4279 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4280 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4281 |
% |
| 4282 |
% \begin{macro}{\RiemannZeta} |
| 4283 |
% Riemann Zeta Function |
| 4284 |
% |
| 4285 |
% \begin{tabular}{ll} |
| 4286 |
% |\RiemannZeta{s}| & $\RiemannZeta{s}$ \\ |
| 4287 |
% |\Zeta{s}| & $\Zeta{s}$ |
| 4288 |
% \end{tabular} |
| 4289 |
% \begin{macrocode} |
| 4290 |
\newcommand{\RiemannZeta}[1]{\Zeta{#1}} |
| 4291 |
% \end{macrocode} |
| 4292 |
% \end{macro} |
| 4293 |
% |
| 4294 |
% \begin{macro}{\HurwitzZeta} |
| 4295 |
% Hurwitz Zeta Function |
| 4296 |
% |
| 4297 |
% \begin{tabular}{ll} |
| 4298 |
% |\HurwitzZeta{s}{a}| & $\HurwitzZeta{s}{a}$ \\ |
| 4299 |
% |\Zeta{s,a}| & $\Zeta{s,a}$ |
| 4300 |
% \end{tabular} |
| 4301 |
% \begin{macrocode} |
| 4302 |
\newcommand{\HurwitzZeta}[2]{\Zeta{#1,#2}} |
| 4303 |
% \end{macrocode} |
| 4304 |
% \end{macro} |
| 4305 |
% |
| 4306 |
% \begin{macro}{\Zeta} |
| 4307 |
% Riemann and Hurwitz Zeta |
| 4308 |
% |
| 4309 |
% \begin{tabular}{lll} |
| 4310 |
% Riemann Zeta & |\Zeta{s}| & $\Zeta{s}$ \\ |
| 4311 |
% Hurwitz Zeta & |\Zeta{s,a}| & $\Zeta{s,a}$ |
| 4312 |
% \end{tabular} |
| 4313 |
% \begin{macrocode} |
| 4314 |
\newcommand{\COOL@notation@ZetaParen}{p} |
| 4315 |
\newcommand{\Zeta}[1]{% |
| 4316 |
\liststore{#1}{COOL@Zeta@arg@}% |
| 4317 |
\listval{#1}{0}% get the list length |
| 4318 |
\ifthenelse{\value{COOL@listpointer} = 2}% |
| 4319 |
{% |
| 4320 |
\zeta\COOL@decide@paren{Zeta}{\COOL@Zeta@arg@i,\COOL@Zeta@arg@ii}% |
| 4321 |
}% |
| 4322 |
% else |
| 4323 |
{% |
| 4324 |
\ifthenelse{\value{COOL@listpointer} = 1}% |
| 4325 |
{% |
| 4326 |
\zeta\COOL@decide@paren{Zeta}{#1}% |
| 4327 |
}% |
| 4328 |
% else |
| 4329 |
{% |
| 4330 |
\PackageError{cool}{`Zeta' Invalid Argument}% |
| 4331 |
{the Zeta function can only accept% |
| 4332 |
a comma deliminated list of length 1 or 2} |
| 4333 |
}% |
| 4334 |
}% |
| 4335 |
}% |
| 4336 |
% \end{macrocode} |
| 4337 |
% \end{macro} |
| 4338 |
% |
| 4339 |
% \begin{macro}{\RiemannSiegelTheta} |
| 4340 |
% Riemann-Siegel Theta Function, |\RiemannSiegelTheta{z}|, $\RiemannSiegelTheta{z}$ |
| 4341 |
% \begin{macrocode} |
| 4342 |
\newcommand{\COOL@notation@RiemannSiegelThetaParen}{p} |
| 4343 |
\newcommand{\RiemannSiegelTheta}[1]% |
| 4344 |
{\vartheta\COOL@decide@paren{RiemannSiegelTheta}{#1}} |
| 4345 |
% \end{macrocode} |
| 4346 |
% \end{macro} |
| 4347 |
% |
| 4348 |
% \begin{macro}{\RiemannSiegelZ} |
| 4349 |
% Riemann-Siegel Z Function, |\RiemannSiegelZ{z}|, $\RiemannSiegelZ{z}$ |
| 4350 |
% \begin{macrocode} |
| 4351 |
\newcommand{\COOL@notation@RiemannSiegelZParen}{p} |
| 4352 |
\newcommand{\RiemannSiegelZ}[1]% |
| 4353 |
{Z\COOL@decide@paren{RiemannSiegelZ}{#1}} |
| 4354 |
% \end{macrocode} |
| 4355 |
% \end{macro} |
| 4356 |
% |
| 4357 |
% \begin{macro}{\StieltjesGamma} |
| 4358 |
% Stieltjes Constant, |\StieltjesGamma{n}|, $\StieltjesGamma{n}$ |
| 4359 |
% \begin{macrocode} |
| 4360 |
\newcommand{\StieltjesGamma}[1]{\gamma_{#1}} |
| 4361 |
% \end{macrocode} |
| 4362 |
% \end{macro} |
| 4363 |
% |
| 4364 |
% \begin{macro}{\LerchPhi} |
| 4365 |
% Lerch transcendent, |\LerchPhi{z}{s}{a}|, $\LerchPhi{z}{s}{a}$ |
| 4366 |
% \begin{macrocode} |
| 4367 |
\newcommand{\COOL@notation@LerchPhiParen}{p} |
| 4368 |
\newcommand{\LerchPhi}[3]{\Phi\COOL@decide@paren{LerchPhi}{#1,#2,#3}} |
| 4369 |
% \end{macrocode} |
| 4370 |
% \end{macro} |
| 4371 |
% |
| 4372 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4373 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4374 |
% \subsubsection{Polylogarithms} |
| 4375 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4376 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4377 |
% |
| 4378 |
% \begin{macro}{\NielsenPolyLog} |
| 4379 |
% Nielsen Polylogarithm, |\NielsenPolyLog{\nu}{p}{z}|, $\NielsenPolyLog{\nu}{p}{z}$ |
| 4380 |
% \begin{macrocode} |
| 4381 |
\newcommand{\COOL@notation@NielsenPolyLogParen}{p} |
| 4382 |
\newcommand{% |
| 4383 |
\NielsenPolyLog}[3]{S_{#1}^{#2}% |
| 4384 |
\COOL@decide@paren{NielsenPolyLog}{#3}% |
| 4385 |
} |
| 4386 |
% \end{macrocode} |
| 4387 |
% \end{macro} |
| 4388 |
% |
| 4389 |
% \begin{macro}{\PolyLog} |
| 4390 |
% Polylogarithm |
| 4391 |
% |
| 4392 |
% \begin{tabular}{lll} |
| 4393 |
% Nielsen PolyLog & |\PolyLog{\nu,p,z}| & $\PolyLog{\nu,p,z}$ \\ |
| 4394 |
% PolyLog & |\PolyLog{\nu,z}| & $\PolyLog{\nu,z}$ \\ |
| 4395 |
% \end{tabular} |
| 4396 |
% \begin{macrocode} |
| 4397 |
\newcommand{\COOL@notation@PolyLogParen}{p} |
| 4398 |
\DeclareMathOperator{\PolyLogSymb}{Li} |
| 4399 |
\newcommand{\PolyLog}[1]{% |
| 4400 |
\liststore{#1}{COOL@PolyLog@arg@}% |
| 4401 |
\listval{#1}{0}% |
| 4402 |
\ifthenelse{\value{COOL@listpointer} = 3}% |
| 4403 |
{% |
| 4404 |
\NielsenPolyLog{\COOL@PolyLog@arg@i}% |
| 4405 |
{\COOL@PolyLog@arg@ii}{\COOL@PolyLog@arg@iii}% |
| 4406 |
}% |
| 4407 |
% else |
| 4408 |
{% |
| 4409 |
\ifthenelse{ \value{COOL@listpointer} = 2 }% |
| 4410 |
{% |
| 4411 |
\PolyLogSymb_{\COOL@PolyLog@arg@i}% |
| 4412 |
\COOL@decide@paren{PolyLog}{\COOL@PolyLog@arg@ii}% |
| 4413 |
}% |
| 4414 |
% else |
| 4415 |
{% |
| 4416 |
\PackageError{cool}{`PolyLog' Invalid Argument}% |
| 4417 |
{This function returns either the Polylogarithm or the% |
| 4418 |
Nielsen Polylogarithm. It therefore only accepts a comma% |
| 4419 |
deliminated list of length two or three (1 or 2 commas)}% |
| 4420 |
}% |
| 4421 |
}% |
| 4422 |
} |
| 4423 |
% \end{macrocode} |
| 4424 |
% \end{macro} |
| 4425 |
% |
| 4426 |
% \begin{macro}{\DiLog} |
| 4427 |
% Dilogarithm (alias for |\PolyLog{2,x}|); |\DiLog{x}|, $\DiLog{x}$ |
| 4428 |
% \begin{macrocode} |
| 4429 |
\newcommand{\DiLog}[1]{\PolyLog{2,#1}} |
| 4430 |
% \end{macrocode} |
| 4431 |
% \end{macro} |
| 4432 |
% |
| 4433 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4434 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4435 |
% \subsubsection{Mathieu Functions} |
| 4436 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4437 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4438 |
% |
| 4439 |
% \begin{macro}{\MathieuC} |
| 4440 |
% Even Mathieu Function, |\MathieuC{a}{q}{z}|, $\MathieuC{a}{q}{z}$ |
| 4441 |
% \begin{macrocode} |
| 4442 |
\newcommand{\COOL@notation@MathieuCParen}{p} |
| 4443 |
\DeclareMathOperator{\MathieuCSymb}{Ce} |
| 4444 |
\newcommand{\MathieuC}[3]% |
| 4445 |
{\MathieuCSymb\COOL@decide@paren{MathieuC}{#1,#2,#3}} |
| 4446 |
% \end{macrocode} |
| 4447 |
% \end{macro} |
| 4448 |
% |
| 4449 |
% \begin{macro}{\MathieuS} |
| 4450 |
% Odd Mathieu Function, |\MathieuS{a}{q}{z}|, $\MathieuS{a}{q}{z}$ |
| 4451 |
% \begin{macrocode} |
| 4452 |
\newcommand{\COOL@notation@MathieuSParen}{p} |
| 4453 |
\DeclareMathOperator{\MathieuSSymb}{Se} |
| 4454 |
\newcommand{\MathieuS}[3]% |
| 4455 |
{\mathord{\MathieuSSymb}\COOL@decide@paren{MathieuS}{#1,#2,#3}} |
| 4456 |
% \end{macrocode} |
| 4457 |
% \end{macro} |
| 4458 |
% |
| 4459 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4460 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4461 |
% \subsubsection{Mathieu Characteristics} |
| 4462 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4463 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4464 |
% |
| 4465 |
% \begin{macro}{\MathieuCharacteristicA} |
| 4466 |
% \begin{macro}{\MathieuCharisticA} |
| 4467 |
% Characteristic Value of Even Mathieu Function |
| 4468 |
% |
| 4469 |
% \begin{tabular}{ll} |
| 4470 |
% |\MathieuCharacteristicA{r}{q}| & $\MathieuCharacteristicA{r}{q}$ \\ |
| 4471 |
% |\MathieuCharisticA{r}{q}| & $\MathieuCharisticA{r}{q}$ \\ |
| 4472 |
% \end{tabular} |
| 4473 |
% \begin{macrocode} |
| 4474 |
\newcommand{\COOL@notation@MathieuCharacteristicAParen}{p} |
| 4475 |
\newcommand{\MathieuCharacteristicA}[2]% |
| 4476 |
{a_{#1}\COOL@decide@paren{MathieuCharacteristicA}{#2}} |
| 4477 |
\newcommand{\MathieuCharisticA}[2]{\MathieuCharacteristicA{#1}{#2}} |
| 4478 |
% \end{macrocode} |
| 4479 |
% \end{macro} |
| 4480 |
% \end{macro} |
| 4481 |
% |
| 4482 |
% \begin{macro}{\MathieuCharacteristicB} |
| 4483 |
% \begin{macro}{\MathieuCharisticB} |
| 4484 |
% Characteristic Value of Even Mathieu Fucntion |
| 4485 |
% |
| 4486 |
% \begin{tabular}{ll} |
| 4487 |
% |\MathieuCharacteristicB{r}{q}| & $\MathieuCharacteristicB{r}{q}$ \\ |
| 4488 |
% |\MathieuCharisticB{r}{q}| & $\MathieuCharisticB{r}{q}$ \\ |
| 4489 |
% \end{tabular} |
| 4490 |
% \begin{macrocode} |
| 4491 |
\newcommand{\COOL@notation@MathieuCharacteristicBParen}{p} |
| 4492 |
\newcommand{\MathieuCharacteristicB}[2]% |
| 4493 |
{b_{#1}\COOL@decide@paren{MathieuCharacteristicB}{#2}} |
| 4494 |
\newcommand{\MathieuCharisticB}[2]{\MathieuCharacteristicB{#1}{#2}} |
| 4495 |
% \end{macrocode} |
| 4496 |
% \end{macro} |
| 4497 |
% \end{macro} |
| 4498 |
% |
| 4499 |
% \begin{macro}{\MathieuCharacteristicExponent} |
| 4500 |
% \begin{macro}{\MathieuCharisticExp} |
| 4501 |
% Characteristic Exponent of a Mathieu Fucntion |
| 4502 |
% |
| 4503 |
% \begin{tabular}{ll} |
| 4504 |
% |\MathieuCharateristicExponent{a}{q}| & $\MathieuCharacteristicExponent{a}{q}$ \\ |
| 4505 |
% |\MathieuCharisticExp{a}{q}| & $\MathieuCharisticExp{a}{q}$ \\ |
| 4506 |
% \end{tabular} |
| 4507 |
% \begin{macrocode} |
| 4508 |
\newcommand{\COOL@notation@MathieuCharacteristicExponentParen}{p} |
| 4509 |
\newcommand{\MathieuCharacteristicExponent}[2]% |
| 4510 |
{r\COOL@decide@paren{MathieuCharacteristicExponent}{#1,#2}} |
| 4511 |
\newcommand{\MathieuCharisticExp}[2]% |
| 4512 |
{\MathieuCharacteristicExponent{#1}{#2}} |
| 4513 |
% \end{macrocode} |
| 4514 |
% \end{macro} |
| 4515 |
% \end{macro} |
| 4516 |
% |
| 4517 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4518 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4519 |
% \subsubsection{Complex variables} |
| 4520 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4521 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4522 |
% |
| 4523 |
% \begin{macro}{\Abs} |
| 4524 |
% Absolute value, |\Abs{z}|, $\Abs{z}$ |
| 4525 |
% \begin{macrocode} |
| 4526 |
\newcommand{\Abs}[1]{ \left|#1\right| } |
| 4527 |
% \end{macrocode} |
| 4528 |
% \end{macro} |
| 4529 |
% |
| 4530 |
% \begin{macro}{\Arg} |
| 4531 |
% Argument, |\Arg{z}|, $\Arg{z}$ |
| 4532 |
% \begin{macrocode} |
| 4533 |
\newcommand{\Arg}[1]{ \arg\inp{#1} } |
| 4534 |
% \end{macrocode} |
| 4535 |
% \end{macro} |
| 4536 |
% |
| 4537 |
% \begin{macro}{\Conjugate} |
| 4538 |
% \begin{macro}{\Conj} |
| 4539 |
% Complex Conjugate |
| 4540 |
% |
| 4541 |
% \begin{tabular}{ll} |
| 4542 |
% |\Conj{z}| & $\Conj{z}$ \\ |
| 4543 |
% |\Conjugate{z}| & $\Conjugate{z}$ \\ |
| 4544 |
% \end{tabular} |
| 4545 |
% \begin{macrocode} |
| 4546 |
\def\COOL@notation@Conjugate{star} |
| 4547 |
\newcommand{\COOL@notation@ConjugateParen}{inv} |
| 4548 |
\newcommand{\Conjugate}[1]{\Conj{#1}} |
| 4549 |
\newcommand{\Conj}[1]{% |
| 4550 |
\ifthenelse{\equal{\COOL@notation@Conjugate}{bar}}% |
| 4551 |
{% |
| 4552 |
\bar{#1}% |
| 4553 |
}% |
| 4554 |
% ElseIf |
| 4555 |
{ \ifthenelse{\equal{\COOL@notation@Conjugate}{overline}}% |
| 4556 |
{% |
| 4557 |
\overline{#1}% |
| 4558 |
}% |
| 4559 |
% ElseIf |
| 4560 |
{ \ifthenelse{\equal{\COOL@notation@Conjugate}{star}}% |
| 4561 |
{% |
| 4562 |
\COOL@decide@paren{Conjugate}{#1}^*% |
| 4563 |
}% |
| 4564 |
% Else |
| 4565 |
{% |
| 4566 |
\PackageError{cool}{Invalid Option Sent}% |
| 4567 |
{`Conjugate' can only be set at `star', `bar', or `overline'}% |
| 4568 |
}% |
| 4569 |
}}% |
| 4570 |
} |
| 4571 |
% \end{macrocode} |
| 4572 |
% \end{macro} |
| 4573 |
% \end{macro} |
| 4574 |
% |
| 4575 |
% \begin{macro}{\Real} |
| 4576 |
% Real Part, |\Real{z}|, $\Real{z}$ |
| 4577 |
% \begin{macrocode} |
| 4578 |
\newcommand{\COOL@notation@RealParen}{none} |
| 4579 |
\DeclareMathOperator{\RealSymb}{Re} |
| 4580 |
\newcommand{\Real}[1]{% |
| 4581 |
% \end{macrocode} |
| 4582 |
% we put a space if there is no parentheses, or leave it out if there are |
| 4583 |
% \begin{macrocode} |
| 4584 |
\ifthenelse{\equal{\COOL@notation@ImagParen}{none}}% |
| 4585 |
{% |
| 4586 |
\RealSymb{#1}% |
| 4587 |
}% |
| 4588 |
% Else |
| 4589 |
{% |
| 4590 |
\RealSymb\COOL@decide@paren{Imag}{#1}% |
| 4591 |
}% |
| 4592 |
} |
| 4593 |
% \end{macrocode} |
| 4594 |
% \end{macro} |
| 4595 |
% |
| 4596 |
% \begin{macro}{\Imag} |
| 4597 |
% Imaginary Part, |\Imag{z}|, $\Imag{z}$ |
| 4598 |
% \begin{macrocode} |
| 4599 |
\newcommand{\COOL@notation@ImagParen}{none} |
| 4600 |
\DeclareMathOperator{\ImagSymb}{Im} |
| 4601 |
\newcommand{\Imag}[1]{% |
| 4602 |
% \end{macrocode} |
| 4603 |
% we put a space if there is no parentheses, or leave it out if there are |
| 4604 |
% \begin{macrocode} |
| 4605 |
\ifthenelse{\equal{\COOL@notation@ImagParen}{none}}% |
| 4606 |
{% |
| 4607 |
\ImagSymb{#1}% |
| 4608 |
}% |
| 4609 |
% Else |
| 4610 |
{% |
| 4611 |
\ImagSymb\COOL@decide@paren{Imag}{#1}% |
| 4612 |
}% |
| 4613 |
} |
| 4614 |
% \end{macrocode} |
| 4615 |
% \end{macro} |
| 4616 |
% |
| 4617 |
% \begin{macro}{\Sign} |
| 4618 |
% Sign function, |\Sign{x}|, $\Sign{x}$ |
| 4619 |
% \begin{macrocode} |
| 4620 |
\newcommand{\COOL@notation@SignParen}{p} |
| 4621 |
\newcommand{\Sign}[1]{\operatorname{sgn}\COOL@decide@paren{Sign}{#1}} |
| 4622 |
% \end{macrocode} |
| 4623 |
% \end{macro} |
| 4624 |
% |
| 4625 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4626 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4627 |
% \subsubsection{Number Theory Functions} |
| 4628 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4629 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4630 |
% |
| 4631 |
% \begin{macro}{\FactorInteger} |
| 4632 |
% \begin{macro}{\Factors} |
| 4633 |
% Prime decomposition, |\Factors{n}|, $\Factors{n}$ |
| 4634 |
% \begin{macrocode} |
| 4635 |
\newcommand{\COOL@notation@FactorIntegerParen}{p} |
| 4636 |
\DeclareMathOperator{\FactorIntegerSymb}{factors} |
| 4637 |
\newcommand{\FactorInteger}[1]% |
| 4638 |
{\FactorIntegerSymb\COOL@decide@paren{FactorInteger}{#1}} |
| 4639 |
\newcommand{\Factors}[1]{\FactorInteger{#1}} |
| 4640 |
% \end{macrocode} |
| 4641 |
% \end{macro} |
| 4642 |
% \end{macro} |
| 4643 |
% |
| 4644 |
% \begin{macro}{\Divisors} |
| 4645 |
% Divisors, |\Divisors{n}|, $\Divisors{n}$ |
| 4646 |
% \begin{macrocode} |
| 4647 |
\newcommand{\COOL@notation@DivisorsParen}{p} |
| 4648 |
\DeclareMathOperator{\DivisorsSymb}{divisors} |
| 4649 |
\newcommand{\Divisors}[1]% |
| 4650 |
{\mathord{\DivisorsSymb}\COOL@decide@paren{Divisors}{#1}} |
| 4651 |
% \end{macrocode} |
| 4652 |
% \end{macro} |
| 4653 |
% |
| 4654 |
% \begin{macro}{\Prime} |
| 4655 |
% The $n$th Prime, |\Prime{n}|, $\Prime{n}$ |
| 4656 |
% \begin{macrocode} |
| 4657 |
\newcommand{\COOL@notation@PrimeParen}{p} |
| 4658 |
\DeclareMathOperator{\PrimeSymb}{prime} |
| 4659 |
\newcommand{\Prime}[1]% |
| 4660 |
{\mathord{\PrimeSymb}\COOL@decide@paren{Prime}{#1}} |
| 4661 |
% \end{macrocode} |
| 4662 |
% \end{macro} |
| 4663 |
% |
| 4664 |
% \begin{macro}{\PrimePi} |
| 4665 |
% Prime counting function, |\PrimePi{x}|, $\PrimePi{x}$ |
| 4666 |
% \begin{macrocode} |
| 4667 |
\newcommand{\COOL@notation@PrimePiParen}{p} |
| 4668 |
\newcommand{\PrimePi}[1]{\pi\COOL@decide@paren{PrimePi}{#1}} |
| 4669 |
% \end{macrocode} |
| 4670 |
% \end{macro} |
| 4671 |
% |
| 4672 |
% \begin{macro}{\DivisorSigma} |
| 4673 |
% Sum of divisor powers, |\DivisorSigma{k}{n}|, $\DivisorSigma{k}{n}$ |
| 4674 |
% \begin{macrocode} |
| 4675 |
\newcommand{\COOL@notation@DivisorSigmaParen}{p} |
| 4676 |
\newcommand{\DivisorSigma}[2]% |
| 4677 |
{\sigma_{#1}\COOL@decide@paren{DivisorSigma}{#2}} |
| 4678 |
% \end{macrocode} |
| 4679 |
% \end{macro} |
| 4680 |
% |
| 4681 |
% \begin{macro}{\EulerPhi} |
| 4682 |
% Euler Totient Function, |\EulerPhi{x}|, $\EulerPhi{x}$ |
| 4683 |
% \begin{macrocode} |
| 4684 |
\newcommand{\COOL@notation@EulerPhiParen}{p} |
| 4685 |
\newcommand{\EulerPhi}[1]{\varphi\COOL@decide@paren{EulerPhi}{#1}} |
| 4686 |
% \end{macrocode} |
| 4687 |
% \end{macro} |
| 4688 |
% |
| 4689 |
% \begin{macro}{\MoebiusMu} |
| 4690 |
% Moebius Function, |\MoebiusMu{x}|, $\MoebiusMu{x}$ |
| 4691 |
% \begin{macrocode} |
| 4692 |
\newcommand{\COOL@notation@MoebiusMuParen}{p} |
| 4693 |
\newcommand{\MoebiusMu}[1]{\mu\COOL@decide@paren{MoebiusMu}{#1}} |
| 4694 |
% \end{macrocode} |
| 4695 |
% \end{macro} |
| 4696 |
% |
| 4697 |
% \begin{macro}{\JacobiSymbol} |
| 4698 |
% Jacobi Symbol, |\JacobiSymbol{n}{m}|, $\JacobiSymbol{n}{m}$ |
| 4699 |
% \begin{macrocode} |
| 4700 |
\newcommand{\JacobiSymbol}[2]{\inp{\frac{#1}{#2}}} |
| 4701 |
% \end{macrocode} |
| 4702 |
% \end{macro} |
| 4703 |
% |
| 4704 |
% \begin{macro}{\CarmichaelLambda} |
| 4705 |
% Carmichael Lambda Function, |\CarmichaelLambda{x}|, $\CarmichaelLambda{x}$ |
| 4706 |
% \begin{macrocode} |
| 4707 |
\newcommand{\COOL@notation@CarmichaelLambdaParen}{p} |
| 4708 |
\newcommand{\CarmichaelLambda}[1]% |
| 4709 |
{\lambda\COOL@decide@paren{CarmichaelLambda}{#1}} |
| 4710 |
% \end{macrocode} |
| 4711 |
% \end{macro} |
| 4712 |
% |
| 4713 |
% \begin{macro}{\DigitCount} |
| 4714 |
% Count the digits of an integer n for a given base b |
| 4715 |
% |
| 4716 |
% \begin{tabular}{c} |
| 4717 |
% |\DigitCount{n}{b}| \\ |
| 4718 |
% $\DigitCount{n}{b}$ \\ |
| 4719 |
% \end{tabular} |
| 4720 |
% \begin{macrocode} |
| 4721 |
\newcommand{\DigitCount}[2]{% |
| 4722 |
\isint{#2}{COOL@isint}% |
| 4723 |
\ifthenelse{\boolean{COOL@isint}}% |
| 4724 |
{% |
| 4725 |
\{% |
| 4726 |
\setcounter{COOL@ct@}{#2}% |
| 4727 |
\addtocounter{COOL@ct@}{-1}% |
| 4728 |
\forLoop{1}{\arabic{COOL@ct@}}{COOL@ct}% |
| 4729 |
{% |
| 4730 |
s^{\arabic{COOL@ct}}_{#2}\inp{#1}, |
| 4731 |
}% |
| 4732 |
s^{\inp{0}}_{#2}\inp{#1}% |
| 4733 |
\}% |
| 4734 |
}% |
| 4735 |
% else |
| 4736 |
{% |
| 4737 |
\{% |
| 4738 |
s^{\inp{1}}_{#2}\inp{#1},% |
| 4739 |
s^{\inp{2}}_{#2}\inp{#1},% |
| 4740 |
\ldots,% |
| 4741 |
s^{\inp{#2} - 1}_{#2}\inp{#1},% |
| 4742 |
s^{\inp{0}}_{#2}\inp{#1}% |
| 4743 |
\}% |
| 4744 |
}% |
| 4745 |
} |
| 4746 |
% \end{macrocode} |
| 4747 |
% \end{macro} |
| 4748 |
% |
| 4749 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4750 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4751 |
% \subsubsection{Generalized Functions} |
| 4752 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4753 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4754 |
% |
| 4755 |
% \begin{macro}{\DiracDelta} |
| 4756 |
% Dirac Delta Function, |\DiracDelta{x}|, $\DiracDelta{x}$ |
| 4757 |
% \begin{macrocode} |
| 4758 |
\newcommand{\COOL@notation@DiracDeltaParen}{p} |
| 4759 |
\newcommand{\DiracDelta}[1]{\delta\COOL@decide@paren{DiracDelta}{#1}} |
| 4760 |
% \end{macrocode} |
| 4761 |
% \end{macro} |
| 4762 |
% |
| 4763 |
% \begin{macro}{\HeavisideStep} |
| 4764 |
% \begin{macro}{\UnitStep} |
| 4765 |
% Heaviside Step Function |
| 4766 |
% |
| 4767 |
% \begin{tabular}{ll} |
| 4768 |
% |\HeavisideStep{x}| & $\HeavisideStep{x}$ \\ |
| 4769 |
% |\UnitStep{x}| & $\UnitStep{x}$ \\ |
| 4770 |
% \end{tabular} |
| 4771 |
% \begin{macrocode} |
| 4772 |
\newcommand{\COOL@notation@HeavisideStepParen}{p} |
| 4773 |
\newcommand{\HeavisideStep}[1]% |
| 4774 |
{\theta\COOL@decide@paren{HeavisideStep}{#1}} |
| 4775 |
\newcommand{\UnitStep}[1]{\HeavisideStep{#1}} |
| 4776 |
% \end{macrocode} |
| 4777 |
% \end{macro} |
| 4778 |
% \end{macro} |
| 4779 |
% |
| 4780 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4781 |
% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4782 |
% \subsubsection{Calculus} |
| 4783 |
% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 4784 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4785 |
% |
| 4786 |
% \begin{macro}{\COOL@notation@DDisplayFunc} |
| 4787 |
% \begin{macro}{\COOL@notation@DShorten} |
| 4788 |
% Both |\D| and |\pderiv| are controlled by these keys. |
| 4789 |
% |
| 4790 |
% |DDisplayFunc| controls how the function is displayed, it can take the values: |
| 4791 |
% |
| 4792 |
% \begin{tabular}{ll} |
| 4793 |
% inset & Display as $\frac{d f}{d x}$ \\ |
| 4794 |
% outset & Display as $\frac{d}{d x} f$ |
| 4795 |
% \end{tabular} |
| 4796 |
% |
| 4797 |
% |DShorten| is for multiple derivatives. it can take the values |
| 4798 |
% |
| 4799 |
% \begin{tabular}{ll} |
| 4800 |
% true & force derivatives to be consolidated, as in $\frac{d^2}{dx dy} f$ \\ |
| 4801 |
% false & expand derivatives as in $\frac{d}{dx} \frac{d}{dx} f$ |
| 4802 |
% \end{tabular} |
| 4803 |
% |
| 4804 |
% \begin{macrocode} |
| 4805 |
\newcounter{COOL@multideriv} |
| 4806 |
\newcommand{\COOL@notation@DDisplayFunc}{inset} |
| 4807 |
\newcommand{\COOL@notation@DShorten}{true} |
| 4808 |
% \end{macrocode} |
| 4809 |
% \end{macro} |
| 4810 |
% \end{macro} |
| 4811 |
% |
| 4812 |
% \begin{macro}{\COOL@derivative} |
| 4813 |
% Both |\D| and |pderiv| have the same basic operation, so a macro is defined that does the internals |
| 4814 |
% |
| 4815 |
% |\COOL@derivative{|\meta{derivative power(s)}|}{|\meta{function}|}{|\meta{wrt}|}{|\meta{symbol}|}| |
| 4816 |
% |
| 4817 |
% \meta{wrt} is a comma separated list of length $\ge$ 1. |
| 4818 |
% |
| 4819 |
% \meta{symbol} is passed by |\D| or |\pderiv| and is |\COOL@notation@DSymb| or `$\partial$' respectively |
| 4820 |
% |
| 4821 |
% \begin{tabular}{ll} |
| 4822 |
% |\COOL@derivative{2,3}{f}{x,y,z}{d}| & \makeatletter |
| 4823 |
% $\COOL@derivative{2,3}{f}{x,y,z}{d}$ |
| 4824 |
% \makeatother |
| 4825 |
% \vspace{.15cm} |
| 4826 |
% \\ |
| 4827 |
% |\COOL@derivative{2,3,4,5}{f}{x,y,z}{d}| & \makeatletter |
| 4828 |
% $\COOL@derivative{2,3,4,5}{f}{x,y,z}{d}$ |
| 4829 |
% \makeatother |
| 4830 |
% \vspace{.15cm} |
| 4831 |
% \\ |
| 4832 |
% |\COOL@derivative{2,n,1}{f}{x,y,z}{d}| & \makeatletter |
| 4833 |
% $\COOL@derivative{2,n,1}{f}{x,y,z}{d}$ |
| 4834 |
% \makeatother |
| 4835 |
% \vspace{.15cm} |
| 4836 |
% \\ |
| 4837 |
% |\COOL@derivative{2,n}{f}{x,y,z}{d}| & \makeatletter |
| 4838 |
% $\COOL@derivative{2,n}{f}{x,y,z}{d}$ |
| 4839 |
% \makeatother |
| 4840 |
% \\ |
| 4841 |
% \\ |
| 4842 |
% |\Style{DDisplayFunc=outset}| \Style{DDisplayFunc=outset} |
| 4843 |
% \\ |
| 4844 |
% |\COOL@derivative{2,n}{f}{x,y,z}{d}| & \makeatletter |
| 4845 |
% $\COOL@derivative{2,n}{f}{x,y,z}{d}$ |
| 4846 |
% \makeatother |
| 4847 |
% \\ |
| 4848 |
% \\ |
| 4849 |
% |\Style{DShorten=false,DDisplayFunc=inset}| \Style{DShorten=false}\Style{DDisplayFunc=inset} |
| 4850 |
% \\ |
| 4851 |
% |\COOL@derivative{2,n}{f}{x,y,z}{d}| & \makeatletter |
| 4852 |
% $\COOL@derivative{2,n}{f}{x,y,z}{d}$ |
| 4853 |
% \makeatother |
| 4854 |
% \vspace{.15cm} |
| 4855 |
% \\ |
| 4856 |
% |\COOL@derivative{2,3,4,5}{f}{x,y,z}{d}| & \makeatletter |
| 4857 |
% $\COOL@derivative{2,3,4,5}{f}{x,y,z}{d}$ |
| 4858 |
% \makeatother |
| 4859 |
% \\ |
| 4860 |
% \\ |
| 4861 |
% |\Style{DShorten=false,DDisplayFunc=outset}| \Style{DShorten=false}\Style{DDisplayFunc=outset} |
| 4862 |
% \\ |
| 4863 |
% |\COOL@derivative{2,n}{f}{x,y,z}{d}| & \makeatletter |
| 4864 |
% $\COOL@derivative{2,n}{f}{x,y,z}{d}$ |
| 4865 |
% \makeatother |
| 4866 |
% \end{tabular} |
| 4867 |
% \begin{macrocode} |
| 4868 |
\newcommand{\COOL@notation@DSymb}{d} |
| 4869 |
\newcommand{\COOL@derivative}[4]{% |
| 4870 |
% \end{macrocode} |
| 4871 |
% Get the length of \meta{wrt} argument. |
| 4872 |
% |\listval{#3}{0}| gives the length of the list since lists begin indexing at 1. |
| 4873 |
% \begin{macrocode} |
| 4874 |
\listval{#3}{0}% |
| 4875 |
\setcounter{COOL@listlen}{\value{COOL@listpointer}}% |
| 4876 |
% \end{macrocode} |
| 4877 |
% Store the \meta{wrt} list and get the length of \meta{derivative power(s)}. |
| 4878 |
% \begin{macrocode} |
| 4879 |
\liststore{#3}{COOL@deriv@wrt@}% |
| 4880 |
\listval{#1}{0}% |
| 4881 |
\setcounter{COOL@ct}{\value{COOL@listpointer}}% |
| 4882 |
\ifthenelse{\value{COOL@ct}>\value{COOL@listlen}}% |
| 4883 |
{\setcounter{COOL@ct}{\value{COOL@listlen}}}{}% |
| 4884 |
\liststore{#1}{COOL@deriv@powers@}% |
| 4885 |
% \end{macrocode} |
| 4886 |
% Check to see if all of the powers are integers---if they are, then we may sum them in the usual sense |
| 4887 |
% \begin{macrocode} |
| 4888 |
\isint{\COOL@deriv@powers@i}{COOL@isint}% |
| 4889 |
\setcounter{COOL@multideriv}{2}% |
| 4890 |
\whiledo{ \boolean{COOL@isint} \AND |
| 4891 |
\NOT \value{COOL@multideriv}>\value{COOL@ct} }% |
| 4892 |
{% |
| 4893 |
\def\COOL@tempd% |
| 4894 |
{\csname COOL@deriv@powers@\roman{COOL@multideriv}\endcsname}% |
| 4895 |
\isint{\COOL@tempd}{COOL@isint}% |
| 4896 |
\stepcounter{COOL@multideriv}% |
| 4897 |
}% |
| 4898 |
% \end{macrocode} |
| 4899 |
% If the length of \meta{derivative power(s)} is less than the length of \meta{wrt}, then we assume that |
| 4900 |
% the last value applies to \emph{all} the remaining derivatives. |
| 4901 |
% |
| 4902 |
%^^A ================================================================================================================== |
| 4903 |
%^^A ============================================ BEGIN SHORTEN AND INSET ============================================= |
| 4904 |
%^^A ================================================================================================================== |
| 4905 |
% \begin{macrocode} |
| 4906 |
\ifthenelse{ \equal{\COOL@notation@DShorten}{true} \AND |
| 4907 |
\equal{\COOL@notation@DDisplayFunc}{inset} }% |
| 4908 |
{% |
| 4909 |
\ifthenelse{ \boolean{COOL@isint} }% |
| 4910 |
{% |
| 4911 |
\def\COOL@temp@D@bot{}% |
| 4912 |
\setcounter{COOL@ct@}{0}% |
| 4913 |
\forLoop{1}{\value{COOL@ct}}{COOL@multideriv}% |
| 4914 |
{% |
| 4915 |
\edef\COOL@power@temp% |
| 4916 |
{\csname COOL@deriv@powers@\roman{COOL@multideriv}\endcsname}% |
| 4917 |
\edef\COOL@wrt@temp% |
| 4918 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 4919 |
\addtocounter{COOL@ct@}{\COOL@power@temp}% |
| 4920 |
\ifthenelse{ \value{COOL@multideriv}=1 }{}% |
| 4921 |
{\edef\COOL@temp@D@bot{\COOL@temp@D@bot \,}}% |
| 4922 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 4923 |
{% |
| 4924 |
\edef\COOL@temp@D@bot% |
| 4925 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp}% |
| 4926 |
}% |
| 4927 |
% Else |
| 4928 |
{% |
| 4929 |
\edef\COOL@temp@D@bot% |
| 4930 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 4931 |
}% |
| 4932 |
}% |
| 4933 |
% \end{macrocode} |
| 4934 |
% we're done with the length of the \meta{derivative power(s)} argument, and we want to start at it $+ \; 1$ |
| 4935 |
% to add the remainders |
| 4936 |
% \begin{macrocode} |
| 4937 |
\ifthenelse{\value{COOL@ct}<\value{COOL@listlen}}% |
| 4938 |
{% |
| 4939 |
\edef\COOL@power@temp% |
| 4940 |
{\csname COOL@deriv@powers@\roman{COOL@ct}\endcsname}% |
| 4941 |
\stepcounter{COOL@ct}% |
| 4942 |
\forLoop{\value{COOL@ct}}{\value{COOL@listlen}}{COOL@multideriv}% |
| 4943 |
{% |
| 4944 |
\edef\COOL@wrt@temp% |
| 4945 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 4946 |
\addtocounter{COOL@ct@}{\COOL@power@temp}% |
| 4947 |
\ifthenelse{ \value{COOL@multideriv}=1 }{}% |
| 4948 |
{\edef\COOL@temp@D@bot{\COOL@temp@D@bot \,}}% |
| 4949 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 4950 |
{% |
| 4951 |
\edef\COOL@temp@D@bot% |
| 4952 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp}% |
| 4953 |
}% |
| 4954 |
% Else |
| 4955 |
{% |
| 4956 |
\edef\COOL@temp@D@bot% |
| 4957 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 4958 |
}% |
| 4959 |
}% |
| 4960 |
}% |
| 4961 |
% Else |
| 4962 |
{}% |
| 4963 |
\ifthenelse{\value{COOL@ct@}=1}% |
| 4964 |
{% |
| 4965 |
\frac{{#4} #2}{\COOL@temp@D@bot}% |
| 4966 |
}% |
| 4967 |
% Else |
| 4968 |
{% |
| 4969 |
\frac{{#4}^{\arabic{COOL@ct@}} #2}{\COOL@temp@D@bot}% |
| 4970 |
}% |
| 4971 |
}% |
| 4972 |
% Else |
| 4973 |
{% |
| 4974 |
% \end{macrocode} |
| 4975 |
% Powers are not all Integers |
| 4976 |
% \begin{macrocode} |
| 4977 |
\edef\COOL@temp@D@bot{}% |
| 4978 |
\def\COOL@temp@D@top@power{}% |
| 4979 |
\forLoop{1}{\value{COOL@ct}}{COOL@multideriv}% |
| 4980 |
{% |
| 4981 |
\edef\COOL@power@temp% |
| 4982 |
{\csname COOL@deriv@powers@\roman{COOL@multideriv}\endcsname}% |
| 4983 |
\edef\COOL@wrt@temp% |
| 4984 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 4985 |
\ifthenelse{ \value{COOL@multideriv} = 1}% |
| 4986 |
{% |
| 4987 |
\edef\COOL@temp@D@top@power{\COOL@power@temp}% |
| 4988 |
}% |
| 4989 |
% Else |
| 4990 |
{% |
| 4991 |
\edef\COOL@temp@D@top@power% |
| 4992 |
{\COOL@temp@D@top@power + \COOL@power@temp}% |
| 4993 |
\edef\COOL@temp@D@bot{\COOL@temp@D@bot \,}% |
| 4994 |
}% |
| 4995 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 4996 |
{% |
| 4997 |
\edef\COOL@temp@D@bot% |
| 4998 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp}% |
| 4999 |
}% |
| 5000 |
% Else |
| 5001 |
{% |
| 5002 |
\edef\COOL@temp@D@bot% |
| 5003 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5004 |
}% |
| 5005 |
}% |
| 5006 |
% \end{macrocode} |
| 5007 |
% we're done with the length of the \meta{derivative power(s)} argument, and we want to start at it $+ \; 1$ |
| 5008 |
% to add the remainders |
| 5009 |
% \begin{macrocode} |
| 5010 |
\ifthenelse{\value{COOL@ct}<\value{COOL@listlen}}% |
| 5011 |
{% |
| 5012 |
\edef\COOL@power@temp% |
| 5013 |
{\csname COOL@deriv@powers@\roman{COOL@ct}\endcsname}% |
| 5014 |
\stepcounter{COOL@ct}% |
| 5015 |
\forLoop{\value{COOL@ct}}{\value{COOL@listlen}}{COOL@multideriv}% |
| 5016 |
{% |
| 5017 |
\edef\COOL@wrt@temp% |
| 5018 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 5019 |
\ifthenelse{ \value{COOL@multideriv} = 1}% |
| 5020 |
{% |
| 5021 |
\edef\COOL@temp@D@top@power{\COOL@power@temp}% |
| 5022 |
}% |
| 5023 |
% Else |
| 5024 |
{% |
| 5025 |
\edef\COOL@temp@D@top@power% |
| 5026 |
{\COOL@temp@D@top@power + \COOL@power@temp}% |
| 5027 |
\edef\COOL@temp@D@bot{\COOL@temp@D@bot \,}% |
| 5028 |
}% |
| 5029 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5030 |
{% |
| 5031 |
\edef\COOL@temp@D@bot% |
| 5032 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp}% |
| 5033 |
}% |
| 5034 |
% Else |
| 5035 |
{% |
| 5036 |
\edef\COOL@temp@D@bot% |
| 5037 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5038 |
}% |
| 5039 |
}% |
| 5040 |
}% |
| 5041 |
% Else |
| 5042 |
{}% |
| 5043 |
\frac{{#4}^{\COOL@temp@D@top@power} #2}{\COOL@temp@D@bot}% |
| 5044 |
}% |
| 5045 |
}% |
| 5046 |
% \end{macrocode} |
| 5047 |
%^^A ================================================================================================================== |
| 5048 |
%^^A ============================================= END SHORTEN AND INSET ============================================== |
| 5049 |
%^^A ================================================================================================================== |
| 5050 |
% |
| 5051 |
%^^A ================================================================================================================== |
| 5052 |
%^^A ============================================ BEGIN SHORTEN AND OUTSET ============================================ |
| 5053 |
%^^A ================================================================================================================== |
| 5054 |
% \begin{macrocode} |
| 5055 |
% Else If |
| 5056 |
{ \ifthenelse{ \equal{\COOL@notation@DShorten}{true} \AND |
| 5057 |
\equal{\COOL@notation@DDisplayFunc}{outset} }% |
| 5058 |
{% |
| 5059 |
\ifthenelse{ \boolean{COOL@isint} }% |
| 5060 |
{% |
| 5061 |
\def\COOL@temp@D@bot{}% |
| 5062 |
\setcounter{COOL@ct@}{0}% |
| 5063 |
\forLoop{1}{\value{COOL@ct}}{COOL@multideriv}% |
| 5064 |
{% |
| 5065 |
\edef\COOL@power@temp% |
| 5066 |
{\csname COOL@deriv@powers@\roman{COOL@multideriv}\endcsname}% |
| 5067 |
\edef\COOL@wrt@temp% |
| 5068 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 5069 |
\addtocounter{COOL@ct@}{\COOL@power@temp}% |
| 5070 |
\ifthenelse{ \value{COOL@multideriv}=1 }{}% |
| 5071 |
{\edef\COOL@temp@D@bot{\COOL@temp@D@bot \,}}% |
| 5072 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5073 |
{% |
| 5074 |
\edef\COOL@temp@D@bot% |
| 5075 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp}% |
| 5076 |
}% |
| 5077 |
% Else |
| 5078 |
{% |
| 5079 |
\edef\COOL@temp@D@bot% |
| 5080 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5081 |
}% |
| 5082 |
}% |
| 5083 |
% \end{macrocode} |
| 5084 |
% we're done with the length of the \meta{derivative power(s)} argument, and we want to start at it $+ \; 1$ |
| 5085 |
% to add the remainders |
| 5086 |
% \begin{macrocode} |
| 5087 |
\ifthenelse{\value{COOL@ct}<\value{COOL@listlen}}% |
| 5088 |
{% |
| 5089 |
\edef\COOL@power@temp% |
| 5090 |
{\csname COOL@deriv@powers@\roman{COOL@ct}\endcsname}% |
| 5091 |
\stepcounter{COOL@ct}% |
| 5092 |
\forLoop{\value{COOL@ct}}{\value{COOL@listlen}}{COOL@multideriv}% |
| 5093 |
{% |
| 5094 |
\edef\COOL@wrt@temp% |
| 5095 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 5096 |
\addtocounter{COOL@ct@}{\COOL@power@temp}% |
| 5097 |
\ifthenelse{ \value{COOL@multideriv}=1 }{}% |
| 5098 |
{\edef\COOL@temp@D@bot{\COOL@temp@D@bot \,}}% |
| 5099 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5100 |
{% |
| 5101 |
\edef\COOL@temp@D@bot% |
| 5102 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp}% |
| 5103 |
}% |
| 5104 |
% Else |
| 5105 |
{% |
| 5106 |
\edef\COOL@temp@D@bot% |
| 5107 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5108 |
}% |
| 5109 |
}% |
| 5110 |
}% |
| 5111 |
% Else |
| 5112 |
{}% |
| 5113 |
\ifthenelse{\value{COOL@ct@}=1}% |
| 5114 |
{% |
| 5115 |
\frac{#4}{\COOL@temp@D@bot} #2% |
| 5116 |
}% |
| 5117 |
% Else |
| 5118 |
{% |
| 5119 |
\frac{{#4}^{\arabic{COOL@ct@}}}{\COOL@temp@D@bot} #2% |
| 5120 |
}% |
| 5121 |
}% |
| 5122 |
% Else |
| 5123 |
{% |
| 5124 |
% \end{macrocode} |
| 5125 |
% Powers are not all Integers |
| 5126 |
% \begin{macrocode} |
| 5127 |
\edef\COOL@temp@D@bot{}% |
| 5128 |
\def\COOL@temp@D@top@power{}% |
| 5129 |
\forLoop{1}{\value{COOL@ct}}{COOL@multideriv}% |
| 5130 |
{% |
| 5131 |
\edef\COOL@power@temp% |
| 5132 |
{\csname COOL@deriv@powers@\roman{COOL@multideriv}\endcsname}% |
| 5133 |
\edef\COOL@wrt@temp% |
| 5134 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 5135 |
\ifthenelse{ \value{COOL@multideriv} = 1}% |
| 5136 |
{% |
| 5137 |
\edef\COOL@temp@D@top@power{\COOL@power@temp}% |
| 5138 |
}% |
| 5139 |
% Else |
| 5140 |
{% |
| 5141 |
\edef\COOL@temp@D@top@power% |
| 5142 |
{\COOL@temp@D@top@power + \COOL@power@temp}% |
| 5143 |
\edef\COOL@temp@D@bot{\COOL@temp@D@bot \,}% |
| 5144 |
}% |
| 5145 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5146 |
{% |
| 5147 |
\edef\COOL@temp@D@bot% |
| 5148 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp}% |
| 5149 |
}% |
| 5150 |
% Else |
| 5151 |
{% |
| 5152 |
\edef\COOL@temp@D@bot% |
| 5153 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5154 |
}% |
| 5155 |
}% |
| 5156 |
% \end{macrocode} |
| 5157 |
% we're done with the length of the \meta{derivative power(s)} argument, and we want to start at it $+ \; 1$ |
| 5158 |
% to add the remainders |
| 5159 |
% \begin{macrocode} |
| 5160 |
\ifthenelse{\value{COOL@ct}<\value{COOL@listlen}}% |
| 5161 |
{% |
| 5162 |
\edef\COOL@power@temp% |
| 5163 |
{\csname COOL@deriv@powers@\roman{COOL@ct}\endcsname}% |
| 5164 |
\stepcounter{COOL@ct}% |
| 5165 |
\forLoop{\value{COOL@ct}}{\value{COOL@listlen}}{COOL@multideriv}% |
| 5166 |
{% |
| 5167 |
\edef\COOL@wrt@temp% |
| 5168 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 5169 |
\ifthenelse{ \value{COOL@multideriv} = 1}% |
| 5170 |
{% |
| 5171 |
\edef\COOL@temp@D@top@power{\COOL@power@temp}% |
| 5172 |
}% |
| 5173 |
% Else |
| 5174 |
{% |
| 5175 |
\edef\COOL@temp@D@top@power% |
| 5176 |
{\COOL@temp@D@top@power + \COOL@power@temp}% |
| 5177 |
\edef\COOL@temp@D@bot{\COOL@temp@D@bot \,}% |
| 5178 |
}% |
| 5179 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5180 |
{% |
| 5181 |
\edef\COOL@temp@D@bot% |
| 5182 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp}% |
| 5183 |
}% |
| 5184 |
% Else |
| 5185 |
{% |
| 5186 |
\edef\COOL@temp@D@bot% |
| 5187 |
{\COOL@temp@D@bot {#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5188 |
}% |
| 5189 |
}% |
| 5190 |
}% |
| 5191 |
% Else |
| 5192 |
{}% |
| 5193 |
\frac{{#4}^{\COOL@temp@D@top@power} }{\COOL@temp@D@bot} #2% |
| 5194 |
}% |
| 5195 |
}% |
| 5196 |
% \end{macrocode} |
| 5197 |
%^^A ================================================================================================================== |
| 5198 |
%^^A ============================================= END SHORTEN AND OUTSET ============================================= |
| 5199 |
%^^A ================================================================================================================== |
| 5200 |
% |
| 5201 |
%^^A ================================================================================================================== |
| 5202 |
%^^A =========================================== BEGIN NO SHORTEN AND INSET =========================================== |
| 5203 |
%^^A ================================================================================================================== |
| 5204 |
% \begin{macrocode} |
| 5205 |
% Else If |
| 5206 |
{ \ifthenelse{ \equal{\COOL@notation@DShorten}{false} \AND |
| 5207 |
\equal{\COOL@notation@DDisplayFunc}{inset} }% |
| 5208 |
{% |
| 5209 |
\def\COOL@temp@D@result{}% |
| 5210 |
\def\COOL@temp@D@bot{}% |
| 5211 |
\def\COOL@temp@D@top{}% |
| 5212 |
\setcounter{COOL@ct@}{\value{COOL@ct}}% |
| 5213 |
\addtocounter{COOL@ct@}{-1} |
| 5214 |
\forLoop{1}{\value{COOL@ct@}}{COOL@multideriv}% |
| 5215 |
{% |
| 5216 |
\edef\COOL@power@temp% |
| 5217 |
{\csname COOL@deriv@powers@\roman{COOL@multideriv}\endcsname}% |
| 5218 |
\edef\COOL@wrt@temp% |
| 5219 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 5220 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5221 |
{% |
| 5222 |
\edef\COOL@temp@D@top{#4}% |
| 5223 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp}% |
| 5224 |
}% |
| 5225 |
% Else |
| 5226 |
{% |
| 5227 |
\edef\COOL@temp@D@top{{#4}^\COOL@power@temp}% |
| 5228 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5229 |
}% |
| 5230 |
\edef\COOL@temp@D@result% |
| 5231 |
{\COOL@temp@D@result \frac{\COOL@temp@D@top}{\COOL@temp@D@bot}}% |
| 5232 |
}% |
| 5233 |
% \end{macrocode} |
| 5234 |
% we're done with the length of the \meta{derivative power(s)} argument, and we want to start at it $+ \; 1$ |
| 5235 |
% to add the remainders |
| 5236 |
% \begin{macrocode} |
| 5237 |
\ifthenelse{\value{COOL@ct}<\value{COOL@listlen}}% |
| 5238 |
{% |
| 5239 |
% \end{macrocode} |
| 5240 |
% Must pick up the one for |\value{COOL@ct}| |
| 5241 |
% \begin{macrocode} |
| 5242 |
\edef\COOL@power@temp% |
| 5243 |
{\csname COOL@deriv@powers@\roman{COOL@ct}\endcsname}% |
| 5244 |
\edef\COOL@wrt@temp% |
| 5245 |
{\csname COOL@deriv@wrt@\roman{COOL@ct}\endcsname}% |
| 5246 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5247 |
{% |
| 5248 |
\edef\COOL@temp@D@top{#4}% |
| 5249 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp}% |
| 5250 |
}% |
| 5251 |
% Else |
| 5252 |
{% |
| 5253 |
\edef\COOL@temp@D@top{{#4}^\COOL@power@temp}% |
| 5254 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5255 |
}% |
| 5256 |
\edef\COOL@temp@D@result% |
| 5257 |
{\COOL@temp@D@result \frac{\COOL@temp@D@top}{\COOL@temp@D@bot}}% |
| 5258 |
% \end{macrocode} |
| 5259 |
% Now add the ones beyond |
| 5260 |
% \begin{macrocode} |
| 5261 |
\stepcounter{COOL@ct}% |
| 5262 |
\setcounter{COOL@ct@}{\value{COOL@listlen}}% |
| 5263 |
\addtocounter{COOL@ct@}{-1}% |
| 5264 |
\forLoop{\value{COOL@ct}}{\value{COOL@ct@}}{COOL@multideriv}% |
| 5265 |
{% |
| 5266 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5267 |
{% |
| 5268 |
\edef\COOL@temp@D@top{#4}% |
| 5269 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp}% |
| 5270 |
}% |
| 5271 |
% Else |
| 5272 |
{% |
| 5273 |
\edef\COOL@temp@D@top{{#4}^\COOL@power@temp}% |
| 5274 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5275 |
}% |
| 5276 |
\edef\COOL@temp@D@result% |
| 5277 |
{\COOL@temp@D@result \frac{\COOL@temp@D@top}{\COOL@temp@D@bot}}% |
| 5278 |
}% |
| 5279 |
% \end{macrocode} |
| 5280 |
% Must pick up the one for |\value{COOL@listlen}| |
| 5281 |
% \begin{macrocode} |
| 5282 |
\edef\COOL@wrt@temp% |
| 5283 |
{\csname COOL@deriv@wrt@\roman{COOL@listlen}\endcsname}% |
| 5284 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5285 |
{% |
| 5286 |
\edef\COOL@temp@D@top{#4}% |
| 5287 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp}% |
| 5288 |
}% |
| 5289 |
% Else |
| 5290 |
{% |
| 5291 |
\edef\COOL@temp@D@top{{#4}^\COOL@power@temp}% |
| 5292 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5293 |
}% |
| 5294 |
\edef\COOL@temp@D@result% |
| 5295 |
{\COOL@temp@D@result \frac{\COOL@temp@D@top #2}{\COOL@temp@D@bot}}% |
| 5296 |
}% |
| 5297 |
% Else |
| 5298 |
{% |
| 5299 |
% \end{macrocode} |
| 5300 |
% Must pick up the one for |\value{COOL@ct}| |
| 5301 |
% \begin{macrocode} |
| 5302 |
\edef\COOL@power@temp% |
| 5303 |
{\csname COOL@deriv@powers@\roman{COOL@ct}\endcsname}% |
| 5304 |
\edef\COOL@wrt@temp% |
| 5305 |
{\csname COOL@deriv@wrt@\roman{COOL@ct}\endcsname}% |
| 5306 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5307 |
{% |
| 5308 |
\edef\COOL@temp@D@top{#4}% |
| 5309 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp}% |
| 5310 |
}% |
| 5311 |
% Else |
| 5312 |
{% |
| 5313 |
\edef\COOL@temp@D@top{{#4}^\COOL@power@temp}% |
| 5314 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5315 |
}% |
| 5316 |
\edef\COOL@temp@D@result% |
| 5317 |
{\COOL@temp@D@result \frac{\COOL@temp@D@top #2}{\COOL@temp@D@bot}}% |
| 5318 |
}% |
| 5319 |
\COOL@temp@D@result% |
| 5320 |
}% |
| 5321 |
% \end{macrocode} |
| 5322 |
%^^A ================================================================================================================== |
| 5323 |
%^^A ============================================ END NO SHORTEN AND INSET ============================================ |
| 5324 |
%^^A ================================================================================================================== |
| 5325 |
% |
| 5326 |
%^^A ================================================================================================================== |
| 5327 |
%^^A =========================================== BEGIN NO SHORTEN AND OUTSET ========================================== |
| 5328 |
%^^A ================================================================================================================== |
| 5329 |
% \begin{macrocode} |
| 5330 |
% Else If |
| 5331 |
{ \ifthenelse{ \equal{\COOL@notation@DShorten}{false} \AND |
| 5332 |
\equal{\COOL@notation@DDisplayFunc}{outset} }% |
| 5333 |
{% |
| 5334 |
\def\COOL@temp@D@result{}% |
| 5335 |
\def\COOL@temp@D@bot{}% |
| 5336 |
\def\COOL@temp@D@top{}% |
| 5337 |
\forLoop{1}{\value{COOL@ct}}{COOL@multideriv}% |
| 5338 |
{% |
| 5339 |
\edef\COOL@power@temp% |
| 5340 |
{\csname COOL@deriv@powers@\roman{COOL@multideriv}\endcsname}% |
| 5341 |
\edef\COOL@wrt@temp% |
| 5342 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 5343 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5344 |
{% |
| 5345 |
\edef\COOL@temp@D@top{#4}% |
| 5346 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp}% |
| 5347 |
}% |
| 5348 |
% Else |
| 5349 |
{% |
| 5350 |
\edef\COOL@temp@D@top{{#4}^\COOL@power@temp}% |
| 5351 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5352 |
}% |
| 5353 |
\edef\COOL@temp@D@result% |
| 5354 |
{\COOL@temp@D@result \frac{\COOL@temp@D@top}{\COOL@temp@D@bot}}% |
| 5355 |
}% |
| 5356 |
% \end{macrocode} |
| 5357 |
% we're done with the length of the \meta{derivative power(s)} argument, and we want to start at it $+ \; 1$ |
| 5358 |
% to add the remainders |
| 5359 |
% \begin{macrocode} |
| 5360 |
\ifthenelse{\value{COOL@ct}<\value{COOL@listlen}}% |
| 5361 |
{% |
| 5362 |
\edef\COOL@power@temp% |
| 5363 |
{\csname COOL@deriv@powers@\roman{COOL@ct}\endcsname}% |
| 5364 |
\stepcounter{COOL@ct}% |
| 5365 |
\forLoop{\value{COOL@ct}}{\value{COOL@listlen}}{COOL@multideriv}% |
| 5366 |
{% |
| 5367 |
\edef\COOL@wrt@temp% |
| 5368 |
{\csname COOL@deriv@wrt@\roman{COOL@multideriv}\endcsname}% |
| 5369 |
\ifthenelse{ \equal{\COOL@power@temp}{1} }% |
| 5370 |
{% |
| 5371 |
\edef\COOL@temp@D@top{#4}% |
| 5372 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp}% |
| 5373 |
}% |
| 5374 |
% Else |
| 5375 |
{% |
| 5376 |
\edef\COOL@temp@D@top{{#4}^\COOL@power@temp}% |
| 5377 |
\edef\COOL@temp@D@bot{{#4} \COOL@wrt@temp^\COOL@power@temp}% |
| 5378 |
}% |
| 5379 |
\edef\COOL@temp@D@result% |
| 5380 |
{\COOL@temp@D@result \frac{\COOL@temp@D@top}{\COOL@temp@D@bot}}% |
| 5381 |
}% |
| 5382 |
}% |
| 5383 |
% Else |
| 5384 |
{% |
| 5385 |
}% |
| 5386 |
\COOL@temp@D@result #2 |
| 5387 |
}% |
| 5388 |
% \end{macrocode} |
| 5389 |
%^^A ================================================================================================================== |
| 5390 |
%^^A ============================================ END NO SHORTEN AND OUTSET =========================================== |
| 5391 |
%^^A ================================================================================================================== |
| 5392 |
% \begin{macrocode} |
| 5393 |
% Else |
| 5394 |
{% |
| 5395 |
\PackageError{cool}{Invalid Option Sent}% |
| 5396 |
{DShorten can only be `true' or `false';% |
| 5397 |
DDisplayFunc can only be `inset' or `outset'}% |
| 5398 |
}% |
| 5399 |
}}}% |
| 5400 |
} |
| 5401 |
% \end{macrocode} |
| 5402 |
% \end{macro} |
| 5403 |
% |
| 5404 |
% \begin{macro}{\D} |
| 5405 |
% \begin{macro}{\pderiv} |
| 5406 |
% Derivatives |
| 5407 |
% |
| 5408 |
% \begin{tabular}{ll} |
| 5409 |
% |\Style{DSymb={\mathrm d}}| \Style{DSymb={\mathrm d}} \\ |
| 5410 |
% |\D{f}{x}| & \vspace{0.15cm}$\D{f}{x}$ \\ |
| 5411 |
% |\D[n]{f}{x}| & \vspace{0.15cm}$\D[n]{f}{x}$ \\ |
| 5412 |
% |\D{f}{x,y,z}| & \vspace{0.15cm}$\D{f}{x,y,z}$ \\ |
| 5413 |
% |\D[1,2,1]{f}{x,y,z}| & \vspace{0.15cm}$\D[1,2,1]{f}{x,y,z}$ \\ |
| 5414 |
% |\pderiv{f}{x}| & \vspace{0.15cm}$\pderiv{f}{x}$ \\ |
| 5415 |
% |\pderiv[n]{f}{x}| & \vspace{0.15cm}$\pderiv[n]{f}{x}$ \\ |
| 5416 |
% |\pderiv{f}{x,y,z}| & \vspace{0.15cm}$\pderiv{f}{x,y,z}$ \\ |
| 5417 |
% |\pderiv[1,2,1]{f}{x,y,z}| & \vspace{0.15cm}$\pderiv[1,2,1]{f}{x,y,z}$ \\ |
| 5418 |
% \end{tabular} |
| 5419 |
% \begin{macrocode} |
| 5420 |
\newcommand{\D}[3][1]{\COOL@derivative{#1}{#2}{#3}{{\COOL@notation@DSymb}}} |
| 5421 |
\newcommand{\pderiv}[3][1]{\COOL@derivative{#1}{#2}{#3}{\partial}} |
| 5422 |
% \end{macrocode} |
| 5423 |
% \end{macro} |
| 5424 |
% \end{macro} |
| 5425 |
% |
| 5426 |
% |
| 5427 |
% |
| 5428 |
% \begin{macro}{\Integrate} |
| 5429 |
% \begin{macro}{\Int} |
| 5430 |
% Integrate |
| 5431 |
% |
| 5432 |
% This has the option |IntegrateDisplayFunc| which can be |inset| or |outset|: |
| 5433 |
% |
| 5434 |
% \begin{tabular}{c} |
| 5435 |
% |\Style{IntegrateDisplayFunc=inset}| (Default)% |
| 5436 |
% \Style{IntegrateDisplayFunc=inset} |
| 5437 |
% \\ |
| 5438 |
% \begin{tabular}{ll} |
| 5439 |
% |\Integrate{f}{x}| & \vspace{0.15cm}$\Integrate{f}{x}$ \\ |
| 5440 |
% |\Int{f}{x}| & \vspace{0.15cm}$\Int{f}{x}$ \\ |
| 5441 |
% |\Integrate{f}{x,A}| & \vspace{0.15cm}$\Integrate{f}{x,A}$ \\ |
| 5442 |
% |\Int{f}{x,A}| & \vspace{0.15cm}$\Int{f}{x,A}$ \\ |
| 5443 |
% |\Integrate{f}{x,a,b}| & \vspace{0.15cm}$\Integrate{f}{x,a,b}$ \\ |
| 5444 |
% |\Int{f}{x,a,b}| & \vspace{0.15cm}$\Int{f}{x,a,b}$ \\ |
| 5445 |
% \end{tabular} |
| 5446 |
% \\ |
| 5447 |
% \\ |
| 5448 |
% |\Style{IntegrateDisplayFunc=outset,IntegrateDifferentialDSymb=\text{d}}|% |
| 5449 |
% \Style{IntegrateDisplayFunc=outset,IntegrateDifferentialDSymb=\text{d}} |
| 5450 |
% \\ |
| 5451 |
% \begin{tabular}{ll} |
| 5452 |
% |\Integrate{f}{x}| & \vspace{0.15cm}$\Integrate{f}{x}$ \\ |
| 5453 |
% |\Int{f}{x}| & \vspace{0.15cm}$\Int{f}{x}$ \\ |
| 5454 |
% |\Integrate{f}{x,A}| & \vspace{0.15cm}$\Integrate{f}{x,A}$ \\ |
| 5455 |
% |\Int{f}{x,A}| & \vspace{0.15cm}$\Int{f}{x,A}$ \\ |
| 5456 |
% |\Integrate{f}{x,a,b}| & \vspace{0.15cm}$\Integrate{f}{x,a,b}$ \\ |
| 5457 |
% |\Int{f}{x,a,b}| & \vspace{0.15cm}$\Int{f}{x,a,b}$ \\ |
| 5458 |
% \end{tabular} |
| 5459 |
% \Style{IntegrateDisplayFunc=inset} |
| 5460 |
% \\ |
| 5461 |
% \end{tabular} |
| 5462 |
% \begin{macrocode} |
| 5463 |
\newcommand{\COOL@notation@IntegrateDisplayFunc}{inset} |
| 5464 |
\newcommand{\COOL@notation@IntegrateDifferentialDSymb}{d} |
| 5465 |
\newcommand{\Integrate}[2]{% |
| 5466 |
\listval{#2}{0}% |
| 5467 |
% \end{macrocode} |
| 5468 |
% record the length of the list |
| 5469 |
% \begin{macrocode} |
| 5470 |
\setcounter{COOL@listlen}{\value{COOL@listpointer}}% |
| 5471 |
\ifthenelse{ \value{COOL@listlen} = 1 }% |
| 5472 |
{% |
| 5473 |
\ifthenelse{\equal{\COOL@notation@IntegrateDisplayFunc}{outset}}% |
| 5474 |
{% |
| 5475 |
\int \! \COOL@notation@IntegrateDifferentialDSymb{}#2 \, #1% |
| 5476 |
}% |
| 5477 |
% ElseIf |
| 5478 |
{ \ifthenelse{\equal{\COOL@notation@IntegrateDisplayFunc}{inset}}% |
| 5479 |
{% |
| 5480 |
\int #1 \, \COOL@notation@IntegrateDifferentialDSymb{}#2% |
| 5481 |
}% |
| 5482 |
% Else |
| 5483 |
{% |
| 5484 |
\PackageError{cool}{Invalid Option Sent}% |
| 5485 |
{`DisplayFunc' can only be `inset' or `outset'}% |
| 5486 |
}}% |
| 5487 |
}% |
| 5488 |
% ElseIf |
| 5489 |
{ \ifthenelse{ \value{COOL@listlen} = 2 }% |
| 5490 |
{% |
| 5491 |
\ifthenelse{\equal{\COOL@notation@IntegrateDisplayFunc}{outset}}% |
| 5492 |
{% |
| 5493 |
\int_{\listval{#2}{2}} \! |
| 5494 |
\COOL@notation@IntegrateDifferentialDSymb{}{\listval{#2}{1}} \, #1% |
| 5495 |
}% |
| 5496 |
% ElseIf |
| 5497 |
{ \ifthenelse{\equal{\COOL@notation@IntegrateDisplayFunc}{inset}}% |
| 5498 |
{% |
| 5499 |
\int_{\listval{#2}{2}} #1 \, |
| 5500 |
\COOL@notation@IntegrateDifferentialDSymb{}{\listval{#2}{1}}% |
| 5501 |
}% |
| 5502 |
% Else |
| 5503 |
{% |
| 5504 |
\PackageError{cool}{Invalid Option Sent}% |
| 5505 |
{`DisplayFunc' can only be `inset' or `outset'}% |
| 5506 |
}}% |
| 5507 |
}% |
| 5508 |
% ElseIf |
| 5509 |
{ \ifthenelse{ \value{COOL@listlen} = 3 }% |
| 5510 |
{% |
| 5511 |
\ifthenelse{\equal{\COOL@notation@IntegrateDisplayFunc}{outset}}% |
| 5512 |
{% |
| 5513 |
\int_{\listval{#2}{2}}^{\listval{#2}{3}} \! |
| 5514 |
\COOL@notation@IntegrateDifferentialDSymb{}{\listval{#2}{1}} \, #1% |
| 5515 |
}% |
| 5516 |
% ElseIf |
| 5517 |
{ \ifthenelse{\equal{\COOL@notation@IntegrateDisplayFunc}{inset}}% |
| 5518 |
{% |
| 5519 |
\int_{\listval{#2}{2}}^{\listval{#2}{3}} #1 \, |
| 5520 |
\COOL@notation@IntegrateDifferentialDSymb{}{\listval{#2}{1}}% |
| 5521 |
}% |
| 5522 |
% Else |
| 5523 |
{% |
| 5524 |
\PackageError{cool}{Invalid Option Sent}% |
| 5525 |
{`DisplayFunc' can only be `inset' or `outset'}% |
| 5526 |
}}% |
| 5527 |
}% |
| 5528 |
% Else |
| 5529 |
{% |
| 5530 |
\PackageError{cool}{`Integrate' has invalid parameter list}% |
| 5531 |
{this happens when the second argument has more than two commas}% |
| 5532 |
}}}% |
| 5533 |
}% |
| 5534 |
\newcommand{\Int}[2]{\Integrate{#1}{#2}} |
| 5535 |
% \end{macrocode} |
| 5536 |
% \end{macro} |
| 5537 |
% \end{macro} |
| 5538 |
% |
| 5539 |
% |
| 5540 |
% |
| 5541 |
% \begin{macro}{\Sum} |
| 5542 |
% Sum |
| 5543 |
% |
| 5544 |
% \begin{tabular}{ll} |
| 5545 |
% |\Sum{a_n}{n}| & \vspace{0.1cm}$\Sum{a_n}{n}$ \\ |
| 5546 |
% |\Sum{a_n}{n,1,N}| & \vspace{0.1cm}$\Sum{a_n}{n,1,N}$ \\ |
| 5547 |
% \end{tabular} |
| 5548 |
% \begin{macrocode} |
| 5549 |
\newcommand{\Sum}[2]{% |
| 5550 |
\listval{#2}{0}% |
| 5551 |
% \end{macrocode} |
| 5552 |
% record the length of the list |
| 5553 |
% \begin{macrocode} |
| 5554 |
\setcounter{COOL@listlen}{\value{COOL@listpointer}} |
| 5555 |
\ifthenelse{ \value{COOL@listlen} = 1 }% |
| 5556 |
{% |
| 5557 |
\sum_{#2} #1% |
| 5558 |
}% |
| 5559 |
% else |
| 5560 |
{% |
| 5561 |
\ifthenelse{ \value{COOL@listlen} = 3 }% |
| 5562 |
{% |
| 5563 |
\sum_{ \listval{#2}{1} = \listval{#2}{2} }^{ \listval{#2}{3} } #1 |
| 5564 |
}% |
| 5565 |
% else |
| 5566 |
{% |
| 5567 |
\PackageError{cool}{Invalid list length for `Sum'}% |
| 5568 |
{can only have none or two commas for second argument}% |
| 5569 |
}% |
| 5570 |
}% |
| 5571 |
} |
| 5572 |
% \end{macrocode} |
| 5573 |
% \end{macro} |
| 5574 |
% |
| 5575 |
% \begin{macro}{\Prod} |
| 5576 |
% Product |
| 5577 |
% |
| 5578 |
% \begin{tabular}{ll} |
| 5579 |
% |\Prod{a_n}{n}| & \vspace{0.1cm}$\Prod{a_n}{n}$ \\ |
| 5580 |
% |\Prod{a_n}{n,1,N}| & \vspace{0.1cm}$\Prod{a_n}{n,1,N}$ \\ |
| 5581 |
% \end{tabular} |
| 5582 |
% \begin{macrocode} |
| 5583 |
\newcommand{\Prod}[2]{% |
| 5584 |
\listval{#2}{0}% |
| 5585 |
% \end{macrocode} |
| 5586 |
% record the length of the list |
| 5587 |
% \begin{macrocode} |
| 5588 |
\setcounter{COOL@listlen}{\value{COOL@listpointer}} |
| 5589 |
\ifthenelse{ \value{COOL@listlen} = 1 }% |
| 5590 |
{% |
| 5591 |
\prod_{#2} #1% |
| 5592 |
}% |
| 5593 |
% else |
| 5594 |
{% |
| 5595 |
\ifthenelse{ \value{COOL@listlen} = 3 }% |
| 5596 |
{% |
| 5597 |
\prod_{ \listval{#2}{1} = \listval{#2}{2} }^{ \listval{#2}{3} } #1 |
| 5598 |
}% |
| 5599 |
% else |
| 5600 |
{% |
| 5601 |
\PackageError{cool}{Invalid list length for `Prod'}% |
| 5602 |
{can only have none or two commas for second argument}% |
| 5603 |
}% |
| 5604 |
}% |
| 5605 |
} |
| 5606 |
% \end{macrocode} |
| 5607 |
% \end{macro} |
| 5608 |
% |
| 5609 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5610 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 5611 |
% \subsubsection{Vector Operators} |
| 5612 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 5613 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5614 |
% |
| 5615 |
% \begin{macro}{\DotProduct} |
| 5616 |
% The dot product, |\DotProduct{\vec{A}}{\vec{B}}|, $\DotProduct{\vec{A}}{\vec{B}}$ |
| 5617 |
% \begin{macrocode} |
| 5618 |
\newcommand{\DotProduct}[2]{#1 \cdot #2} |
| 5619 |
% \end{macrocode} |
| 5620 |
% \end{macro} |
| 5621 |
% |
| 5622 |
% \begin{macro}{\Cross} |
| 5623 |
% The cross product, |\Cross{\vec{A}}{\vec{B}}|, $\Cross{\vec{A}}{\vec{B}}$ |
| 5624 |
% \begin{macrocode} |
| 5625 |
\newcommand{\Cross}[2]{#1 \times #2} |
| 5626 |
% \end{macrocode} |
| 5627 |
% \end{macro} |
| 5628 |
% |
| 5629 |
% \begin{macro}{\Div} |
| 5630 |
% the divergence, |\Div{\vec{A}}|, $\Div{\vec{A}}$ |
| 5631 |
% \begin{macrocode} |
| 5632 |
\newcommand{\Div}[1]{\nabla \cdot #1} |
| 5633 |
% \end{macrocode} |
| 5634 |
% \end{macro} |
| 5635 |
% |
| 5636 |
% \begin{macro}{\Grad} |
| 5637 |
% The gradient, |\Grad{f}|, $\Grad{f}$ |
| 5638 |
% \begin{macrocode} |
| 5639 |
\newcommand{\Grad}[1]{\nabla #1} |
| 5640 |
% \end{macrocode} |
| 5641 |
% \end{macro} |
| 5642 |
% |
| 5643 |
% \begin{macro}{\Curl} |
| 5644 |
% The curl, |\Curl{\vec{A}}|, $\Curl{\vec{A}}$ |
| 5645 |
% \begin{macrocode} |
| 5646 |
\newcommand{\Curl}[1]{\nabla \times #1} |
| 5647 |
% \end{macrocode} |
| 5648 |
% \end{macro} |
| 5649 |
% |
| 5650 |
% \begin{macro}{\Laplacian} |
| 5651 |
% The laplacian, |\Laplacian{f}|, $\Laplacian{f}$ |
| 5652 |
% \begin{macrocode} |
| 5653 |
\newcommand{\Laplacian}[1]{\nabla^2 #1} |
| 5654 |
% \end{macrocode} |
| 5655 |
% \end{macro} |
| 5656 |
% |
| 5657 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5658 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 5659 |
% \subsubsection{Matrix Operations} |
| 5660 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 5661 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5662 |
% |
| 5663 |
% \begin{macro}{\Transpose} |
| 5664 |
% Transpose of a matrix, |\Transpose{A}|, $\Transpose{A}$ |
| 5665 |
% \begin{macrocode} |
| 5666 |
\newcommand{\COOL@notation@TransposeParen}{inv} |
| 5667 |
\newcommand{\Transpose}[1]{ \COOL@decide@paren{Transpose}{#1}^T } |
| 5668 |
% \end{macrocode} |
| 5669 |
% \end{macro} |
| 5670 |
% |
| 5671 |
% \begin{macro}{\Dagger} |
| 5672 |
% Conjugate Transpose of a matrix, |\Dagger{A}|, $\Dagger{A}$ |
| 5673 |
% \begin{macrocode} |
| 5674 |
\newcommand{\COOL@notation@DaggerParen}{inv} |
| 5675 |
\newcommand{\Dagger}[1]{ \COOL@decide@paren{Dagger}{#1}^\dagger } |
| 5676 |
% \end{macrocode} |
| 5677 |
% \end{macro} |
| 5678 |
% |
| 5679 |
% \begin{macro}{\Det} |
| 5680 |
% determinant of a matrix |
| 5681 |
% |
| 5682 |
% \begin{tabular}{ll} |
| 5683 |
% |\Style{DetDisplay=det}|% |
| 5684 |
% \Style{DetDisplay=det} (Default) \\ |
| 5685 |
% |\Det{A}| & $\Det{A}$ \\ |
| 5686 |
% |\Style{DetDisplay=barenc}|% |
| 5687 |
% \Style{DetDisplay=barenc} \\ |
| 5688 |
% |\Det{A}| & $\Det{A}$ \\ |
| 5689 |
% \end{tabular} |
| 5690 |
% \begin{macrocode} |
| 5691 |
\newcommand{\COOL@notation@DetParen}{none} |
| 5692 |
\newcommand{\COOL@notation@DetDisplay}{det} |
| 5693 |
\newcommand{\Det}[1]{% |
| 5694 |
\ifthenelse{\equal{\COOL@notation@DetDisplay}{det}}% |
| 5695 |
{% |
| 5696 |
\det\COOL@decide@paren{Det}{#1}% |
| 5697 |
}% |
| 5698 |
% ElseIf |
| 5699 |
{ \ifthenelse{\equal{\COOL@notation@DetDisplay}{barenc}}% |
| 5700 |
{% |
| 5701 |
\left|#1\right|% |
| 5702 |
}% |
| 5703 |
% Else |
| 5704 |
{% |
| 5705 |
\PackageError{cool}{Invalid Option Sent}% |
| 5706 |
{`DetDisplay' can only be `det' or `barenc'}% |
| 5707 |
}}% |
| 5708 |
} |
| 5709 |
% \end{macrocode} |
| 5710 |
% \end{macro} |
| 5711 |
% |
| 5712 |
% \begin{macro}{\Tr} |
| 5713 |
% Trace of a Matrix, |\Tr{A}|, $\Tr{A}$ |
| 5714 |
% \begin{macrocode} |
| 5715 |
\newcommand{\COOL@notation@TrParen}{none} |
| 5716 |
\newcommand{\Tr}[2][]{% |
| 5717 |
\ifthenelse{\equal{#1}{}} |
| 5718 |
{% |
| 5719 |
\operatorname{Tr}\COOL@decide@paren{Tr}{#2}% |
| 5720 |
}% |
| 5721 |
% Else |
| 5722 |
{% |
| 5723 |
\operatorname{Tr}_{#1}\COOL@decide@paren{Tr}{#2}% |
| 5724 |
}% |
| 5725 |
} |
| 5726 |
% \end{macrocode} |
| 5727 |
% \end{macro} |
| 5728 |
% |
| 5729 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5730 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 5731 |
% \subsubsection{Matricies} |
| 5732 |
% % %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% %% % |
| 5733 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5734 |
% |
| 5735 |
% \begin{macro}{\IdentityMatrix} |
| 5736 |
% The Identity Matrix |
| 5737 |
% |
| 5738 |
% \begin{tabular}{cc} |
| 5739 |
% |\IdentityMatrix| & $\IdentityMatrix$ \\ |
| 5740 |
% |\IdentityMatrix[2]| & $\IdentityMatrix[2]$ \\ |
| 5741 |
% \end{tabular} |
| 5742 |
% \begin{macrocode} |
| 5743 |
\newcommand{\COOL@notation@IdentityMatrixParen}{p} |
| 5744 |
\newcounter{COOL@row}% |
| 5745 |
\newcounter{COOL@col}% |
| 5746 |
\newcommand{\COOL@notation@IdentityMatrixSymb}{\mathbbm{1}} |
| 5747 |
\newcommand{\IdentityMatrix}[1][0]{% |
| 5748 |
\isint{#1}{COOL@isint}% |
| 5749 |
\ifthenelse{\boolean{COOL@isint}}% |
| 5750 |
{% |
| 5751 |
\ifthenelse{ #1=0 }% |
| 5752 |
{% |
| 5753 |
\COOL@notation@IdentityMatrixSymb% |
| 5754 |
}% |
| 5755 |
% Else |
| 5756 |
{% |
| 5757 |
\setcounter{COOL@ct}{\value{MaxMatrixCols}}% |
| 5758 |
\setcounter{MaxMatrixCols}{#1}% |
| 5759 |
\ifthenelse{\equal{\COOL@notation@IdentityMatrixParen}{p}}% |
| 5760 |
{% |
| 5761 |
\begin{pmatrix}% |
| 5762 |
}% |
| 5763 |
% ElseIf |
| 5764 |
{ \ifthenelse{\equal{\COOL@notation@IdentityMatrixParen}{b}}% |
| 5765 |
{% |
| 5766 |
\begin{bmatrix}% |
| 5767 |
}% |
| 5768 |
% ElseIf |
| 5769 |
{ \ifthenelse{\equal{\COOL@notation@IdentityMatrixParen}{br}}% |
| 5770 |
{% |
| 5771 |
\begin{Bmatrix}% |
| 5772 |
}% |
| 5773 |
% Else |
| 5774 |
{% |
| 5775 |
\begin{matrix}% |
| 5776 |
}}}% |
| 5777 |
\forLoop{1}{#1}{COOL@row}% |
| 5778 |
{% |
| 5779 |
\ifthenelse{\NOT \value{COOL@row} = 1}{\\}{}% |
| 5780 |
\forLoop{1}{#1}{COOL@col}% |
| 5781 |
{% |
| 5782 |
\ifthenelse{ \NOT \value{COOL@col} = 1 }{&}{}% |
| 5783 |
\ifthenelse{ \value{COOL@row}=\value{COOL@col} }{1}{0}% |
| 5784 |
}% |
| 5785 |
}% |
| 5786 |
\ifthenelse{\equal{\COOL@notation@IdentityMatrixParen}{p}}% |
| 5787 |
{% |
| 5788 |
\end{pmatrix}% |
| 5789 |
}% |
| 5790 |
% ElseIf |
| 5791 |
{ \ifthenelse{\equal{\COOL@notation@IdentityMatrixParen}{b}}% |
| 5792 |
{% |
| 5793 |
\end{bmatrix}% |
| 5794 |
}% |
| 5795 |
% ElseIf |
| 5796 |
{ \ifthenelse{\equal{\COOL@notation@IdentityMatrixParen}{br}}% |
| 5797 |
{% |
| 5798 |
\end{Bmatrix}% |
| 5799 |
}% |
| 5800 |
% Else |
| 5801 |
{% |
| 5802 |
\end{matrix}% |
| 5803 |
}}}% |
| 5804 |
\setcounter{MaxMatrixCols}{\value{COOL@ct}}% |
| 5805 |
}% |
| 5806 |
}% |
| 5807 |
% Else |
| 5808 |
{% |
| 5809 |
\COOL@notation@IdentityMatrixSymb% |
| 5810 |
}% |
| 5811 |
}% |
| 5812 |
% \end{macrocode} |
| 5813 |
% \end{macro} |
| 5814 |
% |
| 5815 |
% |
| 5816 |
% |
| 5817 |
% |
| 5818 |
% \Finale |
| 5819 |
\endinput |