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