Command line interface program for calculating algebraic equations and factorization