# naginterfaces.library.complex.abs¶

naginterfaces.library.complex.abs(xr, xi)[source]

abs returns the value of the modulus of the complex number .

For full information please refer to the NAG Library document for a02ab

https://www.nag.com/numeric/nl/nagdoc_28.4/flhtml/a02/a02abf.html

Parameters
xrfloat

, the real part of .

xifloat

, the imaginary part of .

Returns
xafloat

The modulus of the complex number .

Notes