Next: , Previous: Functions for Numbers, Up: Mathematical Functions   [Contents][Index]

10.2 Functions for Complex Numbers

関数: cabs (expr)

exprの複素数の絶対値を返します。

関数: carg (z)

zの複素偏角を返します。 複素偏角は、 r exp (theta %i) = zrzの絶対値)を満たす (-%pi, %pi]の間の角thetaです。

cargは、計算関数であって、式整理関数ではありません。

abs (複素絶対値), polarform, rectform, realpart, imagpartも参照してください。

例:

(%i1) carg (1);
(%o1)                           0
(%i2) carg (1 + %i);
                               %pi
(%o2)                          ---
                                4
(%i3) carg (exp (%i));
(%o3)                           1
(%i4) carg (exp (%pi * %i));
(%o4)                          %pi
(%i5) carg (exp (3/2 * %pi * %i));
                                %pi
(%o5)                         - ---
                                 2
(%i6) carg (17 * exp (2 * %i));
(%o6)                           2
関数: conjugate (x)

xの複素共役を返します。

(%i1) declare ([aa, bb], real, cc, complex, ii, imaginary);

(%o1)                         done
(%i2) conjugate (aa + bb*%i);

(%o2)                      aa - %i bb
(%i3) conjugate (cc);

(%o3)                     conjugate(cc)
(%i4) conjugate (ii);

(%o4)                         - ii
(%i5) conjugate (xx + yy);

(%o5)             conjugate(yy) + conjugate(xx)
関数: imagpart (expr)

exprの虚部を返します。

imagpartは、計算関数であり、整理関数ではありません。

abs, carg, polarform, rectform, realpartも 参照してください。

関数: polarform (expr)

exprと同値な式r %e^(%i theta)を返します。 ここで、rthetaは純粋な実数です。

関数: realpart (expr)

exprの実部を返します。 realpartimagpartは、 平方根、対数関数、指数関数はもちろん三角関数や双曲関数を含む式上で機能します。

関数: rectform (expr)

exprと同値な式a + b %iを返します。 ここでabは純粋な実数です。


Next: , Previous: Functions for Numbers, Up: Mathematical Functions   [Contents][Index]