Skip to content

Commit

Permalink
Add '\Oh{n}' for writing complexity with prettier LaTeX notation and …
Browse files Browse the repository at this point in the history
…output
  • Loading branch information
SSoelvsten committed Nov 19, 2024
1 parent 4e52358 commit ad8543f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions preamble/math_macros_functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
\newcommand{\inprod}[2]{\tuple{#1, #2}} % \inprod{v}{w} inner product
\newcommand{\powgroup}[1]{\tuple{#1}} % \powgroup{arg} image of f={g^n | n in Z}

\newcommand{\Oh}[1]{\ensuremath{\mathcal{O}(#1)}} % \Oh{n} = O(N)

\newcommand{\dboxed}[1]{{%
\tikz[baseline={([yshift=-1ex]current bounding box.center)}]
\node [rectangle, minimum width=1ex, inner sep=.3ex, outer sep=.3ex, dashed, draw] {\normalcolor$\displaystyle#1$};}}
Expand Down

0 comments on commit ad8543f

Please sign in to comment.