System.Math.Poly

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function Poly(const X: Single; const Coefficients: array of Single): Single;
function Poly(const X: Double; const Coefficients: array of Double): Double;
function Poly(const X: Extended; const Coefficients: array of Extended): Extended;

C++

extern DELPHI_PACKAGE float __fastcall Poly(const float X, const float *Coefficients, const int Coefficients_High)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

説明

1 つの変数の値 X における一様多項式を評価します。

Poly を呼び出すと、Coefficients パラメータで表される多項式の変数が X パラメータの値に等しい場合の値を評価できます。係数は、以下の Delphi 風の例に示すように、変数のべき指数の小さいものから順に並べられます。

Coefficients[0] + Coefficients[1]*X + ... + Coefficients[N]*(X**N)

メモ:  C++ では、Coefficients_Size パラメータは N(変数の最大べき指数)です。

関連項目