[Fwd: Gcalculation error by JAMA]


Sender: "Jewian Huang" <jewian@gmail.com>
Subject: Gcalculation error by JAMA


Hi there,

Please see my following codes:

double[][] A = {{1.},{1.},{1.},{1.},{1.},{1.}};
double[][] B = {{2.},{2.},{2.},{4.},{4.},{4.}};
Matrix a = new Matrix(A);
Matrix b = new Matrix(B);
double[][] c = a.solve(b).getArray();

I got the result of c is: {{3.000000000000001}}. Obviousely the result is wrong.
Do you know why and how I can solve this problem?

Thanks very much.

Regards,
Jewian






Date Index | Thread Index | Problems or questions? Contact list-master@nist.gov