Revision history [back]

Plotting in 2D

I have a question about the plots made by SageMath compared to other CAS. Why does it make the straight line between the two curves, it's like Sage is plotting the vertical asymptot without the user asking for it. It does this to all the functions in the form of 1/x. I have not seen this type of plotting in Mathematica or Desmos, which made me wonder why the difference. Thanks.

sage: f(x) = x^2/(x+1)
sage: plot(f, (x,-3,2),figsize=10, ymax=8,ymin=-8)


Plotting in 2D

I have a question about the plots made by SageMath compared to other CAS.

Why does it make the straight line between the two curves, it's like Sage is plotting the vertical asymptot without the user asking for it.

It does this to all the functions in the form of 1/x. I have not seen this type of plotting in Mathematica or Desmos, which made me wonder why the difference. Thanks.

sage: f(x) = x^2/(x+1)
sage: plot(f, (x,-3,2),figsize=10, ymax=8,ymin=-8)


Plotting in 2D

I have a question about the plots made by SageMath compared to other CAS.

Why does it make the straight line between the two curves, it's like Sage is plotting the vertical asymptot asymptote without the user asking for it.

It does this to all the functions in the form of 1/x. I have not seen this type of plotting in Mathematica or Desmos, which made me wonder why the difference. Thanks.

sage: f(x) = x^2/(x+1)
sage: plot(f, (x,-3,2),figsize=10, ymax=8,ymin=-8)


Plotting in 2D

I have a question about the plots made by SageMath compared to other CAS.

Why does it make the straight line between the two curves, it's curves? It's like Sage is plotting the vertical asymptote without the user asking for it.

It does this to all the functions in the form of 1/x. I have not seen this type of plotting in Mathematica or Desmos, which made me wonder why the difference. Thanks.

sage: f(x) = x^2/(x+1)
sage: plot(f, (x,-3,2),figsize=10, ymax=8,ymin=-8)


Plotting in 2D

I have a question about the plots made by SageMath compared to other CAS.

Why does it make the straight line between the two curves? It's like Sage is plotting the vertical asymptote without the user asking for it.

It does this to all the functions in the form of 1/x. I have not seen this type of plotting in Mathematica or Desmos, which made me wonder why the difference. Thanks.

sage: f(x) = x^2/(x+1)
sage: plot(f, (x,-3,2),figsize=10, ymax=8,ymin=-8)


or

sage: plot(1/(x+1), (x,-3,2),figsize=10, ymax=8,ymin=-8)