X07BAF (PDF version)
X07 Chapter Contents
X07 Chapter Introduction
NAG Library Manual
NAG Library Routine Document
X07BAF
▸
▿
Contents
1
Purpose
2
Specification
3
Description
4
References
5
Parameters
6
Error Indicators and Warnings
7
Accuracy
8
Parallelism and Performance
9
Further Comments
10
Example
1 Purpose
X07BAF creates a signed infinite value.
2 Specification
SUBROUTINE X07BAF (
ISIGN
,
X
)
INTEGER
ISIGN
REAL (KIND=nag_wp)
X
3 Description
X07BAF sets
X
to be positive or negative infinity.
4 References
IEEE (2008)
Standard for Floating-Point Arithmetic
IEEE Standard 754-2008
IEEE, New York.
5 Parameters
1:
ISIGN
– INTEGER
Input
On entry
: determines the sign of the infinity to be created.
If
ISIGN
is greater than or equal to
0
, a positive infinity is returned, otherwise a negative infinity is returned.
2:
X
– REAL (KIND=nag_wp)
Output
On exit
: the required infinite value.
6 Error Indicators and Warnings
None.
7 Accuracy
Not applicable.
8 Parallelism and Performance
Not applicable.
9 Further Comments
None.
10 Example
See
Section 10
in X07AAF.
X07BAF (PDF version)
X07 Chapter Contents
X07 Chapter Introduction
NAG Library Manual
© The Numerical Algorithms Group Ltd, Oxford, UK. 2015