next up previous notation contents
Next: 3.1.5 Argument Reduction Up: 3.1 Floating Point Previous: 3.1.3 Provided Functions

3.1.4 Accurate Functions

Consider the n-ary function tex2html_wrap_inline33809 , along with the functions tex2html_wrap_inline33887 and tex2html_wrap_inline33889 which overestimate the error of tex2html_wrap_inline33805 , an accurate model of tex2html_wrap_inline33893 . The function tex2html_wrap_inline33895 overestimates the amount by which tex2html_wrap_inline33893 exceeds tex2html_wrap_inline33805 while tex2html_wrap_inline33901 overestimates the amount by which tex2html_wrap_inline33805 exceeds tex2html_wrap_inline33893 :

math10980

A simple implementation of tex2html_wrap_inline33801 would proceed as follows:

math10987

a simple implementation of tex2html_wrap_inline33803 would proceed as follows:

math10995

In many cases, tex2html_wrap_inline33911 and tex2html_wrap_inline33913 would be computed concurrently with tex2html_wrap_inline32235 and would use partial results computed during the computation of tex2html_wrap_inline32235 . If necessary, table lookup may be used to handle infinite arguments.

As an example, consider a model tex2html_wrap_inline33805 , of tex2html_wrap_inline33809 , which guarantees:

math11004

which is equivalent to stating that no floating point number is closer to tex2html_wrap_inline33923 than tex2html_wrap_inline33925 . The functions

math11014

correctly overestimate the error of tex2html_wrap_inline33805 , where tex2html_wrap_inline33929 and tex2html_wrap_inline33931 give the floating-point number immediately preceding and succeeding x, respectively:

math11026

Using the preceding error overestimates, a simple implementation would proceed as follows:

math11032


next up previous notation contents
Next: 3.1.5 Argument Reduction Up: 3.1 Floating Point Previous: 3.1.3 Provided Functions
Jeff TupperMarch 1996