pairing-functions icon indicating copy to clipboard operation
pairing-functions copied to clipboard

A collection of pairing functions.

Results 2 pairing-functions issues
Sort by recently updated
recently updated
newest added

This is probably an issue with the the numerical calculation of the square root: ```python >>> from pairing_functions.cantor import pair, unpair >>> unpair(pair(129315199267255490, 392198719615119)) >>> (129707397986870608, 0) ``` I'm wondering...

I've written down how to get the formula for cantor unpairing (wiki refers to [here](https://en.wikipedia.org/wiki/Pairing_function#Inverting_the_Cantor_pairing_function)) [cantor_pairing_calc.pdf](https://github.com/Convert-Group/pairing-functions/files/8959319/cantor_pairing_calc.pdf)