SRC/slapy2.f(3)
π SRC/slapy2.f(3) π
okay so this page comes from the Library Functions Manual, and it is lowkey a tiny math baddie. The star? slapy2 β a real function whose whole main character energy is returning sqrt(x2+y2) without causing unnecessary overflow or underflow. no cap, that's the vibe. π
β¨
πΈ NAME πΈ
SRC/slapy2.f β that's the file, bestie. That's the whole name section; the function lore is right below. π«Ά
β¨ SYNOPSIS β¨
π Functions/Subroutines π
real function slapy2 (x, y)βSLAPY2 returns sqrt(x2+y2).
π¦ Function/Subroutine Documentation π¦
π
real function slapy2 (real x, real y) π
SLAPY2 returns sqrt(x2+y2).
π«Ά Purpose π«Ά
The source comment is literally this, and it is giving βcareful queen, no overflow dramaβ:
!>
!> SLAPY2 returns sqrt(x**2+y**2), taking care not to cause unnecessary
!> overflow and unnecessary underflow.
!>
π Parameters π
X β the source says X is REAL. The comment wraps it like this:
!> X is REAL
!>
Y β the source says Y is REAL, and X and Y specify the values x and y. The comment wraps it like this:
!> Y is REAL
!> X and Y specify the values x and y.
!>
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 62 of file slapy2.f. β yes, that's the exact line, and yes, it's iconic. β
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
That's the whole page, bestie. This little function page was served by LAPACK, version 3.12.0, and it lives at SRC/slapy2.f(3) β slay, periodt. πβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms