replaced octave with math.js