[2.1.1] 記号計算 | [2.1.3] 三角関数

[2.1.2] 変数

(a+b)4 を y にセット:

[Graphics:Images/2.1.2_gr_1.gif]
[Graphics:Images/2.1.2_gr_2.gif]
y の内容を調べる:
[Graphics:Images/2.1.2_gr_3.gif]
[Graphics:Images/2.1.2_gr_5.gif]
[Graphics:Images/2.1.2_gr_6.gif]
y には (a+b)4 がセットされているので、それが展開された。

y をクリアする:

[Graphics:Images/2.1.2_gr_7.gif]
確認:
[Graphics:Images/2.1.2_gr_8.gif]

「=」(set)と「:=」(set delayed)の違い:

「=」は右辺を評価した結果を左辺へ代入する。
「:=」は左辺を右辺と定義する。

[Graphics:Images/2.1.2_gr_9.gif]
[Graphics:Images/2.1.2_gr_10.gif]
[Graphics:Images/2.1.2_gr_11.gif]
[Graphics:Images/2.1.2_gr_12.gif]
[Graphics:Images/2.1.2_gr_13.gif]
x, y は同じ値
[Graphics:Images/2.1.2_gr_14.gif]
[Graphics:Images/2.1.2_gr_15.gif]
[Graphics:Images/2.1.2_gr_16.gif]
a をクリアしたので、y の値は元に戻っている。
[Graphics:Images/2.1.2_gr_17.gif]

一時的な代入:

[Graphics:Images/2.1.2_gr_18.gif]
[Graphics:Images/2.1.2_gr_19.gif]
[Graphics:Images/2.1.2_gr_20.gif]
[Graphics:Images/2.1.2_gr_21.gif]
上の結果に対して x=1 を代入した結果が得られている。
[Graphics:Images/2.1.2_gr_22.gif]
上の代入は一時的なものであるから、x には何もセットされていない

複素数:

J に虚数単位をセットする

[Graphics:Images/2.1.2_gr_23.gif]
[Graphics:Images/2.1.2_gr_24.gif]
[Graphics:Images/2.1.2_gr_25.gif]
[Graphics:Images/2.1.2_gr_26.gif]
[Graphics:Images/2.1.2_gr_27.gif]
複素数の展開
[Graphics:Images/2.1.2_gr_28.gif]
[Graphics:Images/2.1.2_gr_29.gif]
a, b は実数として処理されている。
[Graphics:Images/2.1.2_gr_30.gif]
[Graphics:Images/2.1.2_gr_31.gif]
b は実数であるが、 a は複素数として処理されている。
[Graphics:Images/2.1.2_gr_32.gif]
[Graphics:Images/2.1.2_gr_33.gif]
[Graphics:Images/2.1.2_gr_34.gif]
[Graphics:Images/2.1.2_gr_35.gif]
ComplexExpand により、指数関数が展開されている。


[2.1.1]記号計算 | [2.1.3]三角関数


Converted by Mathematica      May 17, 2001