Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

See the Mathematica 'basic plotting' documentation:

http://reference.wolfram.com/mathematica/tutorial/BasicPlotting.html

Scroll down to the third plot on that page, which says the following: "The singularities can be omitted from the plot by specifying them in the plot's range."

According to this doc, if you enter this in Mathematica 9, you will get the result shown in that doc page:

Plot[Tan[x], {x, -3, -Pi/2, Pi/2, 3}]

But when I try it I get this pllim error:

Mathematica graphics

claiming too many things appearing after x, but that's what the doc says to do. I have searched here for anything relevant to no avail. What's going on with this?

share|improve this question
    
confirmed on 9.01 on Windows... and even the documentation marks the additional arguments in red. –  Yves Klett Oct 29 '13 at 11:51
    
Works in v7. Fails in in 8.0.4. –  Michael E2 Oct 29 '13 at 11:55
    
You could also (cross-)post this on community.wolfram.com, which may help to get WRI attention more quickly. Using the Exclusions option works, but I guess that is not your point. –  Yves Klett Oct 29 '13 at 11:57
add comment

1 Answer 1

This appears to be a documentation issue. The desired plot can be obtained using:

Plot[Tan[x], {x, -3, 3}, Exclusions -> {-Pi/2, Pi/2}]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.