SymPy is a Python library for symbolic mathematics. It aims to become a
full-featured computer algebra system (CAS) while keeping the code as
simple as possible in order to be comprehensible and easily extensible.
SymPy is written entirely in Python and does require just mpmath as an
external library.
SymPy has several optional dependencies which enhance its functionality
or make it faster. Here are some available at SlackBuilds.org:
python2-numpy, python2-scipy, python2-matplotlib.
Version 1.5.1 is the last one available with python2 compatibility. All
later versions are python3 only.