Math387.Pythag / Pythagf Method

Overload List

#SignatureDescription
1function Pythag(const X: TCplx; const Y: TCplx): TCplx;Complex version of Pythagora formula.
2function Pythag(const X: TSCplx; const Y: TSCplx): TSCplx;
3function Pythag(const X: Double; const Y: Double): Double;The Pythagora formula.
4function Pythagf(const X: Single; const Y: Single): Single;

Overload 1: function Pythag(const X: TCplx; const Y: TCplx): TCplx;

Complex version of Pythagora formula.

#NameTypeDescription
1XTCplx
2YTCplx

Returns: TCplx (complex) - Returns the Sqrt(X*X + Y*Y).

Overload 2: function Pythag(const X: TSCplx; const Y: TSCplx): TSCplx;

#NameTypeDescription
1XTSCplx
2YTSCplx

Returns: TSCplx

Overload 3: function Pythag(const X: Double; const Y: Double): Double;

The Pythagora formula.

#NameTypeDescription
1XDouble
2YDouble

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

See Also: Math387.Norm

Overload 4: function Pythagf(const X: Single; const Y: Single): Single;

#NameTypeDescription
1XSingle
2YSingle

Returns: Single