Hello,
I am porting some code over from Sage, and am wondering if it's
possible to reproduce Sage's nested algebra constructions.
Specifically, in Sage you can do something like
R = SR['x','y','z']
which creates a multivariate polynomial with three unknowns where the
coefficients are themselves symbolic expressions (elements of the
symbolic ring SR). Since R is a polynomial ring, there are various
ways to extract and manipulate the set of monomials and coefficients
which preserve the structure of the symbolic coefficient expressions,
which I am using for code generation purposes:
https://github.com/otherlab/simplicity.
Is there a way to do this kind of nested algebra in sympy?
Another question: if I know that two symbolic expression are
polynomials, will expand() produce results that are always safely
hashable for use in dictionaries? If not, is there some other way to
convert a general symbolic expression into something that can safely
be compared for equality and hashed?
Thanks!
Geoffrey
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.