fixed bug with parentheses when graphing: 1/(1+x) would be interpreted as 1/(1)+x