Skip to content

Commit

Permalink
Update commands.sty
Browse files Browse the repository at this point in the history
  • Loading branch information
n3rada authored Jun 28, 2024
1 parent 7edc632 commit c428e13
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions packages/commands.sty
Original file line number Diff line number Diff line change
Expand Up @@ -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 } } }
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c428e13

Please sign in to comment.