plotting implicit functions



El mi?, 16-01-2013 a las 17:18 +0100, Michele Minelli escribi?:
> Hi everyone, I'm sorry if my english is not perfect but I'll try my best!
> What I was trying to do is plotting a function which is defined as 
> implicit, such as x^2+y^2=1.
> I searched the web and found a method, which is:
> 
> load(draw)
> draw2d(implicit(x^2+y^2=1, x, -2, 2, y, -2, 2))
> 
> and this works nicely. Anyway I would like a higher precision since the 
> function is plotted with some angles and straight lines.
> Is there a way to obtain this?

Yes, play with options ip_grid and ip_grid_in:

load(draw) $
draw2d(
    ip_grid = [60,60],
    ip_grid_in = [10,10],
    implicit(x^2+y^2=1, x, -2, 2, y, -2, 2));

To read the available documentation, type

? implicit
? ip_grid
? ip_grid_in

--
Mario