From ff4017fec51e0cc7e867338ddeb52373ec37a591 Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Tue, 3 Jun 2025 12:01:07 -0700 Subject: Fix grammer for auto-diff doc (#7215) 1. "here, $$f$$ here has" => "here, $$f$$ has" 2. $f$ ==> $$f$$ * $f$ does not render on website, works on vscode --- docs/user-guide/07-autodiff.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/user-guide/07-autodiff.md b/docs/user-guide/07-autodiff.md index ef60da4a5..2752500a7 100644 --- a/docs/user-guide/07-autodiff.md +++ b/docs/user-guide/07-autodiff.md @@ -29,7 +29,7 @@ As an example, consider a polynomial function $$ f(x, y) = x^3 + x^2 - y $$ -Here, $$f$$ here has 1 output and 2 inputs. $$Df$$ is therefore the row matrix: +Here, $$f$$ has 1 output and 2 inputs. $$Df$$ is therefore the row matrix: $$ Df(x, y) = [\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}] = [3x^2 + 2x, -1] $$ @@ -56,7 +56,7 @@ There are two basic ways to compute this product: 2. the vector-Jacobian product $$ \langle \mathbf{v}^T, D\mathbf{f}(\mathbf{x}) \rangle $$, also called reverse-mode autodiff, and can be computed using `bwd_diff` operator in Slang. From a linear algebra perspective, this is the transpose of the forward-mode operator. #### Propagating derivatives with forward-mode auto-diff -The products described above allow the _propagation_ of derivatives forward and backward through the function $f$ +The products described above allow the _propagation_ of derivatives forward and backward through the function $$f$$ The forward-mode derivative (Jacobian-vector product) can convert a derivative of the inputs to a derivative of the outputs. For example, let's say inputs $$\mathbf{x}$$ depend on some scalar $$\theta$$, and $$\frac{\partial \mathbf{x}}{\partial \theta}$$ is a vector of partial derivatives describing that dependency. -- cgit v1.2.3