From 60d098434997cc00b313b22789a262318a5d5b25 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 5 Dec 2021 09:50:09 -0500 Subject: add mathyd and posts/2021-12-05-mathyd-easy-tex-to-svg --- .../files/posts/mathyd-easy-tex-to-svg/cubic.svg | 1 + .../posts/mathyd-easy-tex-to-svg/cubic.tex.txt | 38 ++++++++++++++++++++++ static/files/posts/mathyd-easy-tex-to-svg/logo.svg | 2 ++ 3 files changed, 41 insertions(+) create mode 100644 static/files/posts/mathyd-easy-tex-to-svg/cubic.svg create mode 100644 static/files/posts/mathyd-easy-tex-to-svg/cubic.tex.txt create mode 100644 static/files/posts/mathyd-easy-tex-to-svg/logo.svg (limited to 'static') diff --git a/static/files/posts/mathyd-easy-tex-to-svg/cubic.svg b/static/files/posts/mathyd-easy-tex-to-svg/cubic.svg new file mode 100644 index 0000000..c0d5dd0 --- /dev/null +++ b/static/files/posts/mathyd-easy-tex-to-svg/cubic.svg @@ -0,0 +1 @@ + diff --git a/static/files/posts/mathyd-easy-tex-to-svg/cubic.tex.txt b/static/files/posts/mathyd-easy-tex-to-svg/cubic.tex.txt new file mode 100644 index 0000000..6ca948c --- /dev/null +++ b/static/files/posts/mathyd-easy-tex-to-svg/cubic.tex.txt @@ -0,0 +1,38 @@ +% solution to ax^3 + bx^2 + cx + d = 0 +% https://math.vanderbilt.edu/schectex/courses/cubic/ +\begin{align*} +% first term +x &= \sqrt[3]{ + % first term, first subterm + \left ( \frac{-b^3}{27a^3} + \frac{bc}{6a^2} - \frac{d}{2a} \right ) + + + \sqrt{ + % first term, second subterm + \left ( \frac{-b^3}{27a^3} + \frac{bc}{6a^2} - \frac{d}{2a} \right )^2 + + + % first term, third subterm + \left ( \frac{c}{3a} - \frac{b^2}{9a^2} \right )^3 + } +} \\ + +&+ + +% second term +\sqrt[3]{ + % first term, second subterm + \left ( \frac{-b^3}{27a^3} + \frac{bc}{6a^2} - \frac{d}{2a} \right ) - + + \sqrt{ + % second term, second subterm + \left ( \frac{-b^3}{27a^3} + \frac{bc}{6a^2} - \frac{d}{2a} \right )^2 + + + % second term, third subterm + \left ( \frac{c}{3a} - \frac{b^2}{9a^2} \right )^3 + } +} \\ + +&- + +% third part +\frac{b}{3a} +\end{align*} diff --git a/static/files/posts/mathyd-easy-tex-to-svg/logo.svg b/static/files/posts/mathyd-easy-tex-to-svg/logo.svg new file mode 100644 index 0000000..0b570e7 --- /dev/null +++ b/static/files/posts/mathyd-easy-tex-to-svg/logo.svg @@ -0,0 +1,2 @@ + + -- cgit v1.2.3