Skip to content

Commit

Permalink
Use \lstinline for function names referring to listing
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Mar 3, 2021
1 parent d50bcbb commit 395d9d1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1442,11 +1442,11 @@ \subsection{Using the Derivative Annotation}\label{using-the-derivative-annotati
In the example above \lstinline!zeroDerivative=y! and \lstinline!zeroDerivative=offset! imply that
\begin{equation*}
\begin{aligned}
\udfrac{}{t}f(x(t),y(t),o(t))
&= \pdfrac{f}{x} \udfrac{x}{t} + \pdfrac{f}{y} \udfrac{y}{t} + \pdfrac{f}{o} \udfrac{o}{t}\\
&= \pdfrac{f}{x} \udfrac{x}{t} + \pdfrac{f}{y} \cdot 0 + \pdfrac{f}{o} \cdot 0\\
&= \pdfrac{f}{x} \udfrac{x}{t}\\
&= \mathit{fDer} \cdot \udfrac{x}{t}
\udfrac{}{t}\text{\lstinline!f!}(x(t),y(t),o(t))
&= \pdfrac{\text{\lstinline!f!}}{x} \udfrac{x}{t} + \pdfrac{\text{\lstinline!f!}}{y} \udfrac{y}{t} + \pdfrac{\text{\lstinline!f!}}{o} \udfrac{o}{t}\\
&= \pdfrac{\text{\lstinline!f!}}{x} \udfrac{x}{t} + \pdfrac{\text{\lstinline!f!}}{y} \cdot 0 + \pdfrac{\text{\lstinline!f!}}{o} \cdot 0\\
&= \pdfrac{\text{\lstinline!f!}}{x} \udfrac{x}{t}\\
&= \text{\lstinline!fDer!} \cdot \udfrac{x}{t}
\end{aligned}
\end{equation*}
\end{nonnormative}
Expand Down Expand Up @@ -1498,11 +1498,11 @@ \subsection{Using the Derivative Annotation}\label{using-the-derivative-annotati
Therefore \lstinline!h! indirectly includes the derivative with respect to \lstinline!y! as follows:
\begin{equation*}
\begin{aligned}
\udfrac{}{t}\mathit{fg}(x(t))
&= \udfrac{}{t}f(x(t),g(x(t)))\\
&= \pdfrac{f}{x} \udfrac{x}{t} + \pdfrac{f}{y} \pdfrac{g}{x} \udfrac{x}{t}\\
&= \left(\pdfrac{f}{x} + \pdfrac{f}{y} \pdfrac{g}{x} \right) \udfrac{x}{t}\\
&= h(x,y) \udfrac{x}{t}
\udfrac{}{t}\text{\lstinline!fg!}(x(t))
&= \udfrac{}{t}\text{\lstinline!f!}(x(t),\text{\lstinline!g!}(x(t)))\\
&= \pdfrac{\text{\lstinline!f!}}{x} \udfrac{x}{t} + \pdfrac{\text{\lstinline!f!}}{y} \pdfrac{\text{\lstinline!g!}}{x} \udfrac{x}{t}\\
&= \left(\pdfrac{\text{\lstinline!f!}}{x} + \pdfrac{\text{\lstinline!f!}}{y} \pdfrac{\text{\lstinline!g!}}{x} \right) \udfrac{x}{t}\\
&= \text{\lstinline!h!}(x,y) \udfrac{x}{t}
\end{aligned}
\end{equation*}
\end{nonnormative}
Expand Down

0 comments on commit 395d9d1

Please sign in to comment.