MathSequenceByCount

最初の要素、最後の要素、シーケンスの要素数に基づいてシーケンスを生成します。

実数値を扱うためのバージョン:

bool  MathSequenceByCount(
  const double  from,      // 初期値
  const double  to,        // 最終値
  const int    count,      // カウント
  double&      result[]   // 結果の配列
  )

整数値を扱うためのバージョン:

bool  MathSequenceByCount(
  const int    from,      // 初期値
  const int    to,        // 最終値
  const int    count,      // カウント
  int&          result[]   // 結果の配列
  )

パラメータ

from

[in] シーケンスの最初の値 

to

[in] シーケンスの最後の値 

count

[in] シーケンス内の要素数

result[]

[out] シーケンスを出力するための配列 

戻り値

成功の場合は true、それ以外の場合は false。