var r = nerdamer('acos(0)'); console.log(r.toString()); var t = nerdamer('acos(-1)') console.log(t.toString());