You are here: Symbol Reference > Math387 Namespace > Functions > Math387.CAbs1 Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Math387.CAbs1 Function

Returns the approximation of the norm of Z.

Pascal
function CAbs1(const Z: TCplx): double; overload;

the approximation of the norm of complex number: |Z| = abs(Z.Re) + abs(Z.Im).

The following relations are true: (CAbs(Z1) < CAbs(Z2)) < = > (CAbs1(Z1) < CAbs1(Z2)) and (CAbs(Z1) > CAbs(Z2)) < = > (CAbs1(Z1) > CAbs1(Z2)). This function can be used to speed up comparing operations between complex numbers.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!