var x = nerdamer('x^2+x').pow('x'); console.log(x.toString()); var x = nerdamer(5).pow(2); console.log(x.toString());