Math387::Pythag Function

Overload List

#SignatureDescription
1double Pythag(const double X, const double Y);The Pythagora formula.
2TCplx Pythag(const TCplx &X, const TCplx &Y);Complex version of Pythagora formula.
3TSCplx Pythag(const TSCplx &X, const TSCplx &Y);

Overload 1: double Pythag(const double X, const double Y);

The Pythagora formula.

#NameTypeDescription
1Xconst double
2Yconst double

Returns: Returns the Sqrt(X*X + Y*Y).

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

Overload 2: TCplx Pythag(const TCplx &X, const TCplx &Y);

Complex version of Pythagora formula.

#NameTypeDescription
1Xconst TCplx &
2Yconst TCplx &

Returns: Returns the Sqrt(X*X + Y*Y).

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

Overload 3: TSCplx Pythag(const TSCplx &X, const TSCplx &Y);

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