For integers, Pari also has an ispower function. I think that
it is useful to have an n.is_power(k) member function
for integers (or more general for ring elements which admit
unique factorization of polynomials), and prefer the syntax
n.root(k) rather than n.nth_root(k)
--David
P.S. Back in 19
radical(n,body)
On 2/12/07, Alec Mihailovs <[EMAIL PROTECTED]> wrote:
>
> - Original Message -
> From: "Dirk Laurie" <[EMAIL PROTECTED]>
> >> {{{
> >> sage: exp(log(64)/3)
> >> 4.0
> >> }}}
> > Well, that works for the cube root of 64. But note it's 4.0, not 4.
> > This exposes one to ro
- Original Message -
From: "Dirk Laurie" <[EMAIL PROTECTED]>
>> {{{
>> sage: exp(log(64)/3)
>> 4.0
>> }}}
> Well, that works for the cube root of 64. But note it's 4.0, not 4.
> This exposes one to roundoff errors, which the other two methods
> avoid.
Well, that can be avoided by increa
On Mon, 12 Feb 2007 04:36:46 -0800, Jack Fearnley <> wrote:
> [EMAIL PROTECTED] ~]$ gcc -v
> Using built-in specs.
> Target: i386-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checkin