=================================================================== RCS file: /home/cvs/OpenXM/src/asir-contrib/packages/doc/Attic/Matrix.texi,v retrieving revision 1.1 retrieving revision 1.5 diff -u -p -r1.1 -r1.5 --- OpenXM/src/asir-contrib/packages/doc/Attic/Matrix.texi 1999/11/27 11:25:18 1.1 +++ OpenXM/src/asir-contrib/packages/doc/Attic/Matrix.texi 2001/06/24 10:26:43 1.5 @@ -1,21 +1,25 @@ -@c $OpenXM: OpenXM/src/asir99/lib/contrib/packages/doc/Matrix.texi,v 1.2 1999/11/21 10:58:55 okutani Exp $ -@node Matrix operations,,, その他の函数 -@section Matrix operations -ファイル @file{gr} が必要です. +@c $OpenXM: OpenXM/src/asir-contrib/packages/doc/Matrix.texi,v 1.4 2001/06/24 01:14:22 takayama Exp $ +@node Matrix operations (library by Okutani),,, Top +@chapter Matrix operations (library by Okutani) +ファイル @file{gr} が必要です. + +Yukio Okutani 氏による Risa/Asir 言語で書かれた行列計算用のライブラリです. +すべての関数名は omatrix_ で始まります. + @menu -* mat_1:: -* mat_diag:: -* mat_trans:: -* mat_inverse:: -* mat_solve:: -* mat_kernel:: +* omatrix_1:: +* omatrix_diag:: +* omatrix_trans:: +* omatrix_inverse:: +* omatrix_solve:: +* omatrix_kernel:: @end menu -@node mat_1,,, Matrix operations -@subsection @code{mat_1} -@findex mat_1 +@node omatrix_1,,, Matrix operations (library by Okutani) +@subsection @code{omatrix_1} +@findex omatrix_1 @table @t -@item mat_1(@var{N}) +@item omatrix_1(@var{N}) :: @var{N} 次単位行列を生成します. @end table @table @var @@ -25,27 +29,27 @@ 整数 @end table @itemize @bullet -@item @code{mat_1}の例. +@item @code{omatrix_1}の例. @end itemize @example -[297] mat_1(1); +[297] omatrix_1(1); [ 1 ] -[298] mat_1(2); +[298] omatrix_1(2); [ 1 0 ] [ 0 1 ] -[299] mat_1(3); +[299] omatrix_1(3); [ 1 0 0 ] [ 0 1 0 ] [ 0 0 1 ] @end example -@node mat_diag,,, Matrix operations -@subsection @code{mat_diag} -@findex mat_diag +@node omatrix_diag,,, Matrix operations (library by Okutani) +@subsection @code{omatrix_diag} +@findex omatrix_diag @table @t -@item mat_diag(@var{L}) +@item omatrix_diag(@var{L}) :: リスト @var{L} の要素を対角成分とする対角行列を生成します. @end table @table @var @@ -55,25 +59,25 @@ リスト @end table @itemize @bullet -@item @code{mat_diag}の例. +@item @code{omatrix_diag}の例. @end itemize @example -[301] mat_diag([1,2,3]); +[301] omatrix_diag([1,2,3]); [ 1 0 0 ] [ 0 2 0 ] [ 0 0 3 ] -[302] mat_diag([a,b,c]); +[302] omatrix_diag([a,b,c]); [ a 0 0 ] [ 0 b 0 ] [ 0 0 c ] @end example -@node mat_trans,,, Matrix operations -@subsection @code{mat_trans} -@findex mat_trans +@node omatrix_trans,,, Matrix operations (library by Okutani) +@subsection @code{omatrix_trans} +@findex omatrix_trans @table @t -@item mat_trans(@var{A}) +@item omatrix_trans(@var{A}) :: 行列 @var{A} の転置行列を求めます. @end table @table @var @@ -83,24 +87,24 @@ 行列 or リスト @end table @itemize @bullet -@item @code{mat_trans}の例. +@item @code{omatrix_trans}の例. @end itemize @example -[303] mat_trans([[a,b],[c,d]]); +[303] omatrix_trans([[a,b],[c,d]]); [ a c ] [ b d ] -[304] mat_trans([[1,2,3],[4,5,6],[7,8,9]]); +[304] omatrix_trans([[1,2,3],[4,5,6],[7,8,9]]); [ 1 4 7 ] [ 2 5 8 ] [ 3 6 9 ] @end example -@node mat_inverse,,, Matrix operations -@subsection @code{mat_inverse} -@findex mat_inverse +@node omatrix_inverse,,, Matrix operations (library by Okutani) +@subsection @code{omatrix_inverse} +@findex omatrix_inverse @table @t -@item mat_inverse(@var{A}) +@item omatrix_inverse(@var{A}) :: 行列 @var{A} の逆行列を求めます. @end table @table @var @@ -111,24 +115,24 @@ @end table @itemize @bullet @item 行列 @var{A} の成分は有理数 or 多項式. -@item @code{mat_inverse}の例. +@item @code{omatrix_inverse}の例. @end itemize @example -[309] mat_inverse([[1,1],[1,2]]); +[309] omatrix_inverse([[1,1],[1,2]]); [ 2 -1 ] [ -1 1 ] -[310] mat_inverse([[a,b],[c,d]]); +[310] omatrix_inverse([[a,b],[c,d]]); [ (d)/(d*a-c*b) (-b)/(d*a-c*b) ] [ (-c)/(d*a-c*b) (a)/(d*a-c*b) ] @end example -@node mat_solve,,, Matrix operations -@subsection @code{mat_solve} -@findex mat_solve +@node omatrix_solve,,, Matrix operations (library by Okutani) +@subsection @code{omatrix_solve} +@findex omatrix_solve @table @t -@item mat_solve(@var{A},@var{X},@var{Y}) -:: @code{mat_solve}は方程式 A*X=Y の解を求めます. +@item omatrix_solve(@var{A},@var{X},@var{Y}) +:: @code{omatrix_solve}は方程式 A*X=Y の解を求めます. @end table @table @var @item return @@ -142,22 +146,22 @@ @end table @itemize @bullet @item 行列 @var{A} の成分は有理数 or 多項式. -@item @code{mat_solve}の例. +@item @code{omatrix_solve}の例. @end itemize @example -[376] mat_solve([[1,-1],[2,3]],[x,y],[1,1]); +[376] omatrix_solve([[1,-1],[2,3]],[x,y],[1,1]); [[x,4/5],[y,-1/5]] -[377] mat_solve([[a,b],[c,d]],[x,y],[1,1]); +[377] omatrix_solve([[a,b],[c,d]],[x,y],[1,1]); [[x,(-b+d)/(d*a-c*b)],[y,(a-c)/(d*a-c*b)]] @end example -@node mat_kernel,,, Matrix operations -@subsection @code{mat_kernel} -@findex mat_kernel +@node omatrix_kernel,,, Matrix operations (library by Okutani) +@subsection @code{omatrix_kernel} +@findex omatrix_kernel @table @t -@item mat_kernel(@var{A}) -:: @code{mat_kernel}は行列 A の kernel の基底を求めます. +@item omatrix_kernel(@var{A}) +:: @code{omatrix_kernel}は行列 A の kernel の基底を求めます. @end table @table @var @item return @@ -167,12 +171,12 @@ @end table @itemize @bullet @item 行列 @var{A} の成分は有理数 or 多項式. -@item @code{mat_kernel}の例. +@item @code{omatrix_kernel}の例. @end itemize @example -[383] mat_kernel([[1,2,3,4],[1,0,1,0]]); +[383] omatrix_kernel([[1,2,3,4],[1,0,1,0]]); [2,[[1,0,-1,1/2],[0,1,0,-1/2]]] -[384] mat_kernel([[1,2,3,4],[1,0,1,0],[0,0,0,1]]); +[384] omatrix_kernel([[1,2,3,4],[1,0,1,0],[0,0,0,1]]); [1,[[1,1,-1,0]]] @end example