nerdamer.setVar('v', 'vector(a-r, x*x, z)'); nerdamer.setVar('v', 'vecset(v, 0, sqrt(2*g*h))'); console.log(nerdamer('v').toString());