Mathematica 笔记

                     

贡献者: addis

预备知识 复数,自然对数底

   Mathematica 相对于 Matlab,Python 等偏数值计算的语言最大的特点就是专注于符号计算以及变精度计算(也叫任意精度计算).其中变精度计算能追踪误差,保证输出结果的最后一位小数正确.

   以下笔记详情参考 Mathematica 的官方文档

1. 常识

符号输入

常数

2. 快捷键

3. 变量

4. 矩阵与线性代数

5. 算符

6. 判断循环

7. 函数

8. 常用函数

微积分

数值运算

9. 画图

3D 画图

画图综合示例

Show[ListPlot[{{1, 1}}],
 Plot[{x^2, 2 x - 1}, {x, 0, 2},
  PlotLegends -> {"function", "tangent"}],
 Plot[x^2, {x, 0.9, 1.1}, PlotStyle -> Red, 
  PlotLegends -> {"function at (0.9,1.1)"}]]

图
图 1:画图综合示例

Show[ListPlot[{{1, 1}}], Plot[I^-3 BesselJ[3, I x], {x, 0, 10}], 
 Plot[BesselI[3, x], {x, 0, 10}, PlotStyle -> {Orange, Dashed}], 
 PlotRange -> {{0, 10}, {0, 800}}]

10. 字符串

11. 文件读写

                     

© 小时科技 保留一切权利