养生 装修 购物 美食 感冒 便秘 营销 加盟 小吃 火锅 管理 创业 搭配 减肥 培训 旅游

Mathematica基础——矩阵的基本操作

时间:2024-09-23 03:24:24

本文,介绍一下Mathematica对于矩阵的操作技巧。

Mathematica基础——矩阵的基本操作

工具/原料

电脑

Mathematica

方法/步骤

1、IdentityMatrix可以给出一个单位矩阵:IdentityMatrix[9]

Mathematica基础——矩阵的基本操作

2、用DiagonalMatrix可以给出指定的对角矩阵。

Mathematica基础——矩阵的基本操作

3、构造三对角矩阵,可以用下面的两种方法。

Mathematica基础——矩阵的基本操作

Mathematica基础——矩阵的基本操作

4、用旋转矩阵函数RotationMatrix,把向量{a,b}逆时针方向旋转u角度。

Mathematica基础——矩阵的基本操作

5、用HilbertMatrix给出指定的Hilbert矩阵:HilbertMatrix[{m,n}]

Mathematica基础——矩阵的基本操作

Mathematica基础——矩阵的基本操作

6、DistanceMatrix给出两个数字列表之间的差值的绝对值矩阵。

Mathematica基础——矩阵的基本操作

© 一点知识