I wanted a way to check if Poly(x + I, x, I, domain='ZZ') has complex 
coefficients. Sorry for the incomplete question.
As @jksuom suggested on gitter , I in poly.gens works fine for my use case. 

On Sunday, January 19, 2020 at 4:27:00 PM UTC+5:30, Oscar wrote:
>
> What do you mean by complex coefficients? 
>
> I can think of several meanings: 
>
> 1. You want to know if any of the coefficients has non-zero imaginary 
> part. 
> 2. You want to know that all of the coefficients represent complex 
> numbers and not something else like matrices. 
> 3. You want to know that the coefficients are concrete numbers like 
> 1+I rather than symbols like Symbol('x', complex=True) 
>
> Also when you say polynomial do you mean a `Poly` or an `Expr` that is 
> polynomial in some symbol? 
>
> Show a bit of code that gives an example of what you would like to be 
> able to do. 
>
> -- 
> Oscar 
>
> On Sun, 19 Jan 2020 at 10:24, Risubh Jain <[email protected] 
> <javascript:>> wrote: 
> > 
> > What is the correct way of checking if a polynomial has complex 
> coefficients? 
> > 
> > -- 
> > 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] <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/d5424af8-9fcd-4a4e-bed9-8d3ab611c86f%40googlegroups.com.
>  
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/b5066261-74fe-44ce-bd8b-f1ba68fca26f%40googlegroups.com.

Reply via email to