#21007: Unhelpful error when using "r" as symbolic variable
----------------------------+-------------------------
       Reporter:  rws       |         Type:  defect
         Status:  new       |     Priority:  major
      Milestone:  sage-7.3  |    Component:  symbolics
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+-------------------------
 {{{
 sage: 1/r^(1/3)
 ...
 /home/ralf/sage/src/sage/symbolic/ring.pyx in
 sage.symbolic.ring.SymbolicRing._element_constructor_
 (build/cythonized/sage/symbolic/ring.cpp:6620)()
     340             return prod([SR(p)**e for p,e in x], SR(x.unit()))
     341         else:
 --> 342             raise TypeError
     343
     344         return new_Expression_from_GEx(self, exp)

 TypeError:
 }}}
 Fresh Sage has `r` defined as the R interpreter. Granted I only stumbled
 over this only after years but still, this exception should print `r` like
 when you do `r+1` and get `TypeError: unsupported operand parent(s) for
 '+': '<class 'sage.interfaces.r.R'>' and 'Integer Ring'`.

--
Ticket URL: <https://trac.sagemath.org/ticket/21007>
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