22/08/11 20:40:17.32 t2zPlE9Q0.net
>>95
scilabやってみたが、文字列演算、特に漢字のUTF8コード:多バイトの扱いは面倒だな。
--> "問1";
--> A =[
> 0 0 0 1 0
> 0 0 0 0 1
> 0 0 1 0 0
> 1 0 0 0 0
> 0 1 0 0 0
> ];
--> x = [ asciimat("プ")' asciimat("ロ")' asciimat("の")' asciimat("テ")' asciimat("ク")' ];
--> ya = A * x';
--> y = asciimat(ya)
y =
"テ"
"ク"
"の"
"プ"
"ロ"
--> "問2";
--> A^(-1)
ans =
0. 0. 0. 1. 0.
0. 0. 0. 0. 1.
0. 0. 1. 0. 0.
1. 0. 0. 0. 0.
0. 1. 0. 0. 0.