Question: A numerical algorithm for SFC and its pseudo-inverse


I am trying to implement the algorithms given in this paper (free for download) in Maple 2015

Such algorithms, apparently very easy, provides an approximation of  a sapce-filling curve and its pseudo-inverse. I am interesting in this space--filling curve for its properties. Please, find attached the Maple file, I am not sure if the code of the paper is not fine or I am doing something wrong. 

Many thanks un advsnce for your help

Please Wait...