Math387::Sign Function

Overload List

#SignatureDescription
1double Sign(const double a, const double b);Fortran sign function.
2TCplx Sign(const TCplx &Z);Changes the sign of a complex number.
3TSCplx Sign(const TSCplx &Z);

Overload 1: double Sign(const double a, const double b);

Fortran sign function.

#NameTypeDescription
1aconst double
2bconst double

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

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler

Overload 2: TCplx Sign(const TCplx &Z);

Changes the sign of a complex number.

#NameTypeDescription
1Zconst TCplx &
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler

Overload 3: TSCplx Sign(const TSCplx &Z);

#NameTypeDescription
1Zconst TSCplx &
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler