added some features to eqn_solver
made complete the square more general