数学建模社区-数学中国

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

作者: vikingnewton    时间: 2010-4-10 21:47
标题: mathematics5绘图的一些问题
在用mathematics 5画tan[x]图像时,输入In[23]:=Plot[tan[x],{x,-10,10}]
& H5 x  P; E4 r5 @. o$ }9 \0 ]不管怎么取最值,都是显示
9 G7 p1 |7 w! |1 i/ S
+ e) q% ?. Y% ?: D: `+ {3 G-Plot::plnr :! S4 v1 `# }$ p' H7 \, n
  tan[x] is not a machine-size real
1 g* m# |8 U' k# {# H* s  number at x =-0.785398
4 ~3 Q: \3 x1 r" q% q-Plot::plnr :5 Y" O5 Q2 L6 c
  tan[x] is not a machine-size real 8 h; a, ^1 V" c% w
  number at x =-0.721676
4 A9 A2 C  f  _: s+ a-Plot::plnr :
% d3 d) O! n4 e; J) H# p  tan[x] is not a machine-size real
3 e) L- `4 a3 o: f3 |3 |  number at x =-0.652181: E4 i; B0 d* R" D6 f+ a
-General::stop :
$ e( T5 v' @* l9 E/ A6 r( ]5 I   Further output of Plot::plnr will
/ S: S0 H6 W! |' [     be suppressed during$ d( q( P9 g1 |, e. `
     this calculation.( i# W  h( C1 h, J5 L: F
然后出现坐标系,什么都没有,有没有人能解释一下,或告诉我该怎么画
& @: I/ P3 k/ F) S1 h! `: I; D因为tan[x]这样的函数肯定有无穷大的值,如果这么说的话是不是mathematics画不了这类函数?
作者: olh2008    时间: 2010-4-10 22:56
你犯了一个初学Mathematica的人很容易犯的错误, tan[x]不对,应该是Tan[x],用Mathematica一定要注意内置函数的首字母,大写哦
作者: vikingnewton    时间: 2010-4-11 10:18
谢谢~
: O& l. M! O( X! C) Z0 Y改过来了。。。。。。。。。。。。。。。
作者: 浩星无恨    时间: 2010-12-4 00:23
顶一下......




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