On Mon, Jun 7, 2010 at 3:05 AM, dbjohn <johndbren...@gmail.com> wrote:
> I wanted to place a line through two points represented as variables.
> I can do it when explicitly giving coordinates. I wanted to do
> something like this example:
> pointA = point((1,1))
> pointB = point((2,2,))
> myline = line([pointA, pointB])
>
> Though I am getting errors like: ValueError: need more than 1 value to
> unpack
>
> Would there be any way to achieve this?

sage: pointA= (1,1)
sage: pointB = (2,2)
sage: myline = line([pointA, pointB])
sage: myline


>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

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

Reply via email to