Skip to content

Commit 0d0d449

Browse files
committed
foo
1 parent b6b8ab2 commit 0d0d449

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/tutorial-symbolics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ nothing # hide
193193

194194
### Code Generation
195195

196-
`build_function` compiles the symbolic expression `dX` into a native Julia function with arguments `X`, `u`, and parameter values. The `force_SA=true` flag generates a **StaticArrays** kernel, which avoids heap allocations inside the ODE right-hand side — crucial for solver performance because dimension is small. For larger problems (``X \in \mathrm{R}^n``, ``n > 100``), we would use a mutating dynamics function instead, cf. [Julia Perfomance Tips](https://docs.julialang.org/en/v1/manual/performance-tips/#Consider-StaticArrays.jl-for-small-fixed-size-vector/matrix-operations).
196+
`build_function` compiles the symbolic expression `dX` into a native Julia function with arguments `X`, `u`, and parameter values. The `force_SA=true` flag generates a **StaticArrays** kernel, which avoids heap allocations inside the ODE right-hand side — crucial for solver performance because dimension is small. For larger problems (``X \in \mathrm{R}^n``, ``n > 100``), we would use a mutating dynamics function instead, cf. [Julia Performance Tips](https://docs.julialang.org/en/v1/manual/performance-tips/#Consider-StaticArrays.jl-for-small-fixed-size-vector/matrix-operations).
197197

198198
```@example main
199199
f_expr = build_function(dX, X, u, [m_c, m_p, l, g];
@@ -284,7 +284,7 @@ Base.show(io::IO, ::MIME"text/html", h::RawHTML) = print(io, h.raw)
284284
html_anim = """
285285
<div style="display: flex; justify-content: center; margin: 20px 0;">
286286
<canvas id="cartpoleCanvas" width="600" height="300"
287-
style="border:1px solid #ddd; background:#fafafa; border-radius: 8px; overflow: hidden;">
287+
style="border:1px solid #ddd; background:#fafafa; border-radius: 8px; max-width: 100%;">
288288
</canvas>
289289
</div>
290290

0 commit comments

Comments
 (0)