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.
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] 8 64 512 4096