Non zero errors obtained when zero error is expected
Mostra commenti meno recenti
The below shown graph represents errors (between an exact solution and an approxmimate solution) for different number of nodes (ranging from 5 to 100). The error values are expected to be zero (as exact and apprximate solutions are equal) but a considerably smaller value is obtained which is closer to machine precision (eps) but not equal to it.
The same graph is generated from a different machine which is installed with matlab R2020a. It also didn't give zero error but a considerably smaller value is obtained which is closer to machine precision (eps) but not equal to it and was different from ones generated with first machine. (Both machines uses windows 10 as operating system).
- What could be the possible reason for non zero errors?
- Why are different machines giving different values of errors?

Thanks in advance,
Sree Raj V
3 Commenti
dpb
il 25 Feb 2021
W/o what the code is it is impossible to comment other than in general but
- Clearly the approximate and exact solutions aren't actually identical. That's not surprising; otherwise they would both be "exact solutions",
- That both machines use Win10 doesn't prevent them from using different processors and while you say one used R2020a, you didn't say which MATLAB release the other used. It's possible there could be an internals difference there; Mathworks routinely makes upgrades/enhancements between releases or even in patches between releases. It's also possible there may be some initial conditions between how the code is run that is different between the two cases; we have no way to know any such details.
Walter Roberson
il 25 Feb 2021
If one has an AMD CPU then it will calculate differently than an Intel CPU.
Sree Raj V
il 11 Mar 2021
Risposte (0)
Categorie
Scopri di più su Graph and Network Algorithms in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!