I agree this is a bug. Another way that works in the above example is: vector(RDF, vector((1, 6.8)))
which I like a little better because I think its good when code is explicit about what sort of object is being dealt with. Marshall On Jan 14, 3:41 pm, Jason Grout <jason-s...@creativetrax.com> wrote: > slabbe wrote: > > Hi, > > > Is there a reason why, in sage 3.2.2, the following works : > > > sage: vector(vector((1, 6))) > > (1, 6) > > > but the following doesn't : > > > sage: vector(vector((1, 6.8))) > > Traceback (most recent call last): > > ... > > TypeError: _vector_() takes exactly one argument (0 given) > > > ??? > > It looks like a bug to me. As a temporary workaround, you can do: > > sage: vector(list(vector((1,6.8)))) > (1.00000000000000, 6.80000000000000) > > We are tracking this bug here: > > http://trac.sagemath.org/sage_trac/ticket/4977 > > Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---