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}?
PlotRange -> All
to get the behaviour you want. $\endgroup${ee, -3, 4}
specifies the domain of the function, not its range. $\endgroup$Plot[1/x, {x, 0, 5}]
. $\endgroup$SetOptions[Plot, PlotRange -> All]
for that. $\endgroup$