Description Usage Arguments Value Note Examples
Generate a sequence consisting of the powers of mult
on the closed interval [lo
, hi
].
This function works on integer sequences, so if an interval is requested outside of
the maximum representable range of integers [-(2^{31} - 1), 2^{31} - 1] it
will throw an error. This function will only produce sequences of positive integers.
1 | add_powers(lo, hi, mult = 8)
|
lo |
bottom of the interval |
hi |
top of the interval |
mult |
multiplier |
an integer
vector
This is not intended to be called directly by users, but it is exported in case it is useful to be imported into another package.
1 | add_powers(lo = 8, hi = bitwShiftL(a = 8, n = 10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.