aboutsummaryrefslogtreecommitdiff
path: root/static/files/posts/mathyd-easy-tex-to-svg/cubic.tex.txt
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-12-05 09:50:09 -0500
committerPaul Duncan <pabs@pablotron.org>2021-12-05 09:50:09 -0500
commit60d098434997cc00b313b22789a262318a5d5b25 (patch)
treefd72daa10801b3719facf23b71b7d3aad6b21fe6 /static/files/posts/mathyd-easy-tex-to-svg/cubic.tex.txt
parent06d1ee087326ab353b1affdf36aad1ce8d5275ae (diff)
downloadpablotron.org-60d098434997cc00b313b22789a262318a5d5b25.tar.bz2
pablotron.org-60d098434997cc00b313b22789a262318a5d5b25.zip
add mathyd and posts/2021-12-05-mathyd-easy-tex-to-svg
Diffstat (limited to 'static/files/posts/mathyd-easy-tex-to-svg/cubic.tex.txt')
-rw-r--r--static/files/posts/mathyd-easy-tex-to-svg/cubic.tex.txt38
1 files changed, 38 insertions, 0 deletions
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*}