A wrapper for GNU MP Bignum (arbitrary precision math) library. Warning: GMP uses the restrictive GNU license which can be a problem if you are hard linking it into a distributed application. | ||
%(aNum)
Modulus op (same as mod()). Returns result.
&(aNum)
AND op. Returns result.
*(aNum)
Multiply op. Returns result.
**(aNum)
Power op. Returns result.
+(aNum)
Add op. Returns result.
-(aNum)
Subtract op. Returns result.
/(aNum)
Divide op. Returns result.
<<(aNum)
Shift left (towards higher bits) op. Returns result.
>>(aNum)
Shift right (towards lower bits) op. Returns result.
^(aNum)
XOR op. Returns result.
abs
Absolute op. Returns result.
asNumber
Returns an Io Number for the receiving BigNum.
asSimpleString
Returns simple string representation of the receiver.
asString
Returns a string representation of the receiver.
gcd(aNum)
Greatest common denominator op. Returns result.
hamdist(aNum)
Returns hamming distance between receiver and aNum.
invert(aNum)
?
jacobi(aNum)
?
kronecker
?
lcm(aNum)
Least common denominator op. Returns result.
legendre(aNum)
?
mod(aNum)
Modulus op (same as %). Returns result.
neg
Returns negative version of receiver.
nextprime
Returns next prime larger than the receiver.
popcount
?
pow(aNum)
Returns power of receiver to aNum.
powm(aNum)
?
root(aNum)
Returns the aNum root of the receiver.
scan0(aNum)
?
scan1(aNum)
?
sqrt
Returns square root of the receiver.
tstbit(aNum)
?
with(aNumber)
Returns a BigNum version of the Io number aNumber.
|(aNum)
OR op. Returns result.
|