R.gen() is z, not the square root of minus 1, so your f is 4*z^2.

With I = CC.gen() you get

sage: print(f.dict())
{1: 2.00000000000000*I, 2: 2.00000000000000}


On 25 May 2016 at 14:13,  <keith.bri...@bt.com> wrote:
> Why do I get this?
>
>
> R.<z>=PowerSeriesRing(CC)
>
> I=R.gen()
> f=2*I*z+2*z^2
>
> print(f.dict())
>
>
>> {2: 4.00000000000000}
>
>
>
> Thanks,
>
> Keith
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to