Description Usage Arguments Examples
Basic operations for working with large integers. The bignum
function converts a positive integer, string or raw vector into a bignum type.
All basic Arithmetic and Comparison operators such as
+
, -
, *
, ^
, %%
, %/%
, ==
,
!=
, <
, <=
, >
and >=
are implemented for
bignum objects. The
Modular exponent
(a^b %% m
) can be calculated using bignum_mod_exp
when b
is too large for calculating a^b
directly.
1 2 3 4 5 | bignum(x, hex = FALSE)
bignum_mod_exp(a, b, m)
bignum_mod_inv(a, m)
|
x |
an integer, string (hex or dec) or raw vector |
hex |
set to TRUE to parse strings as hex rather than decimal notation |
a |
bignum value for |
b |
bignum value for |
m |
bignum value for |
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.