LAPY3 - 5.2 English - 68552

AOCL API Guide (68552)

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