NAG Library Routine Document

1Purpose

x07baf creates a signed infinite value.

2Specification

Fortran Interface
 Subroutine x07baf ( x)
 Integer, Intent (In) :: isign Real (Kind=nag_wp), Intent (Out) :: x
#include nagmk26.h
 void x07baf_ (const Integer *isign, double *x)

3Description

x07baf sets x to be positive or negative infinity.

4References

IEEE (2008) Standard for Floating-Point Arithmetic IEEE Standard 754-2008 IEEE, New York.

5Arguments

1:     $\mathbf{isign}$ – IntegerInput
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:     $\mathbf{x}$ – Real (Kind=nag_wp)Output
On exit: the required infinite value.

None.

Not applicable.

8Parallelism and Performance

x07baf is not threaded in any implementation.