precision while adding matrices
precision while adding matrices
(OP)
Hi, I have a fortran program which generates 2d matrices A1(12x12) and A2(12x12), then combine it in such a way that A2(1,1) is added to A1(7,7), A2(1,2) is added to A1(7,8) and so on (as shown in the attachment). I got the output as matrix A (18 x18) from fortran. all the matrices are declared as double precision in fortran.
eg; doubleprecision,dimension(12,12)::A1,A2
doubleprecision,dimension(18,18)::A
The combined A matrix was checked manually. please refer the attachment, it appears to be slightly different from what I got when I did assemblage in excel - how do I get rid of this error - something to do with precision control ?
eg; doubleprecision,dimension(12,12)::A1,A2
doubleprecision,dimension(18,18)::A
The combined A matrix was checked manually. please refer the attachment, it appears to be slightly different from what I got when I did assemblage in excel - how do I get rid of this error - something to do with precision control ?
RE: precision while adding matrices
RE: precision while adding matrices
https://newtonexcelbach.wordpress.com/2011/12/20/w...
You can get similar differences in rounding when comparing spreadsheet results with results from VBA, or even between two results entirely generated on the spreadsheet, with and without brackets.
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/
RE: precision while adding matrices
RE: precision while adding matrices
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/