Bug introduced in 7.0 or earlier and fixed in 11.0.0
(I'm using Mathematica 8.)
I have a Taylor series:
poly = Normal[Series[E^x, {x, 0, 10}]]
I want to produce a log-linear plot of the error. This is easy enough with the following code:
LogPlot[Abs[E^x - poly], {x, -1, 1}]
This produces
Now, I want to plot even smaller values of the error (in particular I want the plot to be sensible near zero), so I tell LogPlot
to use high precision as follows:
LogPlot[Abs[E^x - poly], {x, -1, 1}, WorkingPrecision -> 30]
However this destroys the labeling on the y-axis:
Does anyone know what has gone wrong here? How do I fix it?
WorkingPrecision -> MachinePrecision
will use machine precision (default).WorkingPrecision -> $MachinePrecision
will not use machine precision, but the built-in arbitrary precision with the same number of digits as machine precision. For high precision you would not wantMachinePrecision
, but set a higher number inWorkingPrecision
(which as you noticed produces a plot with a wrong scale). $\endgroup$WorkingPrecision
, as in your example, crashes version 9. Can anyone reproduce this in 9? $\endgroup$