| 1 | initial version |
This is a common numerical problem when plotting as the function approaches a vertical asymptote.
Raising the number of points plotted will make the picture nicer.
var('x y')
plot(sqrt(2-x^2),(x,1,3),plot_points=10000)
Generally, to plot a circle, it might be best to use implicit_plot.
var('x y')
implicit_plot(x^2+y^2==2,(x,-2,2),(y,-2,2))
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.