Mathematica绘制常见曲线
2016-05-05 15:24
204 查看
Mathematica绘制常见曲线
才疏学浅,资历欠佳,难免有误,望有心人批评指正。
本文主要用于展示自己使用mathematica绘制的数学上的常见和常用曲线(本来是动图的,只因技术不精,变成静图了)
阿基米德螺线
Manipulate[ PolarPlot[a t, {t, -2 \[Pi], 2 \[Pi]}, PlotTheme -> "Detailed", AxesStyle -> Arrowheads[{0, 0.03}], PlotLabel -> "阿基米德螺线", PlotLegends -> None], {a, -1, 1}]
Manipulate[ PolarPlot[a Sin[3 t], {t, 0, Pi}, PlotTheme -> "Web", AxesStyle -> Arrowheads[{0, 0.03}]], {a, -1, 1}]
只是觉得好看,并非我所画
PolarPlot[ Evaluate[Table[ Abs[Sin[\[Theta] + i]], {i, 0, 2 Pi, 2 Pi/16}]], {\[Theta], 0, 2 Pi}, PlotStyle -> Thick, ColorFunction -> Function[{x, y, t, r}, Hue[r]], Axes -> False, RegionFunction -> Function[{x, y, t, r}, r < 0.555], ColorFunctionScaling -> False, PlotPoints -> 20, MaxRecursion -> 3]
伯努利双纽线
Manipulate[ ContourPlot[(x^2 + y^2)^2 == 2 a^2 x y, {x, -1, 1}, {y, -1, 1}, AspectRatio -> Full, PlotTheme -> "Scientific", PlotLabel -> "伯努利双纽线", AxesStyle -> Arrowheads[{0, 0.03}]], {a, -1, 1}]
四叶玫瑰线
Manipulate[ PolarPlot[a Sin[2 t], {t, -2 Pi, 2 Pi}, PlotTheme -> "Detailed", AxesStyle -> Arrowheads[{0, 0.03}], AspectRatio -> Full, PlotStyle -> {Red, Dashed}, PlotLabel -> "四叶玫瑰线", PlotLegends -> Automatic], {a, -1, 1}]
Manipulate[ PolarPlot[a Sin[2 t], {t, -2 Pi, 2 Pi}, PlotTheme -> "Detailed", AxesStyle -> Arrowheads[{0, 0.03}], AspectRatio -> Full, PlotStyle -> {Purple, Thickness[0.003]}, PlotLabel -> "四叶玫瑰线", PlotLegends -> Automatic], {a, -1, 1}]
做出图像并求解积分
Plot[1/(1 + x^2), {x, -15, 15}, PlotTheme -> "Detailed", PlotRange -> All, PlotRangePadding -> Scaled[.05], Filling -> Axis, FillingStyle -> {Opacity[0.7], Pink}]
Integrate[1/(1 + x^2), {x, -Infinity, Infinity}]
仅供学习参考与交流
相关文章推荐
- define中的#、##、#@及\
- Qt在pro中添加依赖库的简单方法
- mininet python api
- JiaThis 分享插件调用
- 语言使用强项推荐
- cordova等插件功能点击后没响应响应的解决
- nodejs模块使用(Mac)
- [CAQ6]支付宝返回4000错误
- springmvc 生成验证码
- css自定义字体
- Jupyter(IPython)
- 网易视频云技术专家分析:你可能不知道的MYSQL“隐藏”参数
- bzoj 2809: [Apio2012]dispatching(可并堆)
- Android Volley框架及其get,post方式的使用
- First Bad Version Leetcode
- Java多线程基础:进程和线程之由来
- Android6.0运行时权限的处理及解决办法
- WEB前端性能优化小结
- Assertion failure in -[UICollectionView layoutSublayersOfLayer:]
- shop++中商品属性和商品参数的不同