LAPY2 - LAPY2 - 5.3 English - 68552

AOCL API Guide (68552)

Document_ID
68552
Release_Date
2026-05-13
Version
5.3 English
template<typename T>
T lapy2(T *x, T *y)#

LAPY2 returns sqrt(x2+y2)

Purpose:

  LAPY2 returns sqrt(x**2+y**2), taking care not to cause unnecessary
  overflow.
Parameters:
  • X – [in] X is REAL

  • Y – [in]

    Y is REAL

    X and Y specify the values x and y.

Returns:

T Template based return value of the function.