[Fwd: Gcalculation error by JAMA]
- Subject: [Fwd: Gcalculation error by JAMA]
- From: Ron Boisvert <boisvert@nist.gov>
- Date: Thu, 27 Mar 2008 12:39:07 -0400
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=ISO-8859-1; format=flowed
- User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
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