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_largest (x02al)

## Purpose

nag_machine_real_largest (x02al) returns the largest positive floating-point number.

## Syntax

[result] = x02al
[result] = nag_machine_real_largest

## Description

nag_machine_real_largest (x02al) returns the largest positive number in the model of floating-point arithmetic described in the X02 Chapter Introduction. The returned value is equal to $\left(1-{b}^{-p}\right)×{b}^{{e}_{\mathrm{max}}}$, where $b$ is the arithmetic base (see nag_machine_model_base (x02bh)) and ${e}_{\mathrm{max}}$ is the maximum exponent (see nag_machine_model_maxexp (x02bl)) in the model.

None.

## Parameters

None.

None.

### Output Parameters

1:     $\mathrm{result}$ – double scalar
The result of the function.

None.

None.

None.

## Example

See Example in nag_machine_precision (x02aj).
```function x02al_example

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

fprintf('the largest positive model number = %22.15e\n', ...
x02al);

```
```x02al example results

the largest positive model number = 1.797693134862316e+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