数学建模社区-数学中国

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

作者: vikingnewton    时间: 2010-4-10 21:47
标题: mathematics5绘图的一些问题
在用mathematics 5画tan[x]图像时,输入In[23]:=Plot[tan[x],{x,-10,10}], R" ~9 P! K. Q! T- @+ ?
不管怎么取最值,都是显示& x0 X, x1 W( y6 G; [  W+ z

5 U4 {7 F/ N" t- E-Plot::plnr :
/ c) w; Y6 c% B' b9 p8 Y/ a& u; I$ b  tan[x] is not a machine-size real
- t  p* V9 b8 a* p( [  number at x =-0.785398( I: E3 k- `6 t: x: J
-Plot::plnr :
& C' e) |( Y+ |; t/ E2 x$ T  tan[x] is not a machine-size real
" V6 F( F( ~, @  p/ K  number at x =-0.721676: c$ C% Y+ j+ U; n- K- p7 Z
-Plot::plnr :
7 D+ q" ^+ C+ y0 c( g  B' e& @  tan[x] is not a machine-size real
+ T9 f  V( _# C8 z7 N  number at x =-0.652181
+ e; l9 ?8 @+ v7 H: Q-General::stop :. R+ G) G8 u4 o# V, b0 Z
   Further output of Plot::plnr will
, U- n# |6 d8 F: d8 W6 @( G. ]     be suppressed during( z3 K" X, L& C3 [  D
     this calculation.! M* D8 I* J* j# Y, ~
然后出现坐标系,什么都没有,有没有人能解释一下,或告诉我该怎么画4 j! L/ @  {9 K: u: g7 J' }6 F
因为tan[x]这样的函数肯定有无穷大的值,如果这么说的话是不是mathematics画不了这类函数?
作者: olh2008    时间: 2010-4-10 22:56
你犯了一个初学Mathematica的人很容易犯的错误, tan[x]不对,应该是Tan[x],用Mathematica一定要注意内置函数的首字母,大写哦
作者: vikingnewton    时间: 2010-4-11 10:18
谢谢~
% M  {: n0 s$ ^7 \1 {改过来了。。。。。。。。。。。。。。。
作者: 浩星无恨    时间: 2010-12-4 00:23
顶一下......




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