Significant figures calculations are floating point calculations, and the guard digits are important
What is a 'guard digit', you ask? Check out the screenshot page below, from an online course I'm taking in assembly language. Howard Stahl is the instructor, Santa Monica College. He says that computers are programmed to keep hella digits during a series of floating point calculations, even though at the end they only spit out the significant digits. The extraneous digits kept during the calculations are called "guard digits" or "guard bits" and those protect the answer from loss of accuracy due to excessive rounding.
This is interesting because my students often get answers that are close to my answers, but just a few digits off due to different practices in rounding. If the student did the problem in five steps, but I did it in one step, then our answers are not going to match exactly. Programmers face the same problem! They solve the problem by keeping the guard digits during the calculation. I should tell my students about "guard digits" so that they will give those long lines of digits on their calculators a label to remember.
This is interesting because my students often get answers that are close to my answers, but just a few digits off due to different practices in rounding. If the student did the problem in five steps, but I did it in one step, then our answers are not going to match exactly. Programmers face the same problem! They solve the problem by keeping the guard digits during the calculation. I should tell my students about "guard digits" so that they will give those long lines of digits on their calculators a label to remember.
This screenshot also gives very valuable (and rare, I think) advice on grouping calculations for preservation of accuracy. It is so true that some calculators can lose a lot of digits due to limitations on the length of a floating point number, whether it be a very tiny number or a very large number. Funny how it never occurred to me that one could group calculations to intentionally end up with midrange intermediates in a series of calculations, and to avoid loss of guard digits or even significant digits off the right edge of the number or off the left edge of the number.
Now, here's what I need to find out from Prof. Stahl: are "guard bits" applicable only to x and / operations, or do they also apply to + and - operations?

Comments
Post a Comment