#14895: Segfault when exponentiating an integer with I.pyobject()
-------------------------------------+-------------------------------------
Reporter: eviatarbach | Owner: burcin
Type: defect | Status: positive_review
Priority: critical | Milestone: sage-6.2
Component: symbolics | Resolution:
Keywords: days57 | Merged in:
Authors: Ralf Stephan | Reviewers: Volker Braun
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/rws/ticket/14895-1 | 17af5a15f01fcefc85bba52f1de00308d83f200d
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vbraun):
{{{
sage -t --long src/sage/symbolic/expression.pyx
**********************************************************************
File "src/sage/symbolic/expression.pyx", line 3207, in
sage.symbolic.expression.Expression.__pow__
Failed example:
t^(1/2)
Expected:
2*sqrt(2)
Got:
sqrt(8)
**********************************************************************
File "src/sage/symbolic/expression.pyx", line 3209, in
sage.symbolic.expression.Expression.__pow__
Failed example:
(t^2)^(1/4)
Expected:
2*4^(1/4)
Got:
64^(1/4)
**********************************************************************
}}}
So that what it was about, we want the simplified symbolic form. We should
just try `QQ(base)**QQ(exp)`, the `QQ.__pow__` method will then find the
simplified form.
--
Ticket URL: <http://trac.sagemath.org/ticket/14895#comment:10>
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.