Results 1 to 3 of 3

Math Help - Mathematica 7.0, plotting x*sin(x), weird looking graph

  1. #1
    Newbie
    Joined
    Jun 2009
    Posts
    2

    Unhappy Mathematica 7.0, plotting x*sin(x), weird looking graph

    The command I'm using is
    Code:
    Plot[{x*Sin[x]}, {x, -80 Pi, 100 Pi}]
    and I get this weird result. Look at x= approx -80 and 130.


    Some other similar intervals involving pi also give weird results looking almost like that. There are at least four options:

    1. I'm too dumb to realize it's supposed to look like that
    2. My computer is broken
    3. Mathematica is broken
    4. It's not a bug, it's a feature.

    So my question is, does this happen to anyone else using Mathematica (v7.0.1.0)?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member
    Joined
    Aug 2008
    Posts
    903
    Quote Originally Posted by mathpath View Post
    The command I'm using is
    Code:
    Plot[{x*Sin[x]}, {x, -80 Pi, 100 Pi}]
    and I get this weird result. Look at x= approx -80 and 130.


    Some other similar intervals involving pi also give weird results looking almost like that. There are at least four options:

    1. I'm too dumb to realize it's supposed to look like that
    2. My computer is broken
    3. Mathematica is broken
    4. It's not a bug, it's a feature.

    So my question is, does this happen to anyone else using Mathematica (v7.0.1.0)?
    need to specify more sampling points:

    Code:
    Plot[{x*Sin[x]}, {x, -80 Pi, 100 Pi}, PlotPoints -> 200]
    or maybe fewer like 100 or so. Whatever it takes to get it right.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jun 2009
    Posts
    2
    Thanks! That fixed it!
    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. Mathematica 8 plotting function 1/x bug??
    Posted in the Math Software Forum
    Replies: 3
    Last Post: May 9th 2011, 11:40 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 plotting doesn't work
    Posted in the Math Software Forum
    Replies: 14
    Last Post: June 5th 2009, 02:20 PM

Search Tags


/mathhelpforum @mathhelpforum