Hi Dima,

On 5 Sep., 13:12, Dima Pasechnik <dimp...@gmail.com> wrote:
> x if n==1...

Oops...

> To be precise, I can propose that
> x^0 should be 1, (and not int(1)), then
> x^n := x*x^{n-1} for n>0,
> and then multiplication result will a  Sage Integer.

Right, that would be sound.

> sage: int(3)^-3
> 0.037037037037037035
> sage: type(int(3)^-3)
> <type 'float'>
> sage: int(3)^QQ(-3)
> 1/27
> sage: type(int(3)^QQ(-3))
> <type 'sage.rings.rational.Rational'>

That is certainly inconsistent. So, there IS a bug.

> This is very weird, to see this happening.

Agreed.

Best regards,
Simon

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to