#16335: dictionary of symbolic expressions (functions) raises Maxima-error
-------------------------+-------------------------------------------------
   Reporter:  dkrenn     |            Owner:
       Type:  defect     |           Status:  new
   Priority:  major      |        Milestone:  sage-6.3
  Component:  symbolics  |         Keywords:  dictionary, symbolic
  Merged in:             |  function, Maxima
  Reviewers:             |          Authors:
Work issues:             |  Report Upstream:  N/A
     Commit:             |           Branch:
   Stopgaps:             |     Dependencies:
-------------------------+-------------------------------------------------
 The following gives an error:
 {{{
 sage:     D = {}
 sage:     f = function('f')
 sage:     for dq in srange(0,2):
 ....:             for du in srange(0,3):
 ....:                         print dq, du
 ....:                         D[f(SR.wild(42), dq, du)] = f(SR.wild(42),
 dq, du)
 ....:
 0 0
 0 1
 0 2
 1 0
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <ipython-input-3-b53f1d26cbca> in <module>()
       2         for du in srange(Integer(0),Integer(3)):
       3                     print dq, du
 ----> 4                     D[f(SR.wild(Integer(42)), dq, du)] =
 f(SR.wild(Integer(42)), dq, du)
       5

 /usr/opt/Sage-6.2-amd64/local/lib/python2.7/site-
 packages/sage/symbolic/expression.so in
 sage.symbolic.expression.Expression.__nonzero__
 (sage/symbolic/expression.cpp:12491)()

 /usr/opt/Sage-6.2-amd64/local/lib/python2.7/site-
 packages/sage/symbolic/relation.pyc in test_relation_maxima(relation)
     395         sage: forget()
     396     """
 --> 397     m = relation._maxima_()
     398
     399     #Handle some basic cases first

 /usr/opt/Sage-6.2-amd64/local/lib/python2.7/site-
 packages/sage/symbolic/expression.so in
 sage.symbolic.expression.Expression._maxima_
 (sage/symbolic/expression.cpp:5294)()

 /usr/opt/Sage-6.2-amd64/local/lib/python2.7/site-
 packages/sage/structure/sage_object.so in
 sage.structure.sage_object.SageObject._interface_
 (sage/structure/sage_object.c:4596)()

 /usr/opt/Sage-6.2-amd64/local/lib/python2.7/site-
 packages/sage/misc/lazy_import.so in
 sage.misc.lazy_import.LazyImport.__call__ (sage/misc/lazy_import.c:3000)()

 /usr/opt/Sage-6.2-amd64/local/lib/python2.7/site-
 packages/sage/interfaces/interface.pyc in __call__(self, x, name)
     197
     198         if isinstance(x, basestring):
 --> 199             return cls(self, x, name=name)
     200         try:
     201             return self._coerce_from_special_method(x)

 /usr/opt/Sage-6.2-amd64/local/lib/python2.7/site-
 packages/sage/interfaces/interface.pyc in __init__(self, parent, value,
 is_name, name)
     624                 self._name = parent._create(value, name=name)
     625             except (TypeError, RuntimeError, ValueError) as x:
 --> 626                 raise TypeError(x)
     627
     628     def _latex_(self):

 TypeError: ECL says: THROW: The catch MACSYMA-QUIT is undefined.
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/16335>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to