> Perhaps we should special case for (small) integer powers, but that
> would slow other stuff down. What's happening here is that the
> symbolic expression "i^2" is getting turned into CDF(i)^CDF(2).
> Simplification happens on printing, not on construction.
>
> sage: CDF(simplify(i^2))
> -1.0
>

this does not look nice to me:

sage: CDF(i*i) == CDF(i^2)
False

I mean, this is OK (to be expected):

sage: CDF(i*i) == CDF(i^2.)
False

Again, if I want performance I could use i^2., things like this
(coercing to RDF or CDF) one anyway has to do frequently in sage to
increase performance

Georg


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to