|
プログラミングとコード生成
|
|
Maple ではプログラミングを行うことで、独自の関数を作成することやコマンドの作成、アルゴリズムの作成等を行うことができます。実際に、Maple の数学アルゴリズムの 95% は Maple 独自のプログラミング言語で作成されております。以下はサンプルの Maple プログラムです:
>
|
F := proc(n) local s,t,i,tmp;
if n=0 then return 0 fi;
(s,t) := (1,1);
for i from 2 to n do
tmp := s+t; s := t; t := tmp;
od;
return s;
end:
|
=
プログラムからは、Maple の数学機能やデータタイプ、記号、多項式、任意精度の値等の Maple の機能にアクセスできます。
|
|
Download Help Document
Was this information helpful?