大家好,欢迎来到IT知识分享网。
转
//极坐标: x = r * cos(theta) y = r * sin(theta) //蜗形线 r = a*cos(theta)+b (a、b是常数,theta是角度) //心形线 r = a*(1+cos(theta)) (a 是常数,theta是角度) r = a*(1-sin(theta)) ;; x=16*(sin(t))^3, y = 13 * cos(t) - 5 * cos(2 * t) - 2 * cos(3 * t) - cos(4 * t) //三叶曲线 r = a*cos(3*theta) (a 是常数,theta是角度) //四叶曲线 r = a*cos(2*theta) (a 是常数,theta是角度) //螺旋线 r = a*theta (a 是常数,theta是角度)
来源
http://mathworld.wolfram.com/HeartCurve.html
代码修改
用MaTeX对代码中标签和公式作修改。
<< MaTeX` Block[{style=9},GraphicsGrid[Partition[{ PolarPlot[1-Sin[t],{t,0,2\[Pi]},PlotStyle->Red,PlotLabel->Evaluate@(MaTeX[#,Magnification->2,"Preamble"->{"\\usepackage{amsmath,amssymb}","\\usepackage{color,txfonts}"}]&@"\\color{red}r=1-\\sin\\theta"),BaseStyle->style], ContourPlot[-x^2 z^3+(-1+x^2+z^2)^3,{x,-1.2,1.2},{z,-1,1.3},Contours->{0},ContourShading->False,Frame->False,PlotLabel->Evaluate@(MaTeX[#,Magnification->2,"Preamble"->{"\\usepackage{amsmath,amssymb}","\\usepackage{color,txfonts}"}]&@"\\color{red}\\left(x^2+z^2-1\\right)^3-x^2 z^3=0"),ContourStyle->Directive[Opacity[1],Red,Thickness[.0075]],Axes->True,BaseStyle->style], ParametricPlot[{Log[Abs[t]]Sin[t]Cos[t],Abs[t]^.3Sqrt[Cos[t]]},{t,-1,1},AspectRatio->Automatic,BaseStyle->style,PlotPoints->100,PlotStyle->Red,PlotRange->All,PlotLabel-> Evaluate@(MaTeX[#,Magnification->2,"Preamble"->{"\\usepackage{amsmath,amssymb}","\\usepackage{color,txfonts}"}]&@"\\color{red}\\left\\{\\begin{array}{l} x=\\sin{t}\\cos{t}\\ln(\\left|t\\right|)\\\\[10pt] y=\\left|t\\right|^{0.3}\\sqrt{\\cos{t}}\\\\ \\end{array}\\right.")], Plot[2/3((x^2+Abs[x]-6)/(x^2+Abs[x]+2))+# (36-x^2)^(1/2)&/@{-1,1},{x,-6,6},PlotStyle->Red,BaseStyle->style,AspectRatio->Automatic,PlotLabel-> Evaluate@(MaTeX[#,Magnification->2,"Preamble"->{"\\usepackage{amsmath,amssymb}","\\usepackage{color,txfonts}"}]&@"\\color{red}\\left(y-\\frac{2\\left(\\left|x\\right|+x^2-6\\right)}{3\\left(\\left|x\\right|+x^2+2\\right)}\\right)^2+x^2=36")], PolarPlot[2-2Sin[t]+Sin[t] Sqrt[Abs[Cos[t]]]/(Sin[t]+7/5),{t,0,2\[Pi]},PlotStyle->Red,PlotLabel->Evaluate@(MaTeX[#,Magnification->2,"Preamble"->{"\\usepackage{amsmath,amssymb}","\\usepackage{color,txfonts}"}]&@"\\color{red} r=\\frac{\\sin{t}\\sqrt{\\left|\\cos{t}\\right|}}{\\sin{t}+\\dfrac{7}{5}}-2\\sin{t}+2"),BaseStyle->style], ParametricPlot[par={16 Sin[t]^3,13 Cos[t]-5 Cos[2 t]-2 Cos[3 t]-Cos[4 t]},{t,-\[Pi],\[Pi]},AspectRatio->Automatic,BaseStyle->style,PlotPoints->100,PlotStyle->Red,PlotRange->All,PlotLabel->Evaluate@(MaTeX[#,Magnification->1.25,"Preamble"->{"\\usepackage{amsmath,amssymb}","\\usepackage{color,txfonts}"}]&@"\\color{red}\\left\\{\\begin{array}{rl} x=&16\\sin^3t\\\\[10pt] y=&13\\cos{t}-5\\cos{2t}-2\\cos{3t}-\\cos{4t}\\\\ \\end{array}\\right.")]},3,3,{1,1},{}],ImageSize->980]]
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
输出
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/133084.html