A
Andry
Hi
I have an issue with the VC++ code. I have a code in VBA that I am running
in VC++.
But there is a difference in the result of the two.
Following are the details of problem:
The result value, "sum", of the following expression does not tally with
that from the VBA code in the LU_Decompose function.
sum = sum-(a[k]*a[k][j])
variables:
sum, a[][] are declared as "double"
Example:
Actual values from VC++
sum = 20021.91546286768100000000 - (0.012240632695608 * 1635722.6000577677)
= -0.36407634442366543
Actual value from VB
sum = -0.364076344415514
The difference in the above two values of "sum" propagates into the
resultant value and hence the accuracy problem is observed.
Please suggest.
I have an issue with the VC++ code. I have a code in VBA that I am running
in VC++.
But there is a difference in the result of the two.
Following are the details of problem:
The result value, "sum", of the following expression does not tally with
that from the VBA code in the LU_Decompose function.
sum = sum-(a[k]*a[k][j])
variables:
sum, a[][] are declared as "double"
Example:
Actual values from VC++
sum = 20021.91546286768100000000 - (0.012240632695608 * 1635722.6000577677)
= -0.36407634442366543
Actual value from VB
sum = -0.364076344415514
The difference in the above two values of "sum" propagates into the
resultant value and hence the accuracy problem is observed.
Please suggest.