Hi Mateusz,

On Apr 18, 6:48 pm, Mateusz Paprocki <[email protected]> wrote:
> Hi,
>
> > fgh = Poly(dict(FGH), domain = 'QQ', *gens)
>
> the above should read
>
> Poly(dict(FGH), *gens, domain='ZZ')
>
> (or domain='QQ' if you used the rational field in previous steps).

I tried that way previously, but it results in an error

   File "<ipython console>", line 1
     fgh = Poly(dict(FGH), *gens, domain='QQ')
                                       ^
SyntaxError: invalid syntax

regardless of whether domain is ZZ or QQ.  If I just do

fgh = Poly(dict(FGH), *gens)

it works correctly, except it defaults to ZZ.

Actually, I can't even do

FF = sdp_from_dict(Poly(F, *gens, domain = 'QQ').as_dict(), O_lex)

or specify any option after the *gens without getting the above syntax
error.

I am using Python 2.5.

Thanks,
Ben

-- 
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.

Reply via email to