inverse_cantor_pairing: Invert the Cantor pairing function.

Description Usage Arguments Value Examples

Description

This function is the inverse to the Cantor pairing function. See the Wikipedia article for more information.

Usage

1

Arguments

z

A non-negative integer

Value

A vector of non-negative integers (x, y) such that cantor_pairing(x, y) == z.

Examples

1
2

BenjaK/pairing documentation built on May 5, 2019, 2:40 p.m.