Skip to content

Commit

Permalink
build based on b96313d
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Nov 7, 2024
1 parent 5c0e28f commit feb8964
Show file tree
Hide file tree
Showing 25 changed files with 95 additions and 88 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.9.4","generation_timestamp":"2024-08-03T19:25:33","documenter_version":"1.5.0"}}
{"documenter":{"julia_version":"1.9.4","generation_timestamp":"2024-11-07T18:48:46","documenter_version":"1.7.0"}}
16 changes: 9 additions & 7 deletions dev/Tutorial/basic_operations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@
cos (1) + sin (1)</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; (o-1).evalf()</code><code class="nohighlight hljs ansi" style="display:block;">-0.e-124</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; (o - 1).evalf(chop=true)</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: Python: TypeError: must be real number, not BooleanTrue
Python stacktrace:
[1] <span class="sgr1">evalf</span>
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.12/site-packages/sympy/core/evalf.py:1528</span>
[2] <span class="sgr1">evalf_add</span>
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.12/site-packages/sympy/core/evalf.py:601</span>
[3] <span class="sgr1">evalf</span>
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.12/site-packages/sympy/core/evalf.py:1483</span>
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.11/site-packages/sympy/core/evalf.py:1528</span>
[2] <span class="sgr1">&lt;listcomp&gt;</span>
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.11/site-packages/sympy/core/evalf.py:601</span>
[3] <span class="sgr1">evalf_add</span>
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.11/site-packages/sympy/core/evalf.py:601</span>
[4] <span class="sgr1">evalf</span>
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.12/site-packages/sympy/core/evalf.py:1648</span></code></pre><hr/><details><summary>Expand for Python example</summary><pre><code class="language-python hljs"> &gt;&gt;&gt; one = cos(1)**2 + sin(1)**2
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.11/site-packages/sympy/core/evalf.py:1483</span>
[5] <span class="sgr1">evalf</span>
<span class="sgr90"> @ </span><span class="sgr32">sympy.core.evalf </span><span class="sgr90">~/work/SymPyCore.jl/SymPyCore.jl/docs/.CondaPkg/env/lib/python3.11/site-packages/sympy/core/evalf.py:1648</span></code></pre><hr/><details><summary>Expand for Python example</summary><pre><code class="language-python hljs"> &gt;&gt;&gt; one = cos(1)**2 + sin(1)**2
&gt;&gt;&gt; (one - 1).evalf()
-0.e-124
&gt;&gt;&gt; (one - 1).evalf(chop=True)
Expand Down Expand Up @@ -92,4 +94,4 @@
... return x
&gt;&gt;&gt; f = lambdify(x, expr, {&quot;sin&quot;:mysin})
&gt;&gt;&gt; f(0.1)
0.1</code></pre></details><hr/><div class="admonition is-info"><header class="admonition-header">TODO</header><div class="admonition-body"><p>Write an advanced numerics section</p></div></div></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../intro/">« Introduction</a><a class="docs-footer-nextpage" href="../simplification/">Simplification »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.5.0 on <span class="colophon-date" title="Saturday 3 August 2024 19:25">Saturday 3 August 2024</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
0.1</code></pre></details><hr/><div class="admonition is-info"><header class="admonition-header">TODO</header><div class="admonition-body"><p>Write an advanced numerics section</p></div></div></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../intro/">« Introduction</a><a class="docs-footer-nextpage" href="../simplification/">Simplification »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 7 November 2024 18:48">Thursday 7 November 2024</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/Tutorial/calculus/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,4 @@
&gt;&gt;&gt; apply_finite_diff(1, x_list, y_list, 0)
3⋅a b 2⋅c
- ─── - ─ + ───
20 4 5</code></pre></details></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../simplification/">« Simplification</a><a class="docs-footer-nextpage" href="../solvers/">Solvers »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.5.0 on <span class="colophon-date" title="Saturday 3 August 2024 19:25">Saturday 3 August 2024</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
20 4 5</code></pre></details></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../simplification/">« Simplification</a><a class="docs-footer-nextpage" href="../solvers/">Solvers »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 7 November 2024 18:48">Thursday 7 November 2024</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/Tutorial/gotchas/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
0.5</code></pre></details><hr/><p>To avoid this, we can construct the rational object explicitly</p><div class="admonition is-success"><header class="admonition-header">Julia differences</header><div class="admonition-body"><p>While <code>sympy.Rational(1, 2)</code> produces a rational number, a more <code>Julia</code>n way is to convert a rational into a symbolic value</p></div></div><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; Sym(1//2)</code><code class="nohighlight hljs ansi" style="display:block;">1/2</code></pre><hr/><details><summary>Expand for Python example</summary><pre><code class="language-python hljs"> &gt;&gt;&gt; Rational(1, 2)
1/2</code></pre></details><hr/><p>This problem also comes up whenever we have a larger symbolic expression with <code>int/int</code> in it. For example:</p><div class="admonition is-success"><header class="admonition-header">Julia differences</header><div class="admonition-body"><p>This is also a problem in <code>Julia</code></p></div></div><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; x + 1/2</code><code class="nohighlight hljs ansi" style="display:block;">x + 0.5</code></pre><hr/><details><summary>Expand for Python example</summary><pre><code class="language-python hljs"> &gt;&gt;&gt; x + 1/2
x + 0.5</code></pre></details><hr/><p>This happens because Python first evaluates <code>1/2</code> into <code>0.5</code>, and then that is cast into a SymPy type when it is added to <code>x</code>. Again, we can get around this by explicitly creating a Rational:</p><div class="admonition is-success"><header class="admonition-header">Julia differences</header><div class="admonition-body"><p>Use a rational, in the same way:</p></div></div><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; x + 1//2</code><code class="nohighlight hljs ansi" style="display:block;">x + 1/2</code></pre><hr/><details><summary>Expand for Python example</summary><pre><code class="language-python hljs"> &gt;&gt;&gt; x + Rational(1, 2)
x + 1/2</code></pre></details><hr/><p>There are several tips on avoiding this situation in the :ref:<code>gotchas</code> document.</p><h1 id="Further-Reading"><a class="docs-heading-anchor" href="#Further-Reading">Further Reading</a><a id="Further-Reading-1"></a><a class="docs-heading-anchor-permalink" href="#Further-Reading" title="Permalink"></a></h1><p>For more discussion on the topics covered in this section, see :ref:<code>gotchas</code>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../manipulation/">« Manipulation</a><a class="docs-footer-nextpage" href="../printing/">printing »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.5.0 on <span class="colophon-date" title="Saturday 3 August 2024 19:25">Saturday 3 August 2024</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
x + 1/2</code></pre></details><hr/><p>There are several tips on avoiding this situation in the :ref:<code>gotchas</code> document.</p><h1 id="Further-Reading"><a class="docs-heading-anchor" href="#Further-Reading">Further Reading</a><a id="Further-Reading-1"></a><a class="docs-heading-anchor-permalink" href="#Further-Reading" title="Permalink"></a></h1><p>For more discussion on the topics covered in this section, see :ref:<code>gotchas</code>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../manipulation/">« Manipulation</a><a class="docs-footer-nextpage" href="../printing/">printing »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 7 November 2024 18:48">Thursday 7 November 2024</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit feb8964

Please sign in to comment.