On Parametric Polynomial

23 views
Skip to first unread message

Yiming Yang

unread,
Jun 2, 2016, 1:11:26 AM6/2/16
to sympy
 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

Kalevi Suominen

unread,
Jun 2, 2016, 5:27:07 AM6/2/16
to sympy

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.

Yiming Yang

unread,
Jun 2, 2016, 5:22:15 PM6/2/16
to sy...@googlegroups.com
Hi Kalevi,

    Thank you so much! Now I have a good starting point. I really appreciate it.


Sincerely,
Yiming

--
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 sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
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.



--
γνθι σεαυτόν.
--
Yiming Yang
Tel: +1-(505)720-2809
Office 342
Department of Computer Science
MSC01 1130
1 University of New Mexico
Albuquerque, NM 87131-0001
USA
Reply all
Reply to author
Forward
0 new messages