simplify code in symbol_solver/funcs
simplify code in symbol_solver/funcs

dushmis/effectivejava,mshravanreddi/effectivejava,ftomassetti/effectivejava,mshravanreddi/effectivejava,dushmis/effectivejava,ftomassetti/effectivejava