See https://github.com/sympy/sympy/issues/12942 for more information.

Aaron Meurer

On Wed, Sep 20, 2017 at 4:05 AM,  <[email protected]> wrote:
>
>
> بتاريخ الثلاثاء، 10 يناير، 2012 11:11:38 م UTC+3، كتب Robert:
>>
>> I'm recently upgrading sympy to sympy-0.7.1-py2.7 (fom a fairly old
>> version).
>>
>> One surprising change that I've noticed so far is
>>
>> >>> a = sympy.Symbol('a')
>> >>> a**1 == a
>> True
>> >>> a**1.0 == a
>> False
>>
>> I'm not clear on the reasoning. Is there any way to get around this?
>> This results in very strange behavior like
>> >>> a**1.0/a
>> a**1.0/a
>>
>> The only solution I've found so far is the following:
>> >>> (a**1.0/a).subs(a**1.0, a)
>> 1
>>
>> I did attempt to search for this in the message board and the open
>> issues, but I didn't find anything.
>>
>> Any help would be appreciated,
>> Thanks,
>> Rob
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/4f5dd974-90c8-4773-9506-ef5dbc69888f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6LU1oZ1FjPNPN5HYd16yzJksM-pi_T9ZJHEqKhqt3uYCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to