free_symbols problem ?

45 views
Skip to first unread message

Loïc Gouarin

unread,
Mar 7, 2017, 5:47:28 AM3/7/17
to sympy
Hi,

I have this code

from sympy import *
 i
= Idx('i')
 A
= Indexed('A', i)
 A
.free_symbols
 
 
for a in A.free_symbols:
     
print(type(a))

It seems that the behavior has changed. With a previous version of SymPy, all the types are Symbol which is what I expected.

But in the master branch, the type of Idx in free_symbols are Idx and not Symbol.

Is it an issue ?

Thanks,
Loic

Loïc Gouarin

unread,
Mar 7, 2017, 8:41:40 AM3/7/17
to sympy
Ok. I saw the change in codegen for this problem.

Sorry for this post.

Loic
Reply all
Reply to author
Forward
0 new messages