>With all the complex numbers, exps, logs, sins, coss in the code I wonder if this is the formula? (Not that I understand a word of the link, but I know you are a matematician)
http://vision.stanford.edu/~birch/projective/node14.htmlThis isn't related to the function at all, except by the author. Although this text was sort of difficult to follow because of some weird notation (weird being in the eye of beholder and in the lack of the relevant pages of the book where they'd introduce the syntax :). This is still happening in the complex plane, from what I can see, but while the function requires iterative computation, this formula would be quite straightforward.