跳至內容

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);