User blog comment:B1mb0w/Alpha Function version 1/@comment-25337554-20150801225959/@comment-10262436-20150802111751

Thanks for your help. This VBA code is not the best and is not easy to follow. If you want to work on a C version then I will be happy to help.

To begin with, the VBA function called aBinary can be converted to C without much change. This function converts a real number into an integer followed by a binary bit string. The integer represents x where r<2^x.

The Alpha function then starts generating a nested D function based on the binary bit string.