Crate big_num_math

Source
Expand description

Allows to compute on big integer numbers. No negative numbers support.

Macros§

pg
Flexible prime number generator.
pg_sw
Memory economic version of pg macro.

Structs§

PlacesRow
PlacesRow represents row of decimal places starting at ones (0 index).

Enums§

Oom
Order of magnitude enumeration.
OomKind
Order of magnitude computational kind.
PrimeGenRes
Prime number generation result enumeration.
PrimeGenStrain
Prime number generation strain enumeration.
Rel
Relation enumeration.
RelDec
Decimal relation enumeration.

Constants§

SQUARE_ROOT_TEN_COMPARATOR
Represents 1,000 numbers of √10 ≈ 3.16.

Functions§

add
Computes addend1 and addend2 sum.
divrem
Computes dividend and divisor ratio and remainder.
heron_sqrt
Computes integer square root of num.
mul
Computes factor1 and factor2 product.
ord_of_mag
Computes order of magnitude for num and kind.
pow
Computes power pow of base.
prime_ck
Examines num primality.
rel
Checks relation of num to comparand.
rel_dec
Compares decimal places count of num and comparand.
sub
Computes minuend and subtrahend difference.

Type Aliases§

DecCnt
Decimal places count.