nerdamer.setVar('M', 'matrix([1, 5], [4, 4])'); var x = nerdamer('invert(M)'); console.log(x.toString());