Navigation: Scripting Reference Manual > Functions & Subroutines > CmpxAbs2

 

CmpxAbs2

 

Contact Us: fredsupport@photonengr.com

 

Description

Returns the sum of the squares of the components of a complex number, i.e. the square of the modulus.

 

Syntax

ans = CmpxAbs2 ( real, imag )

 

Parameters

ans (Double)

The sum of the squares of the components.

 

real As Double

The real component of the complex number.

 

imag As Double

The imaginary component of the complex number.

 

Remarks

This function returns the sum of the squares of the components of a complex number. No errors are set.

 

See Also

CmpxAdd

CmpxSub

CmpxMult

CmpxDiv

CmpxArg

CmpxSqrt

CmpxAbs

Examples

 

 

 

 

 

Copyright © Photon Engineering, LLC