基本的な使い方
四則演算
(%i1) 1/2 + 1/3 * 2/5;
(%o1)
19
―
30
文字式
input: x * x * x + x * x * x
output: 2x^3
方程式を解く(solve)
方程式 "xを求める"
input: solve( x+3=4, x );
output: [x=-1]
方程式 "xとyを求める"
input: solve( [x+2*y=1, 2*x+y=3],[x,y] )
output: [[x=5/3, y=-1/3]]
二次方程式 "xを求める"
input: solve( x^2 + 3*x - 1, x );
output: [x=-√2-1, x=√2-1]
展開(expand)
input : expand( (a+b) * (c+d) );
output: bd + ad + bc + ac
因数分解(factor)
input : factor( a^2 - b^2 );
output: -(b-a)(b+a)
微分(diff)
input : diff( x^3, x );
output: 3x^2
積分(integrate)
input : integrate( 3*x^2, x );
output: x^3
行列の計算(matrix)
行列の登録
command: A:matrix([a,b],[c,d]);
[ a b ]
[ c d ]
command: B:matrix([e,f],[g,h]);
[ e f ]
[ g h ]
行列の加算
command: A + B
[ e+a f+b ]
[ g+c h+d ]
行列の積
command: A.B
[ bg+ae bh+af ]
[ dg+ce dh+cf ]
逆行列
command: A^^-1
[ d/(ad-bc) -b(ad-bc) ]
[ -c(ad-bc) a(ad-bc) ]