We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normal.free_symbols
Indexed.free_symbols
This is related to #14899. Compare Normal and Indexed response to free symbols queries:
Normal
Indexed
>>> from sympy.stats import Normal >>> X = Normal('X', 2, 4) >>> [(i,type(i)) for i in X.free_symbols] [(X, <class 'sympy.stats.rv.RandomSymbol'>)] >>> [(i,type(i)) for i in X.expr_free_symbols] [(X, <class 'sympy.core.symbol.Symbol'>)] vs >>> Fx = IndexedBase("F")[x] >>> [(i,type(i)) for i in Fx.expr_free_symbols] [(F[x], <class 'sympy.tensor.indexed.Indexed'>)] >>> [(i,type(i)) for i in Fx.free_symbols] [(F[x], <class 'sympy.tensor.indexed.Indexed'>), (x, <class 'sympy.core.symbol.Symbol'>), (F, <class 'sympy.core.symbol.Symbol'>)]
It seems like Normal should give this:
>> [(i,type(i)) for i in X.expr_free_symbols] [(X, <class 'sympy.stats.rv.RandomSymbol'>)] >> [(i,type(i)) for i in X.free_symbols] [(X, <class 'sympy.stats.rv.RandomSymbol'>), (X, <class 'sympy.core.symbol.Symbol'>)]
The text was updated successfully, but these errors were encountered:
free_symbols
expr_free_symbols
No branches or pull requests
This is related to #14899. Compare
Normal
andIndexed
response to free symbols queries:It seems like
Normal
should give this:The text was updated successfully, but these errors were encountered: