Appendix A Glossary of unum functions

A.1 Environment and bit-extraction functions

Images

A.2 Constructors

utag [e,f]

Constructs the utag for exponent size e and fraction size f.

bias[u]

Finds the exponent bias for a unum u.

bigu[u]

Constructs unum representing the biggest exact real expressible using the utag of u.

big[u]

Constructs the biggest exact real expressible with utag of u.

A.3 Visualization functions

Images

A.4 Conversion functions

Images

A.5 Argument validity tests

Images

A.6 Helper functions for functions defined above

Images

A.7 Comparison operations

Images

A.8 Arithmetic operations

Basic plus-minus-times-divide operations, and some algebraic functions.

Images

A basic set of transcendental functions: exponential, logarithm, and trigonometric.

Images

A.9 Fused operations (single-use expressions)

Images

A.10 Some defined data values

Some data values are defined in the prototype, including the color palette if anyone is interested in using similar colors in describing unums and uboxes. The levels are set by RGBColor [r, g, b ], where r, g, and b range from 0 (black) to 1 (saturated). The text is shown in the actual color, to make it easier to spot. Quantities NaN, open, and closed are defined in terms of their Mathematica equivalents and should not be changed. The default values of esizesize and fsizesize are adjustable. The tally counters ubitsmoved and numbersmoved are initialized to 0, and need to be set back to 0 at the beginning of any measurement sequence. The relwidthtolerance defaults to 0.001 for at least three decimals answer accuracy, adjustable by user.

Images

A.11 Auto-precision functions

needmoreexpQ [ub]

True if a u-layer value ub is using the limits of the current dynamic range, indicating a need for more exponent bits, else False.

relwidth [ub]

Computes the relative width of a u-layer value ub as a measure of accuracy.

needmorefracQ [ub]

True if the relative width of a u-layer value is too big, indicating a need for more fraction bits, else False.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset