use math.js in equation plot