naginterfaces.library.ieee.create_​infinity

naginterfaces.library.ieee.create_infinity(isign)[source]

create_infinity creates a signed infinite value.

For full information please refer to the NAG Library document for x07ba

https://www.nag.com/numeric/nl/nagdoc_27.1/flhtml/x07/x07baf.html

Parameters
isignint

Determines the sign of the infinity to be created.

If is greater than or equal to , a positive infinity is returned, otherwise a negative infinity is returned.

Returns
xfloat

The required infinite value.

Notes

create_infinity sets to be positive or negative infinity.

References

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