Skip to content
Prev 70392 / 398525 Next

precision problem

Dear Omar,

Perhaps I'm missing something, but why not just subtract one matrix from the
other and test the difference in relation to the precision that you require
for the comparison? E.g., to test near equality, something like, abs(A - B)
< 1e-13.

I hope this helps,
 John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------