bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible bug in mpz_remove


From: Kevin Ryde
Subject: Re: possible bug in mpz_remove
Date: Wed, 10 Jul 2002 10:26:52 +1000
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu)

Peter Keller <address@hidden> writes:
>
> After the mpz_remove, I think I'm supposed to get a '2' in v1 as the
> multiplicity of that factor in 28.

No, the input v1 will be unchanged.  The multiplicty you're looking
for is the return value from the function, eg.

        multiplicty = mpz_remove (result, input, factor);

I can see how "Return the multiplicity of F in OP" in the manual is a
bit misleading though.  I'll try to clarify that.  Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]