Math387.Sign / Signf Method

Overload List

#SignatureDescription
1TCplx Sign(TCplx Z)Changes the sign of a complex number.
2TSCplx Sign(TSCplx Z)
3Double Sign(Double a, Double b)Fortran sign function.
4Single Sign(Single a, Single b)
5Single Signf(Single a, Single b)

Overload 1: TCplx Sign(TCplx Z)

Changes the sign of a complex number.

#NameTypeDescription
1ZTCplxscalar

Returns: TCplx (complex)

Overload 2: TSCplx Sign(TSCplx Z)

#NameTypeDescription
1ZTSCplxscalar

Returns: TSCplx

Overload 3: Double Sign(Double a, Double b)

Fortran sign function.

#NameTypeDescription
1aDoublescalar
2bDoublescalar

Returns: Double - It uses slightly different definition for changing sign of a complex number: * if b>=0, it returns |a|, * otherwise, -|a|.

Overload 4: Single Sign(Single a, Single b)

#NameTypeDescription
1aSinglescalar
2bSinglescalar

Returns: Single

Overload 5: Single Signf(Single a, Single b)

#NameTypeDescription
1aSinglescalar
2bSinglescalar

Returns: Single