On the other hand,
sage: gap.Group(["(1,2)","()"])
Group( [ (1,2), () ] )
sage: gap.Group(["(1,2)"])
Group( [ (1,2) ] )
sage: gap.Group(["(1,2)","()"]) == gap.Group(["(1,2)"])
True
so GAP does allow the identity as a member of the list of generators.
On Sat, Nov 1, 2008 at 4:14 AM, Minh Nguyen <[EMAIL PROTECTED]> wrote:
>
> Carlo Hamalainen wrote:
>> Hi,
>>
>> I think this is a bit weird, in 3.2.alpha0. Should I make a trac ticket?
>>
>> sage: p = gap(Permutation('(1,2,3)'))
>> sage: q = gap(Permutation([()]))
>> sage: gap.Group([p, q])
> [...]
>
> I receive a similar error using 3.1.4:
>
> ---------------------------------------------------------------------------
> TypeError Traceback (most recent call last)
>
> /home/mvngu/<ipython console> in <module>()
>
> /home/mvngu/usr/bin/sage-3.1.4/local/lib/python2.5/site-packages/sage/interfaces/expect.pyc
> in __call__(self, *args, **kwds)
> 1211
> 1212 def __call__(self, *args, **kwds):
> -> 1213 return self._parent.function_call(self._name,
> list(args), kwds)
> 1214
> 1215 def _sage_doc_(self):
>
> /home/mvngu/usr/bin/sage-3.1.4/local/lib/python2.5/site-packages/sage/interfaces/expect.pyc
> in function_call(self, function, args, kwds)
> 1158
> 1159 return self.new("%s(%s)"%(function, ",".join([s.name()
> for s in args]+
> -> 1160
> ['%s=%s'%(key,value.name()) for key, value in kwds.items()])))
> 1161
> 1162 def call(self, function_name, *args, **kwds):
>
> /home/mvngu/usr/bin/sage-3.1.4/local/lib/python2.5/site-packages/sage/interfaces/expect.pyc
> in new(self, code)
> 1028
> 1029 def new(self, code):
> -> 1030 return self(code)
> 1031
> 1032
> ###################################################################
>
> /home/mvngu/usr/bin/sage-3.1.4/local/lib/python2.5/site-packages/sage/interfaces/expect.pyc
> in __call__(self, x, name)
> 963 return x
> 964 if isinstance(x, basestring):
> --> 965 return cls(self, x, name=name)
> 966 try:
> 967 return self._coerce_from_special_method(x)
>
> /home/mvngu/usr/bin/sage-3.1.4/local/lib/python2.5/site-packages/sage/interfaces/expect.pyc
> in __init__(self, parent, value, is_name, name)
> 1281 except (TypeError, KeyboardInterrupt, RuntimeError,
> ValueError), x:
> 1282 self._session_number = -1
> -> 1283 raise TypeError, x
> 1284 self._session_number = parent._session_number
> 1285
>
> TypeError: Gap produced error output
> Error, usage: Group(<gen>,...), Group(<gens>), Group(<gens>,<id>)
>
> executing $sage4:=Group($sage3);;
>
> --
> Regards
> Minh Van Nguyen
>
> Web: http://nguyenminh2.googlepages.com
> Blog: http://mvngu.wordpress.com
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---