inst/examples/ex-arith.R

x <- as_composition(c(1, 2, 3))
y <- as_composition(c(1, 2, 1))

## Perturbation
perturbation(x, y)
x + y

## Powering
powering(y, 2)
y * 2

## Scalar product
scalar(x, y)
tesselle/nexus documentation built on June 1, 2025, 9:04 p.m.