# 訊息

## English

``````octave-3.2.4.exe:1> A=[1 2 3; 4 5 6; 7 8 0]
A =

1   2   3
4   5   6
7   8   0

octave-3.2.4.exe:2> inv(A)
ans =

-1.77778   0.88889  -0.11111
1.55556  -0.77778   0.22222
-0.11111   0.22222  -0.11111

octave-3.2.4.exe:3> A'
ans =

1   4   7
2   5   8
3   6   0

octave-3.2.4.exe:4> A*inv(A)
ans =

1.0000e+000  1.6653e-016  -9.7145e-017
5.5511e-017  1.0000e+000  -3.0531e-016
8.8818e-016  3.3307e-016  1.0000e+000

octave-3.2.4.exe:5> 3*A
ans =

3    6    9
12   15   18
21   24    0

octave-3.2.4.exe:6> rref(A)
ans =

1   0   0
0   1   0
0   0   1

octave-3.2.4.exe:7> det(A)
ans =  27.000
octave-3.2.4.exe:8> rank(A)
ans =  3
octave-3.2.4.exe:9> diag(A)
ans =

1
5
0

octave-3.2.4.exe:10> b=[7; 16; 7]
b =

7
16
7

octave-3.2.4.exe:11> A\b
ans =

1
0
2

octave-3.2.4.exe:12> c=[A b]
c =

1    2    3    7
4    5    6   16
7    8    0    7

octave-3.2.4.exe:13> rref(c)
ans =

1   0   0   1
0   1   0   0
0   0   1   2

octave-3.2.4.exe:14> X=[1 2;3 4]
X =

1   2
3   4

octave-3.2.4.exe:15> Y=[2 0; -3 5]
Y =

2   0
-3   5

octave-3.2.4.exe:16> X+Y
ans =

3   2
0   9

octave-3.2.4.exe:17> X-Y
ans =

-1   2
6  -1

octave-3.2.4.exe:18> X*Y
ans =

-4   10
-6   20

octave-3.2.4.exe:19> zeros(3,5)
ans =

0   0   0   0   0
0   0   0   0   0
0   0   0   0   0

octave-3.2.4.exe:20> eye(5)
ans =

Diagonal Matrix

1   0   0   0   0
0   1   0   0   0
0   0   1   0   0
0   0   0   1   0
0   0   0   0   1

octave-3.2.4.exe:21> rand(6)
ans =

0.0048650   0.5018388   0.0344165   0.1443891   0.1960669   0.3149140
0.4050373   0.4767018   0.1502005   0.9058961   0.3354174   0.6290498
0.6410070   0.8841393   0.1356130   0.4307929   0.6996784   0.3083250
0.9533956   0.0083095   0.9038383   0.3667894   0.9243503   0.0393562
0.4832109   0.0914831   0.3478536   0.0576127   0.6582467   0.6607003
0.6020937   0.1620490   0.0290197   0.5648643   0.9098191   0.1974661

octave-3.2.4.exe:22> hlib(6)
error: `hlib' undefined near line 22 column 1
octave-3.2.4.exe:22> hilb(6)
ans =

1.000000   0.500000   0.333333   0.250000   0.200000   0.166667
0.500000   0.333333   0.250000   0.200000   0.166667   0.142857
0.333333   0.250000   0.200000   0.166667   0.142857   0.125000
0.250000   0.200000   0.166667   0.142857   0.125000   0.111111
0.200000   0.166667   0.142857   0.125000   0.111111   0.100000
0.166667   0.142857   0.125000   0.111111   0.100000   0.090909

octave-3.2.4.exe:23> A(2,3)
ans =  6
octave-3.2.4.exe:24> A(2,:)
ans =

4   5   6

octave-3.2.4.exe:25> A(:,3)
ans =

3
6
0```
```