Results 1 to 4 of 4

Math Help - Mathematica 8 plotting function 1/x bug??

  1. #1
    Junior Member
    Joined
    Jun 2010
    From
    Skopje
    Posts
    54

    Mathematica 8 plotting function 1/x bug??

    Hi, i just needed quick look at the graph of 1/x for the interval [0,10] and i fired up mathematica 8 to draw it and this is what i get, wierd:



    What you guys have to say about that, since 1/x have no solution this is wrong plot for it and 1/x never can get negative value, hmm , drawing it on the interval [-10, 10] it plots it right but not on [0,10] , or am i doing mistake somewhere, im sure not!..

    Thanks!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    A Plied Mathematician
    Joined
    Jun 2010
    From
    CT, USA
    Posts
    6,318
    Thanks
    4
    Awards
    2
    Your horizontal axis is not at y=0, but at y=0.2. To get the kind of graph you want, try including the PlotRange command thus:

    Plot[f[x],{x,0,10},PlotRange->{0,1.2}]

    In general, your usage looks like this: PlotRange->{ymin, ymax}.

    See if that does what you want.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Jun 2010
    From
    Skopje
    Posts
    54
    ohh thanks man, i didnt know mathematica is taking the min and max values of the function to plot a graph but now is clear to me and is fine with the PlotRange parameter , close thread! =B
    Follow Math Help Forum on Facebook and Google+

  4. #4
    A Plied Mathematician
    Joined
    Jun 2010
    From
    CT, USA
    Posts
    6,318
    Thanks
    4
    Awards
    2
    You're welcome. We probably wouldn't close this thread, but if you want to mark it as solved, you can do that (in Thread Tools at the top of the OP).
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Mathematica - 2D Discontinuous plotting
    Posted in the Math Software Forum
    Replies: 5
    Last Post: August 17th 2011, 08:48 AM
  2. Plotting Dirac delta function in Mathematica.
    Posted in the Math Software Forum
    Replies: 4
    Last Post: April 11th 2011, 04:53 AM
  3. Plotting a function with wolfram mathematica
    Posted in the Math Software Forum
    Replies: 2
    Last Post: March 11th 2010, 06:53 AM
  4. Plotting Asymptotes in Mathematica
    Posted in the Math Software Forum
    Replies: 1
    Last Post: July 5th 2009, 02:44 AM
  5. Mathematica Double Sequence Plotting in 3D
    Posted in the Math Software Forum
    Replies: 12
    Last Post: September 13th 2008, 10:55 AM

Search Tags


/mathhelpforum @mathhelpforum