Question: Why is there this inconsistency with the discont command

I am plotting a simple rational function. When the denominator is completely factored, the discont command works as expected. However, if the denominator is expanded, discont fails.

Why does this happen?

 

restart

(x-3)/((3*x+1)^2*(x-2)^3)

(x-3)/((3*x+1)^2*(x-2)^3)

(1)

plot((x-3)/((3*x+1)^2*(x-2)^3), x = -3 .. 3, y = -2 .. 2, discont = true)

 

normal((x-3)/((3*x+1)^2*(x-2)^3), expanded)

(x-3)/(9*x^5-48*x^4+73*x^3-6*x^2-36*x-8)

(2)

plot((x-3)/(9*x^5-48*x^4+73*x^3-6*x^2-36*x-8), x = -3 .. 3, y = -2 .. 2, discont = true)

 

``

This behavior also occurs in Maple 17.

Download discont.mw

Please Wait...