nerdamer.setVar('v', 'vector(a-r, x*x, z)'); var x = nerdamer('vecget(v, 0)'); console.log(x.toString());