next up previous contents
Next: extern Up: リファレンスマニュアル Previous: exit

  
exp

【目的】
exp - 指数
【形式】
y = exp(x)
   (Real   |Real|Complex) y;
   (Integer|Real|Complex) x;
  
Y = exp(X)      Y = exp(X)
   Array Y;        Matrix Y;
   Array X;        Matrix X;
【詳細】
exp(x)は,スカラ型(整数, 実数, 複素数) x の指数を求める。 X が配列のとき,exp(X)は配列 X の各成分の指数からなる配列 Y を求める。Y の大きさは X の大きさと同じになる。 X が行列のとき,exp(X)は X の行列指数関数

¥begin{displaymath}Y = I + X + ¥frac{X^2}{2!} + ¥cdots + ¥frac{X^n}{n!} + ¥cdots
¥end{displaymath}

を求める。
【例題】
>> y = exp(1)
y = 2.71828
【参照】
sin(2.211), cos(2.36), tan(2.234), log(2.115), log10(2.116)


Masanobu KOGA 平成11年10月2日