Do you think it could make sense to have attributes for atoms in SymPy?

Sometimes it could be convenient to store information on certain 
expressions, like SymPy atoms.

It came into the discussion of:
https://github.com/sympy/sympy/pull/12490

In this PR, *IndexedBase* is being loaded with more arguments. Potentially 
more arguments could be added in the future and through different kinds of 
objects (arrays and matrices could also be assigned the attributes 
discussed in that PR).

In Mathematica, atttributes are supported:

   - https://reference.wolfram.com/language/ref/SetAttributes.html
   - https://reference.wolfram.com/language/ref/Attributes.html


In Mathematica only a limited set of attributes can be assigned, and it's 
generally about basic mathematical behaviour.


We could potentially have a dictionary or a set assigned to atoms in a 
hidden global dictionary in *sympy.core*. What do you think?



-- 
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/b4a612ef-7756-447b-996a-865fc9dd5968%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to