From 4fd0c97de0370110d6fecab412ec1b5b831611e8 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 5 Aug 2019 20:41:51 -0400 Subject: [PATCH] Add mjo-calculus.tex for the gradient. --- GNUmakefile | 9 +++++---- examples.tex | 5 +++++ mjo-calculus.tex | 3 +++ mjotex.sty | 1 + 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 mjo-calculus.tex diff --git a/GNUmakefile b/GNUmakefile index 8f9fc6b..4474d2f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -17,10 +17,11 @@ PN = examples # A space-separated list of the mjotex files that you use. The path to # mjotex must be contain in your $TEXINPUTS environment variable. -MJOTEX = mjo-algorithm.tex mjo-arrow.tex mjo-common.tex mjo-complex.tex -MJOTEX += mjo-cone.tex mjo-convex.tex mjo-font.tex mjo-linear_algebra.tex -MJOTEX += mjo-listing.tex mjo-misc.tex mjo-proof_by_cases.tex mjo-theorem.tex -MJOTEX += mjo-theorem-star.tex mjo-topology.tex mjo.bst +MJOTEX = mjo-algorithm.tex mjo-arrow.tex mjo-calculus.tex mjo-common.tex +MJOTEX += mjo-complex.tex mjo-cone.tex mjo-convex.tex mjo-font.tex +MJOTEX += mjo-linear_algebra.tex mjo-listing.tex mjo-misc.tex +MJOTEX += mjo-proof_by_cases.tex mjo-theorem.tex mjo-theorem-star.tex +MJOTEX += mjo-topology.tex mjo.bst # Use kpsewhich (from the kpathsea suite) to find the absolute paths # of the bibtex/mjotex files listed in in $(BIBS)/$(MJOTEX). The SRCS diff --git a/examples.tex b/examples.tex index a1605c1..6e1c500 100644 --- a/examples.tex +++ b/examples.tex @@ -32,6 +32,11 @@ domain, then the preimage under $f$ of $A$ is $\preimage{f}{A}$. \end{section} + \begin{section}{Calculus} + The gradient of $f : \Rn \rightarrow \Rn[1]$ is $\gradient{f} : + \Rn \rightarrow \Rn$. + \end{section} + \begin{section}{Common} The function $f$ applied to $x$ is $f\of{x}$. We can group terms like $a + \qty{b - c}$ or $a + \qty{b - \sqty{c - d}}$. Here's a diff --git a/mjo-calculus.tex b/mjo-calculus.tex new file mode 100644 index 0000000..c162d34 --- /dev/null +++ b/mjo-calculus.tex @@ -0,0 +1,3 @@ +% The gradient of its argument, which should be a function from R^n to +% R (or maybe some other field). +\newcommand*{\gradient}[1]{ \nabla{{#1}} } diff --git a/mjotex.sty b/mjotex.sty index 0c5cd76..e01ea7b 100644 --- a/mjotex.sty +++ b/mjotex.sty @@ -1,5 +1,6 @@ \input{mjo-algorithm} \input{mjo-arrow} +\input{mjo-calculus} \input{mjo-common} \input{mjo-complex} \input{mjo-cone} -- 2.44.2