
|
Go to the first, previous, next, last section, table of contents.
- newmat(row,col [,[[a,b,...],[c,d,...],...]])
-
:: row ¹Ô col Îó¤Î¹ÔÎó¤òÀ¸À®¤¹¤ë.
- return
-
¹ÔÎó
- row,col
-
¼«Á³¿ô
- a,b,c,d
-
Ǥ°Õ
-
row ¹Ô col Îó¤Î¹ÔÎó¤òÀ¸À®¤¹¤ë. Âè 3 °ú¿ô¤¬¤Ê¤¤¾ì¹ç,
³ÆÀ®Ê¬¤Ï 0 ¤Ë½é´ü²½¤µ¤ì¤ë. Âè 3 °ú¿ô¤¬¤¢¤ë¾ì¹ç,
¥¤¥ó¥Ç¥Ã¥¯¥¹¤Î¾®¤µ¤¤À®Ê¬¤«¤é, ³Æ¹Ô¤¬, ¥ê¥¹¥È¤Î
³ÆÍ×ÁÇ (¤³¤ì¤Ï¤Þ¤¿¥ê¥¹¥È¤Ç¤¢¤ë) ¤Ë¤è¤ê½é´ü²½¤µ¤ì¤ë. ³ÆÍ×ÁǤÏ, ÀèÆ¬¤«¤é½ç¤Ë
»È¤ï¤ì, ¤ê¤Ê¤¤Ê¬¤Ï 0 ¤¬Ëä¤á¤é¤ì¤ë.
-
¹ÔÎó¤Î¥µ¥¤¥º¤Ï
size() ¤ÇÆÀ¤é¤ì¤ë.
-
M ¤¬¹ÔÎó¤Î¤È¤, M[I] ¤Ë¤è¤êÂè I ¹Ô¤ò¥Ù¥¯¥È¥ë¤È¤·¤Æ
¼è¤ê½Ð¤¹¤³¤È¤¬¤Ç¤¤ë. ¤³¤Î¥Ù¥¯¥È¥ë¤Ï, ¤â¤È¤Î¹ÔÎó¤ÈÀ®Ê¬¤ò¶¦Í¤·¤Æ¤ª¤ê,
¤¤¤º¤ì¤«¤ÎÀ®Ê¬¤ò½ñ¤´¹¤¨¤ì¤Ð, ¾¤ÎÂбþ¤¹¤ëÀ®Ê¬¤â½ñ¤´¹¤ï¤ë¤³¤È¤Ë¤Ê¤ë.
-
È¡¿ô¤Î°ú¿ô¤È¤·¤Æ¹ÔÎó¤òÅϤ·¤¿¾ì¹ç, ÅϤµ¤ì¤¿È¡¿ô¤Ï, ¤½¤Î¹ÔÎó¤ÎÀ®Ê¬
¤ò½ñ¤´¹¤¨¤ë¤³¤È¤¬¤Ç¤¤ë.
[0] A = newmat(3,3,[[1,1,1],[x,y],[x^2]]);
[ 1 1 1 ]
[ x y 0 ]
[ x^2 0 0 ]
[1] det(A);
-y*x^2
[2] size(A);
[3,3]
[3] A[1];
[ x y 0 ]
[4] A[1][3];
getarray : Out of range
return to toplevel
- »²¾È
-
section
newvect , section size , section det ,invmat .
Go to the first, previous, next, last section, table of contents.
|