数学建模社区-数学中国

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

作者: vikingnewton    时间: 2010-4-10 21:47
标题: mathematics5绘图的一些问题
在用mathematics 5画tan[x]图像时,输入In[23]:=Plot[tan[x],{x,-10,10}]
  w5 D$ U( R! H不管怎么取最值,都是显示
( U# B3 t) A7 e9 w7 G/ G5 _* x8 x: y& Q# P
-Plot::plnr :
6 \5 V! V9 z9 b0 Z' A8 ^  tan[x] is not a machine-size real
6 F  x; e0 E$ L8 @. G  number at x =-0.785398
8 M( y7 v0 L! A& E2 {5 P7 t- W9 M-Plot::plnr :
7 O: g: j; r+ P- f7 E: T' s! H; E  tan[x] is not a machine-size real - x/ J: }0 J0 j9 k/ o
  number at x =-0.721676
7 V5 n# f9 r, \4 n, x* b-Plot::plnr :# f6 w- X' T( n
  tan[x] is not a machine-size real
& P1 Y" }& _" _* n1 u7 _, s. E  number at x =-0.652181
* G* ?  R% P* X& M1 Y2 {8 \-General::stop :
& @' K; F) ?' H, i1 u   Further output of Plot::plnr will
$ K) r' p) X% }: [$ ^  ]     be suppressed during) ~0 W( J& y) ^! ^7 X7 ?  H% k+ b+ m
     this calculation.
" I; R3 N: h1 u& |; K然后出现坐标系,什么都没有,有没有人能解释一下,或告诉我该怎么画' e3 X! r( F5 t! K8 `# u" l( o
因为tan[x]这样的函数肯定有无穷大的值,如果这么说的话是不是mathematics画不了这类函数?
作者: olh2008    时间: 2010-4-10 22:56
你犯了一个初学Mathematica的人很容易犯的错误, tan[x]不对,应该是Tan[x],用Mathematica一定要注意内置函数的首字母,大写哦
作者: vikingnewton    时间: 2010-4-11 10:18
谢谢~
7 j2 `. [; [) f! j改过来了。。。。。。。。。。。。。。。
作者: 浩星无恨    时间: 2010-12-4 00:23
顶一下......




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