数学建模社区-数学中国

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

作者: vikingnewton    时间: 2010-4-10 21:47
标题: mathematics5绘图的一些问题
在用mathematics 5画tan[x]图像时,输入In[23]:=Plot[tan[x],{x,-10,10}]
8 i! ?- R# c0 R& G- X% l% f0 _不管怎么取最值,都是显示1 W2 t. q4 a2 w3 W2 X
. P- S' V( O5 P# [+ ?* R; M
-Plot::plnr :
/ l; i. _5 k* U: }) q* }  tan[x] is not a machine-size real
* R: m. G! b! o  number at x =-0.785398" P. h/ f0 S9 l% f
-Plot::plnr :) }0 d0 ?# k* i, p* O
  tan[x] is not a machine-size real 2 M+ G; \; y: v8 ?$ k5 k; F
  number at x =-0.721676
# o& a: Z- M0 f1 x-Plot::plnr :9 k& e/ ~7 \4 L) K3 ^, ~0 S' N, T+ i
  tan[x] is not a machine-size real
8 D, R& d+ X% a2 `$ I  number at x =-0.652181
7 M( _6 C1 t4 r/ A-General::stop :
( Z1 v) T3 l3 Z5 n, y8 g   Further output of Plot::plnr will
7 E8 f: V+ L2 n* Q     be suppressed during7 r0 I  {3 w/ K6 r! `. l( M- B
     this calculation.
6 V* g! ~4 o/ W- T5 W) ?8 W& b+ N7 n然后出现坐标系,什么都没有,有没有人能解释一下,或告诉我该怎么画
) t& P  y; @2 h# C因为tan[x]这样的函数肯定有无穷大的值,如果这么说的话是不是mathematics画不了这类函数?
作者: olh2008    时间: 2010-4-10 22:56
你犯了一个初学Mathematica的人很容易犯的错误, tan[x]不对,应该是Tan[x],用Mathematica一定要注意内置函数的首字母,大写哦
作者: vikingnewton    时间: 2010-4-11 10:18
谢谢~
: K# V4 R, i0 Y- d* e. B改过来了。。。。。。。。。。。。。。。
作者: 浩星无恨    时间: 2010-12-4 00:23
顶一下......




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