Maple/矩陣與向量

維基教科書,自由的教學讀本
跳至導覽 跳至搜尋

向量[編輯]

v1:=Vector([1,2,3,4]);

Vector(4, {(1) = 1, (2) = 2, (3) = 3, (4) = 4});

v2:=Vector([5,6,7,8]);

v1+v2;

10v1+10v2;

v3:=v2^*

矩陣[編輯]

A5:=Matrix(5,5, (i,j)-> j+(i-1)*5);

A6=A5^*

v6:=Vector([1,2,3,4,5])

MatrixVectorMultiply(A5,v6);


MatrixScalarMultiply(A5, A6);