数学建模社区-数学中国

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

作者: vikingnewton    时间: 2010-4-10 21:47
标题: mathematics5绘图的一些问题
在用mathematics 5画tan[x]图像时,输入In[23]:=Plot[tan[x],{x,-10,10}]
1 V- A( |, c4 ^5 ]  l3 i0 s6 P不管怎么取最值,都是显示
; s) L5 k. p. x& A4 A* x9 H7 j& ]6 |8 S4 A, a1 `
-Plot::plnr :, f7 W, H' A) k0 y, B- Y
  tan[x] is not a machine-size real . Z; I, ]5 N% O0 B7 J; T
  number at x =-0.785398& i2 j6 J" R2 y" ^
-Plot::plnr :+ N& R( Q2 w. ]4 A! R0 S
  tan[x] is not a machine-size real , S; j3 H- R. t* j: P
  number at x =-0.721676
+ W0 P! h$ n3 W0 A0 |. H4 {& P+ N-Plot::plnr :
: Y9 ]  o) p1 f5 j  tan[x] is not a machine-size real
2 L  E$ j' G7 A1 R  d  number at x =-0.652181" |5 N9 w* c/ D  Y7 \1 A. |
-General::stop :
' n, v( W6 I7 V   Further output of Plot::plnr will* x+ _! U! g3 f! V( ~3 A/ y6 q
     be suppressed during1 g  Y: e9 [, l( d5 ~7 L% o# ]1 V
     this calculation.& m# F' W9 B: D/ o5 B8 J
然后出现坐标系,什么都没有,有没有人能解释一下,或告诉我该怎么画
( ]) D1 ?6 ~: V6 k+ U因为tan[x]这样的函数肯定有无穷大的值,如果这么说的话是不是mathematics画不了这类函数?
作者: olh2008    时间: 2010-4-10 22:56
你犯了一个初学Mathematica的人很容易犯的错误, tan[x]不对,应该是Tan[x],用Mathematica一定要注意内置函数的首字母,大写哦
作者: vikingnewton    时间: 2010-4-11 10:18
谢谢~
) t6 p+ Z, ]$ M) }: {改过来了。。。。。。。。。。。。。。。
作者: 浩星无恨    时间: 2010-12-4 00:23
顶一下......




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