odometer: Odometer

Description Usage Arguments Value Examples

Description

The odometer in a given integer base

Usage

1
2
3
4
5
6
7
odometer(x, base = 2L)

odometer_iterated(x, n, base = 2L)

odometerBW(x, base = 2L)

odometerBW_iterated(x, n, base = 2L)

Arguments

x

a sequence of digits in the given base

base

integer, the base of the expansion

n

integer, power of the iteration

Value

odometer returns the transformation of x by the odometer; odometer_iterated returns the n-th iterate of the odometer; odometerBW returns the transformation of x by the backward odometer; odometerBW_iterated returns the n-th iterate of the backward odometer.

Examples

1
2
3
4
5
6
odometer(c(0,1))
odometer(c(1,1))
odometerBW(odometer(c(0,1))) == c(0,1)
odometer_iterated(c(0,1), n=2)
odometer_iterated(0, n=13) == intAtBase(13)
odometerBW_iterated(intAtBase(13), n=13) == 0

stla/expansions documentation built on May 30, 2019, 5:46 p.m.