isnan(3)
πΈ isnan(3) β the "is this even a number" vibe check π
ok so bestie, real talk: this page lives in the Library Functions Manual and it's all about one iconic little question β is this thing NaN or not? Two functions do the exact same job, just for two different flavours of float. Slay. β¨
β¨ SYNOPSIS β¨
Like, here's the whole cast π:
logical function DISNAN (din)
DISNAN tests input for NaN.
logical function SISNAN (sin)
SISNAN tests input for NaN.
That's it. That's the roster. Two little icons, one job. π
π Detailed Description π
ngl, there's not much here β this is the "detailed description" section and it's basically showing up to the group chat with nothing to say. The real tea is in the function docs down below. Scroll with me. π«Ά
π¦ Function Documentation π¦
π logical function DISNAN (double precision, intent(in) din)
DISNAN tests input for NaN. That's the whole assignment, and it ate. π
Purpose:
!>!> DISNAN returns .TRUE. if its argument is NaN, and .FALSE.!> otherwise. To be replaced by the Fortran 2003 intrinsic in the!> future.!>
So like β yes = NaN, no = not NaN, extremely straightforward. But the manpage is literally telling you this one is on its way out and will be replaced by the Fortran 2003 intrinsic in the future. Not deprecated-deprecated, but it's giving "legacy era", iykyk. π
Parameters
DINβ lowkey the only thing you pass in here:
!> DIN is DOUBLE PRECISION!> Input to test for NaN.!>
So it's a DOUBLE PRECISION value, and it's the input to test for NaN. That's it, babes. No tricks, no secret flags. π
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Four whole institutions on the credits. main character energy fr fr. π
Definition at line 58 of file disnan.f.
π§ logical function SISNAN (real, intent(in) sin)
SISNAN tests input for NaN. Same vibe check, single-precision edition. β
Purpose:
!>!> SISNAN returns .TRUE. if its argument is NaN, and .FALSE.!> otherwise. To be replaced by the Fortran 2003 intrinsic in the!> future.!>
Literally the identical promise as its sibling: .TRUE. when it's NaN, .FALSE. when it's not, and heads up β it's going to be replaced by the Fortran 2003 intrinsic in the future. So like, use it, love it, but know the era is ending. π
Parameters
SINβ the one and only input:
!> SIN is REAL!> Input to test for NaN.!>
A REAL value, and it's the input to test for NaN. Periodt. π
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Same legendary squad, same credit list. π«Ά
Definition at line 58 of file sisnan.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Bestie, nobody hand-wrote this β Doxygen did it for LAPACK straight from the source. A robot wrote our homework and honestly? It understood the assignment. πβ¨
ok that's the whole page, no cap β every flag, file, line number and credit is in here, nothing skipped, nothing invented. mwah π
β LAPACK, Version 3.12.0, signing off π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms