nerdamer.setVar('M', 'matrix([x,y],[a,b])'); nerdamer.setVar('M', 'matset(M, 0, 1, 5*x)'); console.log(nerdamer('M').toString());