- Make sure python3 and pip3 are installed
- Run
pip3 install matplotlib numpy sympy
- Throw this
other gist
in a file (call it "
domath.py
" or something). - Run
python3 -i domath.py
to run the script and continue in an interactive shell. - You're done! (Well, done setting up, at least.)
- To actually do stuff with this, you can use the helper functions from that gist:
- The
plot_it
function will plot the graph of a function, taking these arguments: