On Oct 4, 2007, at 8:53 PM, William Stein wrote:

>
> On 10/4/07, John Voight <[EMAIL PROTECTED]> wrote:
>>
>> OK, done.  I'll see if I can make any progress on it myself.
>
> I've added that PARI function you want to Sage for the next release.
> The patch is the following (just so you know).   The hardest part
> was figuring out that the C library name of the function you
> want is "rootsof1" -- I did that by poking around in the PARI source
> code; one could also do it by reading the PARI user's guide.

For the record, you can generally find the "API" version of a GP  
command/function with '??':

=====================
? ??nfrootsof1
nfrootsof1(nf):

    computes the number of roots of unity w and a primitive w-th root  
of unity (expressed on the
integral basis)  belonging to the number field nf.   The result is a  
two-component vector [w,z]
where  z  is  a  column  vector expressing a primitive w-th root of  
unity on the integral basis
nf.zk.

    The library syntax is rootsof1(nf).
=====================

Of course, in SAGE, it's tough to tell:

? ??nfrootsof1
sh: line 1: /SandBox/Justin/sb/sage-2.7.1/local/bin/gphelp: No such  
file or directory

(I don't think we install the doc).

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income
--------
"Weaseling out of things is what separates us from the animals.
  Well, except the weasel."
       - Homer J Simpson
--------



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to