yacas

General purpose computer algebra system for symbolic math computations

brewmacoslinux
Try with needOr install directly
Source

About

General purpose computer algebra system

Commands

yacas

Examples

Start interactive YACAS shell$ yacas
Execute a YACAS script file$ yacas script.ys
Perform symbolic computation (e.g., solve equation)$ echo 'Solve(x^2 - 4 = 0, x)' | yacas