数学建模社区-数学中国

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

作者: vikingnewton    时间: 2010-4-10 21:47
标题: mathematics5绘图的一些问题
在用mathematics 5画tan[x]图像时,输入In[23]:=Plot[tan[x],{x,-10,10}]
3 S$ \) d0 V* a5 {不管怎么取最值,都是显示* q5 o- p2 i  f$ ?+ @* O
- Q  @( n/ q. M( k+ t# Y9 X" V
-Plot::plnr :
0 s  W6 P% l# }5 V* V. `0 a  tan[x] is not a machine-size real
, V4 R4 t) I4 R+ P  number at x =-0.785398! X% w  E- V% |0 P( y2 l
-Plot::plnr :7 g, o3 u0 W8 N6 w% @
  tan[x] is not a machine-size real
- V  q6 B+ q& d5 F' Y5 T  number at x =-0.7216769 c0 m( I/ t! E: o& T
-Plot::plnr :* {6 A9 q8 ]6 V8 l* w/ D
  tan[x] is not a machine-size real 5 I/ c7 c! I2 G$ v' Q7 D
  number at x =-0.652181
7 B4 y" z3 K% }& m, }6 z-General::stop :
0 t. y6 z1 o) i9 _0 y   Further output of Plot::plnr will
! Z# T# V4 y5 F5 {4 c) w, F8 o     be suppressed during8 b+ ^6 V3 r& A7 r% Y" ]1 R
     this calculation.& j/ X/ }; ^4 _
然后出现坐标系,什么都没有,有没有人能解释一下,或告诉我该怎么画
+ u8 _6 e" I6 @+ Y# q2 g- t! M因为tan[x]这样的函数肯定有无穷大的值,如果这么说的话是不是mathematics画不了这类函数?
作者: olh2008    时间: 2010-4-10 22:56
你犯了一个初学Mathematica的人很容易犯的错误, tan[x]不对,应该是Tan[x],用Mathematica一定要注意内置函数的首字母,大写哦
作者: vikingnewton    时间: 2010-4-11 10:18
谢谢~
7 @( A1 Z  C- x0 j改过来了。。。。。。。。。。。。。。。
作者: 浩星无恨    时间: 2010-12-4 00:23
顶一下......




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