Integer
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Private Members | ||
private |
_base: * |
|
private |
_is_negative: * |
|
private |
_limbs: * |
Method Summary
Public Methods | ||
public |
abs(): * |
|
public |
add(other: *): * |
|
public |
addn(number: *): * |
|
public |
bin(): * |
|
public |
bits(): * |
|
public |
clone(): * |
|
public |
cmp(other: *): * |
|
public |
cmpn(number: *): * |
|
public |
digits(base: *): * |
|
public |
div(other: *): * |
|
public |
divide_knowing_divisible_by(other: *): * |
|
public |
divides(other: *): * |
|
public |
|
|
public |
divmodn(number: *): * |
|
public |
divn(number: *): * |
|
public |
divround(other: *): * |
|
public |
egcd(other: *): {"gcd": *, "x": *, "y": *, "u": *, "v": *} |
|
public |
eq(other: *): * |
|
public |
eqn(number: *): * |
|
public |
gcd(other: *): * |
|
public |
ge(other: *): * |
|
public |
gen(number: *): * |
|
public |
gt(other: *): * |
|
public |
gtn(number: *): * |
|
public |
hex(): * |
|
public |
iabs(): * |
|
public |
iadd(other: *): * |
|
public |
iaddn(number: *): * |
|
public |
idiv(other: *): * |
|
public |
|
|
public |
|
|
public |
idivn(number: *): * |
|
public |
imod(other: *): * |
|
public |
imodn(number: *): * |
|
public |
imul(other: *): * |
|
public |
imuln(number: *): * |
|
public |
ipow(other: *): * |
|
public |
ipown(number: *): * |
|
public |
iseven(): * |
|
public |
isnegative(): * |
|
public |
isnonnegative(): * |
|
public |
isnonpositive(): * |
|
public |
isnonzero(): * |
|
public |
isodd(): * |
|
public |
isone(): * |
|
public |
ispositive(): * |
|
public |
isquare(): * |
|
public |
isub(other: *): * |
|
public |
isubn(number: *): * |
|
public |
iszero(): * |
|
public |
le(other: *): * |
|
public |
len(number: *): * |
|
public |
lt(other: *): * |
|
public |
ltn(number: *): * |
|
public |
mod(other: *): * |
|
public |
modn(number: *): * |
|
public |
move(other: *): * |
|
public |
mul(other: *): * |
|
public |
muln(number: *): * |
|
public |
ne(other: *): * |
|
public |
negate(): * |
|
public |
nen(number: *): * |
|
public |
oct(): * |
|
public |
opposite(): * |
|
public |
parity(): * |
|
public |
pow(other: *): * |
|
public |
Computes |
|
public |
sign(): * |
|
public |
square(): * |
|
public |
sub(other: *): * |
|
public |
subn(number: *): * |
|
public |
toJSON(): * |
|
public |
toNumber(): * |
|
public |
toString(base: *): * |
|
public |
valueOf(): * |
Private Methods | ||
private |
_limbs_in_base(base: *): * |
Public Constructors
public constructor() source
Public Methods
public digits(base: *): * source
Params:
Name | Type | Attribute | Description |
base | * |
|
Return:
* |
public divide_knowing_divisible_by(other: *): * source
Params:
Name | Type | Attribute | Description |
other | * |
Return:
* |
public egcd(other: *): {"gcd": *, "x": *, "y": *, "u": *, "v": *} source
Params:
Name | Type | Attribute | Description |
other | * |
Return:
{"gcd": *, "x": *, "y": *, "u": *, "v": *} |
public pown(x: Number): Integer source
Computes this
raised to the x
th power.
x
is a double smaller or equal to 2^53.
Params:
Name | Type | Attribute | Description |
x | Number | The power to raise |
public toString(base: *): * source
Params:
Name | Type | Attribute | Description |
base | * |
|
Return:
* |