LAPY3 - LAPY3 - 5.3 English - 68552

AOCL API Guide (68552)

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

LAPY3 returns sqrt(x2+y2+z2)

Purpose:

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

  • Y – [in] Y is REAL

  • Z – [in]

    Z is REAL

    X, Y and Z specify the values x, y and z.

Returns:

T Template based return value of the function.