# Is this a bug in Mathematica 10.2 [closed]

I am using Mathematica 10.2.0.0

First, I define the following function

Clear[fermi]
fermi[ee_, EF_, T_] :=
1/(E^((ee - EF)/(Subscript[k, B] T)) + 1) /.
Subscript[k, B] -> (1.38 10^-23/(1.6 10^-19))


then I plot it with several parameter T as

Plot[Evaluate@Table[fermi[ee, 3, T], {T, 0.5, 2000, 300}], {ee, -3,
5}]


the result is pretty good, show here But strange thing happens when I change the plot interval of ee from {-3,5} to {-3,4},

Plot[Evaluate@Table[fermi[ee, 3, T], {T, 0.5, 2000, 300}], {ee, -3,
4}]


Mathematica gives What is wrong with these curves in the interval {3,4}?

• Don't use the bugs tag unless it's confirmed a bug. In this case, you need to supply PlotRange -> All to get the behaviour you want. – Patrick Stevens Sep 27 '15 at 12:08
• You haven't specified the output range at all, so Mathematica picks one it thinks shows the most important features and is aesthetically pleasing. It doesn't get it right here, but that's a matter of taste. The specification {ee, -3, 4} specifies the domain of the function, not its range. – Patrick Stevens Sep 27 '15 at 12:21
• Read the docs for PlotRange: "With the Automatic setting, the distribution of coordinate values is found, and any points sufficiently far out in the distribution are dropped. Such points are often produced as a result of singularities in functions being plotted." This is why, in order to get all the points plotted, you need to use PlotRange>All – bill s Sep 27 '15 at 12:21
• @matheorem You'll be glad of this behaviour when you try Plot[1/x, {x, 0, 5}]. – Patrick Stevens Sep 27 '15 at 12:56
• @matheorem Remember you can use SetOptions[Plot, PlotRange -> All] for that. – Mr.Wizard Sep 27 '15 at 14:54