2009/9/3 Golam Mortuza Hossain <gmhoss...@gmail.com>:
>
> Hi,
>
> On Thu, Sep 3, 2009 at 5:00 PM, William A. Stein<wst...@gmail.com> wrote:
>>>> sage: var('i')
>>>> i
>>>> sage: a = i^2
>>>> sage: a.simplify_full()
>>>> -1
>> I think my email must have not been clear.  I think it's an instance
>> of a *HUGE BUG* in Sage.  No more, no less.    It's a bug, because
>> irregardless of anything being predefined, it makes no sense that
>> simplifying via *maxima* would just happen to decide that the formal
>> variable "i" is sqrt(-1), even though it isn't with Ginac.
>
> This seems to be a problem with the way Sage convert back
> maxima-returned string intro SR. So Maxima is NOT doing anything
> wrong.
>
> -----------
> sage: from sage.calculus.calculus import 
> symbolic_expression_from_maxima_string
> sage: symbolic_expression_from_maxima_string('%i')
> I
> sage: symbolic_expression_from_maxima_string('i')
> I
> -----------
>
> So as you see, we are converting both '%i' and 'i' to  imaginary 'I' !!!!
>

Yes, that completely nails down the bug.  Thanks.  This is now 6882:

http://trac.sagemath.org/sage_trac/ticket/6882

William

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to