I am trying to plot the 2D and 3D graphs of 1/(x+1) function. Everything works fine except the fact that at the point x=-1 (where function turns to infinity) Mathematica plots a vertical line (a vertical surface in 3D plot). Can it be avoided anyhow without losing the precision of the graph and cutting the plot?
The documentation says that Plot breaks curves at discontinuities it detects with the default settings. That doesn’t seem to be working in this case.
I’ve tried to use “Exclusions” but it doesn’t work. It doesn’t give any errors or warnings but it also doesn’t make any change in the plot. Exclusions don’t work in the following case either:
It seems like either I am doing something wrong or there is something wrong with my Mathematica. Can you tell me what may be the problem. May be I have to include some library?
Do <shift><enter>
Click File and then Save and save the notebook under a new different name.
Exit Mathematica
Make a new posting and attach exactly that saved notebook showing the results.
Don’t do anything else during any of this that might give reason for uncertainty.
All this should show let others load your notebook and see exactly the failure.
Thank you