SRC/dlapy3.f(3)

πŸ’… SRC/dlapy3.f β€” from the Library Functions Manual, bestie ✨

okay so before we even start: this page lives in the Library Functions Manual, the file is SRC/dlapy3.f, and it's literally the cutest tiny little LAPACK page. no cap, it's giving "one job and she does it flawlessly." πŸŽ€


✨ NAME ✨

SRC/dlapy3.f β€” that's her. that's the whole name. iconic, lowkey mysterious, we love a minimal queen πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

Functions/Subroutines

  • double precision function dlapy3 (x, y, z) β€” DLAPY3 returns sqrt(x2+y2+z2).

like. she literally tells you what she does in the title. main character energy fr fr πŸ’–


πŸ’œ Function/Subroutine Documentation πŸ’œ

double precision function dlapy3 (double precision x, double precision y,
    double precision z)

DLAPY3 returns sqrt(x2+y2+z2). 🫢

🌸 Purpose 🌸

straight from the source, verbatim, because we do NOT paraphrase the sacred texts:

!>
!> DLAPY3 returns sqrt(x**2+y**2+z**2), taking care not to cause
!> unnecessary overflow and unnecessary underflow.
!>

ok so real talk β€” the whole point of her is computing that square root without letting things overflow or underflow unnecessarily. she's careful. she's thoughtful. she's the friend who holds your drink and your secrets πŸ’…βœ¨

πŸ“ Parameters πŸ“

  • X β€” X is DOUBLE PRECISION
!>          X is DOUBLE PRECISION
!>
  • Y β€” Y is DOUBLE PRECISION
!>          Y is DOUBLE PRECISION
!>
  • Z β€” Z is DOUBLE PRECISION, and the note is: X, Y and Z specify the values x, y and z.
!>          Z is DOUBLE PRECISION
!>          X, Y and Z specify the values x, y and z.
!>

three args, all DOUBLE PRECISION, and together they're literally just x, y and z. no plot twists. no hidden fourth argument lurking in the shadows. we stan a transparent icon 🌈

🧚 Author 🧚

the whole squad gets credit, periodt:

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.
πŸ’€ and one more thing, bestie: Definition at line 67 of file dlapy3.f. β€” that's where she actually lives, if you ever wanna go visit her in the source. line 67. write it down πŸŽ€

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LAPACK from the source code.

so like… a robot wrote this page, not a person 😭 but the robot ate, honestly, no crumbs left πŸ“


vibe check summary: one function, three DOUBLE PRECISION args, one very responsible sqrt(x**2+y**2+z**2), zero unnecessary overflow, zero unnecessary underflow. she's perfect. that's the tweet πŸ¦‹

and that's the whole page!! mwah πŸ’–

βœ§Λ–Β° LAPACK, Version 3.12.0 β€” generated by Doxygen, see you in the next manpage bestie βœ§Λ–Β°

πŸ“¦ where this page comes from