Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8070525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:25:05+00:00 2026-06-05T13:25:05+00:00

When running the command: Plot[1/x, {x, 0, 10}] I get very weird output: Not

  • 0

When running the command:

Plot[1/x, {x, 0, 10}]

I get very weird output:
enter image description here

Not only that, but when running

Plot[1/x, {x, 0, 1000}, Mesh -> All]

Which should mark the points it generated the lines between, gives me this:
enter image description here

Please note that its 1000 here – not 10.

After reading Mathematica’s explanation about Plot – it says that it generates more points if the function changes fast. The function 1/x is changing very slow – and I though that Mathematica isn’t generation enough points – but using Mesh -> All I showed that it is incorrect.

Did anyone encounter this weird behavior? Can anyone please explain to me what causes this, and how can it be fixed?

P.S: This isn’t the only function which gives bad output – its actually quite common.

P.P.S: I tried playing with MaxRecursion and WorkingPresicion – and it did not help.

Edit: I’ve just notices that the X axis isn’t 0 – if you look at the first graph, you will see 0.4 as the last number, and 0.6 above it. The X axis is actually 0.2! So maybe the question is: why is the X axis at 0.2 and not 0?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:25:06+00:00Added an answer on June 5, 2026 at 1:25 pm

    I don’t see any weirdness in your first plot, I see the graph of a hyperbola. Mathematica has even been kind enough to you to ignore your attempt to evaluate 1/0.

    In your second plot, I think that you are expecting Mathematica to draw 1000 points along the line it plots ? How many pixels have you given it in which to draw those 1000 points in the x-direction ? I think that what you are seeing is an artefact common to most computer-based drawings: ask for 1000 points across (perhaps) 250 pixels and something’s got to give. Or perhaps I don’t understand why you are concerned about the output.

    Finally, you ask: why is the X axis at 0.2 and not 0

    The answer is that Mathematica has decided that the graph will look good that way. If you want to force the x-axis to cross the y-axis at 0, use the AxesOrigin option in your Plot command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When running the command svn ci you get a text editor that allows you
I'd like to get the output from a long running shell command as it
I have a plot, which I want to save with a bigger resolution. But
Weird behaviour, I'm sure it's me screwing up, but I'd like to get to
In a Forms application I'm displaying log output from a long running command-line application
When I am running ant command its showing the following output: ANT_HOME is set
I'm using mac/linux and I know that ctrl-z stops the currently running command in
I need to look at which commands are being used by make, but running
I have deploy on heroku and running command heroku open. It opens in browser
Yet another code sign error. I'm running command: xcodebuild -project $DIR/myproject.xcodeproj -sdk iphoneos5.0 -alltargets

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.