Floating-point numbers cannot represent real numbers with infinite precision. Additionally, there are sometimes uncertainties in our knowledge of the true value of a quantity. Both of these situations can be addressed with interval arithmetic that keeps bounds on the possible value of a number while a calculation is in progress. In this chapter, we describe interval arithmetic; implement basic operations for interval arithmetic in C; discuss functions as they pertain to intervals; examine interval implementations for C and Python; and, finally, offer advice on when to use interval arithmetic.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Interval Arithmetic

  • Ronald T. Kneusel

摘要

Floating-point numbers cannot represent real numbers with infinite precision. Additionally, there are sometimes uncertainties in our knowledge of the true value of a quantity. Both of these situations can be addressed with interval arithmetic that keeps bounds on the possible value of a number while a calculation is in progress. In this chapter, we describe interval arithmetic; implement basic operations for interval arithmetic in C; discuss functions as they pertain to intervals; examine interval implementations for C and Python; and, finally, offer advice on when to use interval arithmetic.