How can I increase the precision if I have around 45,000.
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
In an multinomial expansion I have 45,000 terms to add. The result should be less than 1. However due to addition of so many terms the error also gets magnified; and gives random deviations of significant values in the result. Using double() doesn't help either.
2 Commenti
Jan
il 9 Lug 2013
Using "double()" instead of what? Please describe the input data more explicitly.
Arnav Mohan
il 19 Lug 2013
Risposte (2)
Jan
il 9 Lug 2013
0 voti
I'm not sure if I understand the problem correctly: You calculate the summ and suffer from the limited accuracy? This would be one effect of the nature of the sum, which is numerical instable. As workaround you can increase the precision to 128 or 196 bit floating point accumulation using the "Knuth" methods in: FEX: XSum.
1 Commento
Arnav Mohan
il 19 Lug 2013
Arnav Mohan
il 19 Lug 2013
0 voti
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!