On Nov 9, 1:45 pm, pevzi <[email protected]> wrote:
> For example, I want to plot a line 5*x-3*y+10. When I try to plot it
> directly with plot(5*x-3*y+10), I get an error:
>
> ValueError: free variable: y
>
> Is there any way to do it?

Yes, but you have to tell it what to plot.  In general, we plot
*functions*, not curves.  You could do an implicit plot, though; see

sage: implicit_plot?

for more details.

Or you could algebraically solve for y=mx+b and then plot that.

Also, if you just use

sage: plot(XXX)

you will want to put in endpoints for x; otherwise you just get the
default inputs, from -1 to 1.

Good luck!

- kcrisman

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to