#18036: I.parent() should not be the symbolic ring
---------------------------------+------------------------
       Reporter:  vdelecroix     |        Owner:
           Type:  defect         |       Status:  new
       Priority:  major          |    Milestone:  sage-6.6
      Component:  number fields  |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------

Comment (by jdemeyer):

 Replying to [comment:18 vdelecroix]:
 > About having methods `.cos()`, `.sin()`, `.exp()`, it is already
 something which I found dangerous with integers

 Still, if we even want this new non-symbolic `I` to behave like to old
 symbolic `I`, we would need to support things like that:
 {{{
 **********************************************************************
 File "src/sage/symbolic/expression.pyx", line 7901, in
 sage.symbolic.expression.Expression.log
 Failed example:
     I.log()
 Exception raised:
     Traceback (most recent call last):
       File "/usr/local/src/sage-git/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 496, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/usr/local/src/sage-git/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 858, in compile_and_execute
         exec(compiled, globs)
       File "<doctest sage.symbolic.expression.Expression.log[11]>", line
 1, in <module>
         I.log()
       File "sage/structure/element.pyx", line 420, in
 sage.structure.element.Element.__getattr__
 (build/cythonized/sage/structure/element.c:4676)
         return getattr_from_other_class(self, P._abstract_element_class,
 name)
       File "sage/structure/misc.pyx", line 259, in
 sage.structure.misc.getattr_from_other_class
 (build/cythonized/sage/structure/misc.c:1772)
         raise dummy_attribute_error
     AttributeError:
 
'sage.rings.number_field.number_field_element_quadratic.NumberFieldElement_quadratic'
 object has no attribute 'log'
 **********************************************************************
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18036#comment:20>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to