悠闲数学娱乐论坛(第2版)'s Archiver

isee 发表于 2017-12-12 19:41

Mathematica 次能作多个图象

[i=s] 本帖最后由 isee 于 2017-12-12 19:47 编辑 [/i]

没想到。如$\text{Plot}\left[\left\{\frac{1}{x^2},\frac{1}{x},\sqrt{x},x,x^{3/2},x^{4/3},x^2,x^3\right\},\{x,-5,5\}\right]$.

还是不同颜色的。



其次,作双曲线之类的图象,也通用,如$\text{Plot}\left[y\text{/.}\, \text{Solve}\left[\frac{x^2}{2}-y^2=1,y\right],\{x,-3,3\}\right]$,结果不附件图.

kuing 发表于 2017-12-12 22:17

这是基本操作呀……

后面那个一般是直接画吧:ContourPlot[x^2/2 - y^2 == 1, {x, -3, 3}, {y, -3, 3}]

isee 发表于 2017-12-12 23:08

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=24488&ptid=5054]2#[/url] [i]kuing[/i] [/b]


    边用边新学,觉着有点意思,与众不同。{:biggrin:}
    所以,较ContourPlot要麻烦些。。。。好命令。。。

kuing 发表于 2017-12-12 23:21

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=24489&ptid=5054]3#[/url] [i]isee[/i] [/b]

你那样画也有好处:有坐标轴;不用给 y 的范围。
不过也只限于方程能解了。

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.