LAPY2 - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 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.