Skip to content

Commit 9af6e2f

Browse files
committed
Add \operatorname for erf()
`\erf` is not recognized by the Documenter TeX renderer
1 parent 53ceed6 commit 9af6e2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/BVProblemLibrary/src/linear.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ The analytical solution for ``t \in [-1, 1]`` is
368368
369369
```math
370370
\begin{align*}
371-
y_1(t) &= \cos(\pi t) + \erf(t/\sqrt{2\lambda})/\erf(1/\sqrt{2\lambda}) \\
371+
y_1(t) &= \cos(\pi t) + \operatorname{erf}(t/\sqrt{2\lambda})/\operatorname{erf}(1/\sqrt{2\lambda}) \\
372372
y_2(t) &= y_1'(t)
373373
\end{align*}
374374
```
@@ -440,7 +440,7 @@ The analytical solution for ``t \in [-1, 1]`` is
440440
441441
```math
442442
\begin{align*}
443-
y_1(t) &= \cos(\pi t) + t + \frac{t\erf(t/\sqrt{2\lambda}) + \sqrt{2\lambda/\pi}\exp(-t^2/2\lambda)}{} \\
443+
y_1(t) &= \cos(\pi t) + t + \frac{t\operatorname{erf}(t/\sqrt{2\lambda}) + \sqrt{2\lambda/\pi}\exp(-t^2/2\lambda)}{} \\
444444
y_2(t) &= y_1'(t)
445445
\end{align*}
446446
```
@@ -621,7 +621,7 @@ The analytical solution for ``t \in [-1, 1]`` is
621621
622622
```math
623623
\begin{align*}
624-
y_1(t) &= 1 + \erf(t/\sqrt{2\lambda})/\erf(1/\sqrt{2\lambda}) \\
624+
y_1(t) &= 1 + \operatorname{erf}(t/\sqrt{2\lambda})/\operatorname{erf}(1/\sqrt{2\lambda}) \\
625625
y_2(t) &= y_1'(t)
626626
\end{align*}
627627
```

0 commit comments

Comments
 (0)