From 85b8b181636f97b44205d0b54c3b6da5f414fe75 Mon Sep 17 00:00:00 2001 From: Simon Cadavid Date: Sun, 19 Jul 2026 14:46:26 +0200 Subject: [PATCH] docs: fix math rendering in box example --- examples/box.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/box.jl b/examples/box.jl index 2d1b48b7ae..6436d10ea1 100644 --- a/examples/box.jl +++ b/examples/box.jl @@ -356,9 +356,9 @@ autodiff(Reverse, # `state_now`, and acted with this gradient on what we gave as `dout_now` (in our case, # all ones). Using AD notation for reverse mode, this is -# ```math -# \overline{\text{state\_now}} = \frac{\partial \text{out\_now}}{\partial \text{state\_now}}\right|_\text{state\_now} \overline{\text{out\_now} + \frac{\partial \text{out\_old}}{\partial \text{state\_now}}\right|_\text{state\_now} \overline{\text{out\_old} -# ``` +# ```math +#\overline{\text{state_now}} = \left.\frac{\partial \text{out_now}}{\partial \text{state_now}}\right|_\text{state_now} \overline{\text{out_now}} + \left.\frac{\partial \text{out_old}}{\partial \text{state_now}}\right|_\text{state_now} \overline{\text{out_old}}# +#``` # We note here that had we initialized `dstate_now` and `dstate_old` as something else, our results # will change. Let's multiply them by two and see what happens.