examples/hesse-convergence.js
function matrMult(m, v) {

  return [
  new Fraction(m[0]).mul(v[0]).add(new Fraction(m[1]).mul(v[1])),
  new Fraction(m[2]).mul(v[0]).add(new Fraction(m[3]).mul(v[1]))
  ];
}
function matrMult(m, v) {

  return [
  new Fraction(m[0]).mul(v[0]).add(new Fraction(m[1]).mul(v[1])),
  new Fraction(m[2]).mul(v[0]).add(new Fraction(m[3]).mul(v[1]))
  ];
}
function matrMult ( m , v ) { return [ new Fraction ( m [ 0 ] ) . mul ( v [ 0 ] ) . add ( new Fraction ( m [ 1 ] ) . mul ( v [ 1 ] ) ) , new Fraction ( m [ 2 ] ) . mul ( v [ 0 ] ) . add ( new Fraction ( m [ 3 ] ) . mul ( v [ 1 ] ) ) ] ; }
A simple matrix multiplication helper
A simple matrix multiplication helper