Object Oriented Software Engineering   View all facts   Glossary   Help
subject > problem > defect > defect in a numerical algorithm > ordering operations poorly so errors build up
Next defect in a numerical algorithmassuming a floating point value will be exactly equal to some other value    Updefect in a numerical algorithm    Previous defect in a numerical algorithmnot using enough significant figures   

ordering operations poorly so errors build up
subjectfact 
ordering operations poorly so errors build uphas testing strategy
  • if a numerical application is designed to work with floating-point numbers, then make sure it works with inputs that vary widely in magnitude, including both large positive and large negative exponents
  • pay particular attention to the accuracy of the result when a floating point value is being repeatedly decremented or incremented by small amounts
2001-08-30 14:56:54.0
is a subtopic of 10.4 - Defects in Numerical Algorithms2001-08-30 14:56:54.0
is a kind of defect in a numerical algorithm2001-08-30 14:56:54.0
occurs when you do small operations on large floating point numbers, and excessive rounding or truncation errors build up2001-08-30 14:56:54.0
defecthas example the absence of code to handle an exception2001-08-30 14:55:12.0
problemhas solution which will normally entail developing software, although you may decide that it is better to purchase software or to develop a non-software solution2001-08-30 14:57:03.0
should be written as a simple problem statement in one or two sentences2001-08-30 14:57:03.0