The Python SymPy library for symbolic mathematics allows you to create complex mathematical expressions.
Sometimes your Python programs need a little more speed. The pyamgx library can help you speed up your Python code.