trizen
|
baea80ad4d
Renamed the `powm` method to `powmod`.
|
5 年之前 |
trizen
|
c70411d538
- Better implementation of the `gcd` and `invmod` methods.
|
5 年之前 |
trizen
|
0b6f2fff50
Documented `gcd` and `invmod`.
|
5 年之前 |
trizen
|
48523eb19c
- Added the `gcd(a, b)` method for computing the greatest common divisors of two complex numbers.
|
5 年之前 |
trizen
|
e513ec5fa2
- Added the `powm(x, n, m)` method for efficiently computing `x**n % m`, using the exponentiation by squaring method.
|
5 年之前 |
trizen
|
1b7e27e626
- Added the bitwise methods: `lsft`, `rsft`, `and`, `or`, `xor`, which also provide support for operator overloading of `<<`, `>>`, `&`, `|` and `^`.
|
5 年之前 |
trizen
|
36b084b63b
- Added the `pown` method for computing `x**n` where `n` is a native integer (using the exponentiation by squaring method).
|
5 年之前 |
trizen
|
ec2f19c71b
modified: t/overload.t
|
6 年之前 |
trizen
|
492fe25b34
Added more tests in t/overload.t
|
6 年之前 |
trizen
|
e798cca379
modified: t/overload.t -- added more tests
|
6 年之前 |
trizen
|
b81717c8cf
new file: t/overload.t
|
6 年之前 |