I got my error, i mixed prod and cartesian_product.

Am 14.08.2011 16:50, schrieb Johannes:
> Hi list,
> i tried to compute the product of two matrix groups and run in a gap
> parsing error.
> Miniexample:
> g1 = MatrixGroup([Matrix(CC,[[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, -1, 0],
> [0, 0, 0, 1]])])
> g2 = MatrixGroup([Matrix(CC,[[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0],
> [0, 0, 0, I]])])
> g1.prod(g2)
> 
> this leads to the following output:
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (146, 0))
> 
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (396, 0))
> 
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (29, 0))
> 
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (5, 0))
> 
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (29, 0))
> 
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (5, 0))
> 
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call last)
> 
> /home/j_schn14/studium/diplarbeit/tex/<ipython console> in <module>()
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/categories/monoids.pyc
> in prod(self, args)
>     145                 'ab'
>     146             """
> --> 147             return prod(args, self.one())
>     148
>     149         def _test_prod(self, **options):
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/misc/cachefunc.pyc
> in __call__(self, *args, **kwds)
>     553             return self.cache[k]
>     554         except KeyError:
> --> 555             w =
> self._cachedmethod._instance_call(self._instance, *args, **kwds)
>     556             self.cache[k] = w
>     557             return w
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/misc/cachefunc.pyc
> in _instance_call(self, inst, *args, **kwds)
>     776
>     777         """
> --> 778         return self._cachedfunc.f(inst, *args, **kwds)
>     779
>     780     def _get_instance_cache(self, inst):
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/categories/monoids.pyc
> in one(self)
>      81                 ''
>      82             """
> ---> 83             return self(1)
>      84
>      85         def one_element(self):
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/groups/matrix_gps/matrix_group.pyc
> in __call__(self, x)
>     249         M = self.matrix_space()(x)
>     250         g = self.element_class(M, self)
> --> 251         if not gap(g) in gap(self):
>     252             raise TypeError, "no way to coerce element to self."
>     253         return g
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
> in __call__(self, x, name)
>    1099             return cls(self, x, name=name)
>    1100         try:
> -> 1101             return self._coerce_from_special_method(x)
>    1102         except TypeError:
>    1103             raise
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
> in _coerce_from_special_method(self, x)
>    1123             s = '_gp_'
>    1124         try:
> -> 1125             return (x.__getattribute__(s))(self)
>    1126         except AttributeError:
>    1127             return self(x._interface_init_())
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/structure/sage_object.so
> in sage.structure.sage_object.SageObject._gap_
> (sage/structure/sage_object.c:3909)()
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/structure/sage_object.so
> in sage.structure.sage_object.SageObject._interface_
> (sage/structure/sage_object.c:3428)()
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/groups/matrix_gps/matrix_group_element.py
> in _gap_init_(self)
>     166             true
>     167         """
> --> 168         return self.__mat._gap_init_()
>     169
>     170     def _gap_latex_(self):
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/matrix/matrix1.so
> in sage.matrix.matrix1.Matrix._gap_init_ (sage/matrix/matrix1.c:2277)()
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
> in __call__(self, x, name)
>    1099             return cls(self, x, name=name)
>    1100         try:
> -> 1101             return self._coerce_from_special_method(x)
>    1102         except TypeError:
>    1103             raise
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
> in _coerce_from_special_method(self, x)
>    1123             s = '_gp_'
>    1124         try:
> -> 1125             return (x.__getattribute__(s))(self)
>    1126         except AttributeError:
>    1127             return self(x._interface_init_())
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/structure/sage_object.so
> in sage.structure.sage_object.SageObject._gap_
> (sage/structure/sage_object.c:3909)()
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/structure/sage_object.so
> in sage.structure.sage_object.SageObject._interface_
> (sage/structure/sage_object.c:3554)()
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
> in __call__(self, x, name)
>    1097
>    1098         if isinstance(x, basestring):
> -> 1099             return cls(self, x, name=name)
>    1100         try:
>    1101             return self._coerce_from_special_method(x)
> 
> /opt/sage-4.6/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
> in __init__(self, parent, value, is_name, name)
>    1524             except (TypeError, KeyboardInterrupt, RuntimeError,
> ValueError), x:
>    1525                 self._session_number = -1
> -> 1526                 raise TypeError, x
>    1527         self._session_number = parent._session_number
>    1528
> 
> TypeError: Gap produced error output
> Variable: 'Complex' must have a value
> 
> Syntax error: ; expected
> $sage8:=Complex Field with 53 bits of precision;;
>                     ^
> Variable: 'with' must have a value
> 
> Variable: 'bits' must have a value
> 
> Variable: 'precision' must have a value
> 
> 
>    executing $sage8:=Complex Field with 53 bits of precision;;
> 
> greatz Johannes
> 

-- 
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