From c428e1387c10598cd59a5ec73239ef347daf1f1d Mon Sep 17 00:00:00 2001 From: n3rada <72791564+n3rada@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:10:32 +0200 Subject: [PATCH] Update commands.sty --- packages/commands.sty | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/packages/commands.sty b/packages/commands.sty index 5f14ee0..39bb61e 100644 --- a/packages/commands.sty +++ b/packages/commands.sty @@ -38,6 +38,49 @@ \newcommand { \dv } { \ , dv } \newcommand { \dtheta } { \ , d \theta } +% Integral over a path +\newcommand{\pathint}{\oint} + +% Integral over a volume +\newcommand{\volint}{\iiint} + +% Modulo operator +\newcommand{\modulo}[2]{#1 \bmod #2} + +% Big-O notation +\newcommand{\bigO}[1]{\mathcal{O}\left( #1 \right)} + +% Laplacian operator +\newcommand{\laplacian}{\nabla^2} + +% Fourier transform +\newcommand{\fourier}[1]{\mathcal{F}\left\{ #1 \right\}} +\newcommand{\invfourier}[1]{\mathcal{F}^{-1}\left\{ #1 \right\}} + +% Laplace transform +\newcommand{\laplace}[1]{\mathcal{L}\left\{ #1 \right\}} +\newcommand{\invlaplace}[1]{\mathcal{L}^{-1}\left\{ #1 \right\}} + +% Z-transform +\newcommand{\ztransform}[1]{\mathcal{Z}\left\{ #1 \right\}} +\newcommand{\invztransform}[1]{\mathcal{Z}^{-1}\left\{ #1 \right\}} + +% Commutator +\newcommand{\commutator}[2]{\left[ #1, #2 \right]} + +% Anticommutator +\newcommand{\anticommutator}[2]{\left\{ #1, #2 \right\}} + +% Dot product +\newcommand{\dotprod}[2]{\mathbf{#1} \cdot \mathbf{#2}} + +% Cross product +\newcommand{\crossprod}[2]{\mathbf{#1} \times \mathbf{#2}} + +% Tensor product +\newcommand{\tensorprod}[2]{\mathbf{#1} \otimes \mathbf{#2}} + + % For specially formatted fractions \newcommand { \textfrac } [ 2 ] { \frac { \text { #1 } } { \text { #2 } } } @@ -72,6 +115,11 @@ \Leftarrow } } \newcommand { \backwards } { ``$ \Leftarrow $ ''} +% Standard basis vectors in R^3 +\newcommand{\ihat}{\hat{\mathbf{i}}} +\newcommand{\jhat}{\hat{\mathbf{j}}} +\newcommand{\khat}{\hat{\mathbf{k}}} + %%% Quantic