Next: Combinatorial Functions, Previous: Functions for Numbers, Up: Mathematical Functions [Contents][Index]
exprの複素数の絶対値を返します。
zの複素偏角を返します。
複素偏角は、
r exp (theta %i) = z
(r
はzの絶対値)を満たす
(-%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
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)
式exprの虚部を返します。
imagpart
は、計算関数であり、整理関数ではありません。
abs
, carg
, polarform
, rectform
, realpart
も
参照してください。
exprと同値な式r %e^(%i theta)
を返します。
ここで、r
とtheta
は純粋な実数です。
exprの実部を返します。
realpart
とimagpart
は、
平方根、対数関数、指数関数はもちろん三角関数や双曲関数を含む式上で機能します。
exprと同値な式a + b %i
を返します。
ここでaとbは純粋な実数です。
Next: Combinatorial Functions, Previous: Functions for Numbers, Up: Mathematical Functions [Contents][Index]