NAG FL Interface
x07baf (create_​infinity)

Settings help

FL Name Style:

FL Specification Language:

1 Purpose

x07baf creates a signed infinite value.

2 Specification

Fortran Interface
Subroutine x07baf ( isign, x)
Integer, Intent (In) :: isign
Real (Kind=nag_wp), Intent (Out) :: x
C Header Interface
#include <nag.h>
void  x07baf_ (const Integer *isign, double *x)
The routine may be called by the names x07baf or nagf_ieee_create_infinity.

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 Arguments

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


7 Accuracy

Not applicable.

8 Parallelism and Performance

Background information to multithreading can be found in the Multithreading documentation.
x07baf is not threaded in any implementation.

9 Further Comments


10 Example

See x07aaf.