3 ms·
I tried something along these lines based on the computer algebra system SymPy [1,2]. The syntax is Python so feels a little weird for doing math, but the SymPy
by ivan_ah 7y ago
I tried something along these lines based on the computer algebra system SymPy [1,2]. The syntax is Python so feels a little weird for doing math, but the SymPy function names match very closely to the math verbs like solve, expand, simplify, factor, which is very good for learning.
For example, factoring a polynomial can be done by calling the `factor` function:
>>> factor(x**2 - 5*x + 6, x)
(x-3)*(x-2)
see https://live.sympy.org/?evaluate=factor(x**2%20-%205*x%20%2B%206%2C%20x)%0A%23--%0A https://live.sympy.org/?evaluate=factor(x**2%20-%205*x%20%2B...
Suddenly all the boring and fear-inducing math operations are available to you after a few simple calculations in a REPL! That's a huge win if you ask me ;)
______
[1] Printable math+SymPy tutorial https://minireference.com/static/tutorials/sympy_tutorial.pdf https://minireference.com/static/tutorials/sympy_tutorial.pd...
[2] Notebook version of [1] https://nbviewer.jupyter.org/github/minireference/SymPyTut/blob/master/notebooks/Intro.ipynb https://nbviewer.jupyter.org/github/minireference/SymPyTut/b...