Re: Re: RFC - Two more Math packages: Math_Integer and Math_Fibonacci
| From: | Christian Dickmann | Date: | Fri, 03 Jan 2003 10:18:20 +0000 |
| Subject: | Re: Re: RFC - Two more Math packages: Math_Integer and Math_Fibonacci | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12089@lists.php.net to get a copy of this message | ||
> It should not be a problem to add an equivalent to gmp_powm() using
bcpow() and
> bcmod().
This would be slow, but would work.
> The gmp_random() and gmp_prob_prime() equivalents will require
> implementation.
I will implement them for Math_Bigint, so porting to bcmath shouldn't
be too hard.
> Had not look into the Math_BigInt in detail yet, but it will be
> OK to merge code. Will email you personally later on, after I've looked at
what
> you've implemented.
OK.
Be aware of the fact, that the file is under construction ;)
Now I got add(), sub(), mul(), sqr() and div() working.
Math_Bigint is not capable of negativ values yet, maybe I
will add the support later.
Christian Dickmann