libqalculate is math libary for expression evaluation with units, variables and functions support and CAS functionality.