hide long namesshow long names
hide short namesshow short names
Integer type:  int32  int64  nag_int  show int32  show int32  show int64  show int64  show nag_int  show nag_int

PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

NAG Toolbox: nag_machine_real_safe (x02am)

 Contents

    1  Purpose
    2  Syntax
    7  Accuracy
    9  Example

Purpose

nag_machine_real_safe (x02am) returns the safe range of floating-point arithmetic.

Syntax

[result] = x02am
[result] = nag_machine_real_safe

Description

nag_machine_real_safe (x02am) is defined to be the smallest positive model number z such that for any x in the range [z,1/z] the following can be computed without undue loss of accuracy, overflow, underflow or other error:

References

None.

Parameters

Compulsory Input Parameters

None.

Optional Input Parameters

None.

Output Parameters

1:     result – double scalar
The result of the function.

Error Indicators and Warnings

None.

Accuracy

None.

Further Comments

None.

Example

See Example in nag_machine_precision (x02aj).
function x02am_example


fprintf('x02am example results\n\n');

fprintf('the real safe range parameter = %22.15e\n', ...
        x02am);


x02am example results

the real safe range parameter = 2.225073858507202e-308

PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2015