第五题--生成各种矩阵的方式
- Clear["Global`*"];
- e = IdentityMatrix[3];(*生成单位矩阵*)
- r = RandomReal[3, {3, 2}];
- o = Table[0, {2}, {3}];
- s = DiagonalMatrix[{k1, k2}];(*生成对角矩阵*)
- a = ArrayFlatten[{{e, r}, {o, s}}];
- aa = a.a;
- aaa = ArrayFlatten[{{e, r + r.s}, {o, s.s}}];
- Column[MatrixForm[#] & /@ {e, r, o, s, a, aa, aaa, aa - aaa},
- Spacings -> 1.5]
- 微信公众号
- 关注微信公众号
-
- QQ群
- 我们的QQ群号
-


![Mathematica入门习题[33]--微分方程组通解](https://mathpretty.com/wp-content/themes/begin/img/random/5.jpg)
![Mathematica入门习题[32]--积分](https://img.mathpretty.com/20210911_162117_jmo0vhq.jpg)
![Mathematica入门习题[31]--极限与导数](https://img.mathpretty.com/20210911_162111_41geeb4.jpg)
![Mathematica入门习题[29]--级数展开](https://img.mathpretty.com/20210911_162038_sjhj0m3.jpg)
![Mathematica入门习题[28]--级数求和(Sum的使用)](https://img.mathpretty.com/20210911_162021_1uyn4xz.jpg)
![Mathematica入门习题[27]--Grid格子函数的使用](https://img.mathpretty.com/20210911_162124_pk73t7w.jpg)
![Mathematica入门习题[25]--符号微分与积分](https://img.mathpretty.com/20210911_162127_srsayfn.jpg)

评论