[sage-devel] Re: nfrootsof1

2007-10-07 Thread John Voight
Indeed! Next time this comes up, I will take care of it myself and send you a patch. :) JV --~--~-~--~~~---~--~~ 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, v

[sage-devel] Re: nfrootsof1

2007-10-05 Thread William Stein
On 10/5/07, John Voight <[EMAIL PROTECTED]> wrote: > > Thanks Will very much! > > So wait, is that all? You only need to modify the sage/libs/pari/ > gen.pyx file with the right C-named pari function? That seems a > little too easy! Yes, that's it. It is actually very easy to add functions to

[sage-devel] Re: nfrootsof1

2007-10-05 Thread John Voight
Thanks Will very much! So wait, is that all? You only need to modify the sage/libs/pari/ gen.pyx file with the right C-named pari function? That seems a little too easy! JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com

[sage-devel] Re: nfrootsof1

2007-10-04 Thread William Stein
On 10/4/07, Justin C. Walker <[EMAIL PROTECTED]> wrote: > 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

[sage-devel] Re: nfrootsof1

2007-10-04 Thread Justin C. Walker
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). T

[sage-devel] Re: nfrootsof1

2007-10-04 Thread William Stein
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 th

[sage-devel] Re: nfrootsof1

2007-10-04 Thread John Voight
OK, done. I'll see if I can make any progress on it myself. JV --~--~-~--~~~---~--~~ 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://gro

[sage-devel] Re: nfrootsof1

2007-10-03 Thread Michael Abshoff
John Voight wrote: > > Hello all, > Hello John, > I've asked for a few pari functions in SAGE, and now I'm about to ask > for another: I need nfrootsof1. > > For my own edumacation, I'd slightly prefer if someone were to show me > how to do it. I can't seem to follow Martin's write-up in the >