32 bit vs 64 bit machine effect in computing equal code

3 vues (au cours des 30 derniers jours)
Alberto Vergani
Alberto Vergani le 18 Sep 2016
Modifié(e) : Stephen23 le 22 Sep 2016
32bit and 64bit Windows don't compute the same result for the same code written and run with Matlab 32bit. The difference I have noted are few in a large calculus, but they are present. Shortly, my computation has not been exactly replicate with both machine. Why? How to control this machine effect?

Réponses (1)

Fei Deng
Fei Deng le 22 Sep 2016
Hi Alberto,
Some higher-level algorithms boiling down to basic arithmetic operations can result in different results, when they are performed in different environments due to the very nature of floating-point arithmetic.
I'd like to link this question to similar questions and answers here
and here

Catégories

En savoir plus sur Function Creation dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by