On Mon, Jun 22, 2009 at 8:37 PM, Ethan Van Andel<[email protected]> wrote:
>
> I'm writing code for a cython module, but right now I'm doing it in
> the sage worksheet for convenience. This means that I don't have
> access to sage's arg(complex number) function. Therefore, I decided to
> use the cmath module's "phase(x)" function which does the same thing.
> When I import cmath, however, I only get the trig functions. According
> the the cmath documentation, phase and a couple other functions (which
> also don't show up) are new to cmath version 2.6.2. This implies sage
> is using an older version. I ran python from a terminal and was able
> to use the cmath.phase function, so my computer at least has it
> installed.  I have sage version 4.0.1
> So, 3 questions:
>
> 1: Is there a reason not to have the latest cmath version with sage?

Sage currently ships Python 2.5.x, so it doesn't have the latest cmath version.
Sage-4.1 will ship Python 2.6.

> 2: Is there some way I can update my cmath module without rebuilding
> all of sage?

I don't know.

> 3: If not, does anyone know of another package that defines an arg/
> phase fucntion (preferably numeric rather than symbolic)

--~--~---------~--~----~------------~-------~--~----~
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/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to