var x = nerdamer('(x+1)*cos(x+1)'); console.log(x.toTeX()); x = nerdamer('1/2*x+2*b/5*x^2'); console.log(x.toTeX());