* inversion/qr decomposition until the preferable
* Apache commons class catches up. Matrix is the Jama version
* RealMatrixImpl is the commons version.
*/
Matrix v = new Matrix(new VandermondeMatrix(x,order+1).getMatrix().getData());
QRDecomposition qr = new QRDecomposition(v);
rMatrix = new RealMatrixImpl(qr.getR().getArray());
qMatrix = new RealMatrixImpl(qr.getQ().getArray());
RealMatrix qMatrixTransposed = qMatrix.transpose();
RealMatrix qByY = qMatrixTransposed.multiply(yMatrix);
RealMatrix rMatrixInverse = new RealMatrixImpl(new Matrix(rMatrix.getData()).inverse().getArray());
RealMatrix resultMatrix = rMatrixInverse.multiply(qByY);
coefficiants= resultMatrix.getColumn(0);