Hi Kalevi,

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


Sincerely,
Yiming

On Thu, Jun 2, 2016 at 3:27 AM, Kalevi Suominen <[email protected]> wrote:

>
>
> 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
> <https://groups.google.com/d/msgid/sympy/064524a4-3b71-416f-95bc-42d05b021fe4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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

-- 
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/CAEAwda0mk73whLTNbxz6cTds%2BL5bRWE9f7EOt2DFfuDLu%2B%2Bgew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to