I was looking at the cantor pairing function here https://en.wikipedia.org/wiki/Pairing_function and am quite amazed as to how it works very well for pairing and unpairing natural numbers.
So far, my test on natural numbers π(47, 32)
work flawlessly but I have another special use case where I would want to use real numbers instead, for exampleπ(6036.154879072251, 21288)
. Is there a way to modify the function to allow support for real numbers?