On Thursday, June 2, 2016 at 8:11:26 AM UTC+3, Yiming Yang wrote:
>
> Hello All,
>
> My question may be naive, as I'm new to Sympy. I tried to find how
> Sympy defines parametric polynomials, i.e. polynomials with indeterminate
> coefficients (K[U][X] with coefficients in K[U]), but could not figure it
> out. I checked those domains defined in sympy.polys.domains, and thought
> "CompositeDomain" might help, but I was confused by its usage. Could anyone
> give an example of it to me, if it is the correct class I'm looking for?
> Thank you!
>
>
> Sincerely,
> Yiming Yang
>
A simple way of defining such a polynomial ring is the following.
>>> U, X = symbols('U, X')
>>> R = ZZ[U][X]
>>> R.gens
(X,)
>>> R.domain
ZZ[U]
Other rings can be used instead of ZZ.
--
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/064524a4-3b71-416f-95bc-42d05b021fe4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.