数学建模社区-数学中国

标题: mathematics5绘图的一些问题 [打印本页]

作者: vikingnewton    时间: 2010-4-10 21:47
标题: mathematics5绘图的一些问题
在用mathematics 5画tan[x]图像时,输入In[23]:=Plot[tan[x],{x,-10,10}]1 I/ M! b; |4 l3 {8 F/ p
不管怎么取最值,都是显示
) Q, J. z. _5 F5 O3 W& n% t
9 r1 j4 g0 L- E: M, R) r-Plot::plnr :
. x! z8 n# t+ E* d# V5 G2 N4 I  tan[x] is not a machine-size real
; T$ |1 C+ N9 W' S8 ?+ e  number at x =-0.7853988 w4 ^; u) u0 q/ U. z
-Plot::plnr :: j5 Q3 t' ^& @; A) q0 r# _
  tan[x] is not a machine-size real
4 ~% o1 _' n- e$ P5 {& f  number at x =-0.721676
$ r9 q% A' l2 O7 ^5 F5 Q# A-Plot::plnr :: l* x& z$ ]; v$ C6 X
  tan[x] is not a machine-size real
; R9 e) ?6 V) y& k  P3 O  number at x =-0.652181
, _# o( ^5 U" E% Y; _/ K-General::stop :4 w7 J9 l! w! x/ C. l% c
   Further output of Plot::plnr will; J! G* c& ^. w; I. i) V. v
     be suppressed during
1 e3 z4 Q$ M# n' I, f     this calculation.
8 N, G# ?( A* R! Z; Y& {然后出现坐标系,什么都没有,有没有人能解释一下,或告诉我该怎么画, U3 |: B5 g) i
因为tan[x]这样的函数肯定有无穷大的值,如果这么说的话是不是mathematics画不了这类函数?
作者: olh2008    时间: 2010-4-10 22:56
你犯了一个初学Mathematica的人很容易犯的错误, tan[x]不对,应该是Tan[x],用Mathematica一定要注意内置函数的首字母,大写哦
作者: vikingnewton    时间: 2010-4-11 10:18
谢谢~+ _: W4 D" [2 w6 @
改过来了。。。。。。。。。。。。。。。
作者: 浩星无恨    时间: 2010-12-4 00:23
顶一下......




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5