Determines if the value of the input variable is Infinity.
n = is_inf(f)
Where:
f
: Real number to check if it is Infinity.It returns True if the number is Infinity and False otherwise.
The following program checks some real numbers to see if they are Infinity:
PROGRAM is_infExample
USE FU_Numbers, ONLY: is_inf
IMPLICIT NONE
REAL :: f
WRITE(*,*) is_inf(5.)
f = 0.
WRITE(*,*) is_inf(1./f)
WRITE(*,*) is_inf(f/f)
END PROGRAM is_infExample
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=sp), | intent(in) | :: | val |
Value to analize. It can have any rank and dimension |
True if the variable is Inf. False otherwise. It will have the same rank and dimension as the input value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | val |
Value to analize. It can have any rank and dimension |
True if the variable is Inf. False otherwise. It will have the same rank and dimension as the input value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=qp), | intent(in) | :: | val |
Value to analize. It can have any rank and dimension |
True if the variable is Inf. False otherwise. It will have the same rank and dimension as the input value.