When running the command:
Plot[1/x, {x, 0, 10}] I get very weird output:
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:
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?

