Ask Your Question

Revision history [back]

I am not sure about your problem, but if you want to see the vertical asymptote around zero, you can require Sage to plot more points as follows:

f(x) = x^2 + 1/x
plot(f, (x, -100, 100), plot_points=100000)

See http://sagecell.sagemath.org/?z=eJxL06jQVLBVqIgzUtBWMNSv4OUqyMkv0UjTUdCo0FHQNTQw0FEAEpo6CiDx-IL8zLySYlugCBBoAgDfUQ_m&lang=sage

I am not sure about your problem, problem (you did not tell what was wrong in the picture), but if in case you want to see the vertical asymptote around zero, you can require Sage to plot more points as follows:

f(x) = x^2 + 1/x
plot(f, (x, -100, 100), plot_points=100000)

See http://sagecell.sagemath.org/?z=eJxL06jQVLBVqIgzUtBWMNSv4OUqyMkv0UjTUdCo0FHQNTQw0FEAEpo6CiDx-IL8zLySYlugCBBoAgDfUQ_m&lang=sage