Optimizing Round-Off Accuracy in Source Spectrum Calculations

  • Thread starter DEvens
  • Start date
  • Tags
    Stupid
In summary, the conversation was about comparing calculated values to values provided by another analyst in a standardized situation. The original data for the total volume was only three digits, resulting in a terminal digit of zero. This led to fractional differences of 1.6E-4 in every value when divided by 100,016 and rounded off. The conversation also referenced the story of Ed Lorenz and how round-off can lead to chaos, as detailed in his discovery of its effects on weather model predictions.
  • #1
DEvens
Education Advisor
Gold Member
1,207
464
TL;DR Summary
Quirk of calculation produced a consistent round-off value over man data entries
So the sequences was the following.

Data was provided for a parameter in a standardized situation. This was a source spectrum for a total volume of material.

We needed the source spectrum per cubic meter. There are 100,016 cubic meters in the total volume. Simple division.

So then I come along and compare what was calculated to what the other analyst put in the file. And, since we only keep 3 digits (the stats will erase anything more) I am expecting there to be small differences. So I copy-paste the data into a spreadsheet, take the difference, and divide by the original value.

And every single fractional difference is 1.6E-4. Forty values in a row. Hmm... Hmmm... Oh yes. The original data for the total volume is 3 digits. So the terminal digit is always zero. So the way roundoff works, that divide-by 100,016, then the round-off bumps it up by 1.6E-4 every time.
 
Computer science news on Phys.org
  • #2
Round off leads to chaos as detailed in the story of its discovery. In particular, listen to the story of Ed Lorenz and how round-off changed his weather model predictions (at 4:45 mark)

 
  • Like
Likes Merlin3189

What is "Optimizing Round-Off Accuracy in Source Spectrum Calculations"?

"Optimizing Round-Off Accuracy in Source Spectrum Calculations" is a process used in scientific calculations to minimize the errors caused by rounding numbers to a limited number of digits. This is particularly important in calculations involving small or large numbers, where rounding can significantly impact the accuracy of the results.

Why is it important to optimize round-off accuracy in source spectrum calculations?

Optimizing round-off accuracy in source spectrum calculations is important because it helps to ensure the accuracy and reliability of scientific data and results. Inaccurate rounding can lead to significant errors in calculations, which can ultimately affect the validity of scientific conclusions and findings.

What are the potential sources of error in round-off accuracy in source spectrum calculations?

The potential sources of error in round-off accuracy in source spectrum calculations include the use of limited precision in computer systems, the choice of rounding method, and the number of digits used in the calculation. In addition, errors can also occur due to the order in which mathematical operations are performed.

How can round-off accuracy be optimized in source spectrum calculations?

Round-off accuracy can be optimized in source spectrum calculations by using more precise data types and increasing the number of digits used in the calculation. Additionally, choosing an appropriate rounding method and carefully sequencing mathematical operations can also help to minimize errors.

Are there any potential limitations to optimizing round-off accuracy in source spectrum calculations?

Yes, there are some limitations to optimizing round-off accuracy in source spectrum calculations. Increasing the precision and number of digits used in calculations can also increase the computational time and memory requirements. Additionally, in some cases, it may not be possible to completely eliminate rounding errors due to the limitations of computer systems and software.

Similar threads

  • Nuclear Engineering
Replies
7
Views
2K
  • Introductory Physics Homework Help
Replies
3
Views
200
Replies
6
Views
1K
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
715
  • Sci-Fi Writing and World Building
Replies
9
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
2K
  • High Energy, Nuclear, Particle Physics
Replies
11
Views
1K
Replies
9
Views
2K
Back
Top