Perhaps working in the symbolic ring is causing something you don't
like.  In David's example above, you might want to convert things to
CDF, which gives:

sage: a = CDF(1 + 3*I)
sage: z = log(a)
sage: z
1.1512925465 + 1.2490457724*I

...instead of
sage: a = 1 + 3*I
sage: z = log(a)
sage: z
log(3*I + 1

But its hard to guess unless you give more details about what you are
doing.

-M.Hampton

On Jul 6, 10:52 am, David Joyner <wdjoy...@gmail.com> wrote:
> On Mon, Jul 6, 2009 at 12:25 PM, mac8090<bonzerpot...@hotmail.com> wrote:
>
> > when I try to take logarithms of a complex number sage version 3.5
> > doesn't like it. How do I find/use a multiplication preserving
> > embedding to make it work?
>
> I don't understand the question. In the latest version you get this:
>
> sage: a = 1 + 3*I
> sage: z = log(a)
> sage: z.real()
> log(sqrt(10))
> sage: z.imag()
> arctan(3)
>
> Is that what you want?
>
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to