数学建模社区-数学中国

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

作者: vikingnewton    时间: 2010-4-10 21:47
标题: mathematics5绘图的一些问题
在用mathematics 5画tan[x]图像时,输入In[23]:=Plot[tan[x],{x,-10,10}]0 \9 f) N' X$ }/ |7 p1 k. T
不管怎么取最值,都是显示% i. g7 D; F! I6 G- |$ e

% e6 S$ _- ]! o  R-Plot::plnr :9 Y: }7 f: d( R( y0 M$ o
  tan[x] is not a machine-size real
, {7 N# v5 \; U* B) y4 {  number at x =-0.785398$ ^3 i9 @1 x4 `9 s1 x+ I
-Plot::plnr :2 v# v6 o% @' l# r5 U
  tan[x] is not a machine-size real 4 D$ b' ?: {) O1 H
  number at x =-0.7216766 j7 _0 q& m: |0 F
-Plot::plnr :
8 v6 p8 W' b+ @" J; ^+ e  tan[x] is not a machine-size real   y5 }- w( |" J8 X; w) Z4 b, P
  number at x =-0.6521815 S) k0 ^8 }9 B6 x" z% T) F0 S0 C
-General::stop :+ m. c, F6 f1 X" @/ C
   Further output of Plot::plnr will
5 x2 F1 J, G8 H, M5 U7 G4 H. ^     be suppressed during, j+ U- i, U  f6 v# Y
     this calculation.
4 d. r$ m& N4 m2 @# n然后出现坐标系,什么都没有,有没有人能解释一下,或告诉我该怎么画4 m) y; E% Y9 _9 U$ p; O( L! A- \& L
因为tan[x]这样的函数肯定有无穷大的值,如果这么说的话是不是mathematics画不了这类函数?
作者: olh2008    时间: 2010-4-10 22:56
你犯了一个初学Mathematica的人很容易犯的错误, tan[x]不对,应该是Tan[x],用Mathematica一定要注意内置函数的首字母,大写哦
作者: vikingnewton    时间: 2010-4-11 10:18
谢谢~
; W/ l, a+ ]+ C, t4 W) Q改过来了。。。。。。。。。。。。。。。
作者: 浩星无恨    时间: 2010-12-4 00:23
顶一下......




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