The code was implementing things of a mathematical nature beyond my math abilities despite my decades of programming experience (Bresenham plotting a general i.e. rotated ellipse). As it was a scan within a PDF I couldn't simply cut and paste it without OCR errors. It turned out that about one quarter of the code worked perfectly and the other three quarters had bugs.
I went through character by character to make sure I typed what was really in the PDF. But even as a former professional proofreader in the printing industry I know how easy it is to not be able to spot mistakes. And since the math the code implements is beyond me it's hard to find the mistakes on logical grounds as well. It is of course also possible that I did type in the text verbatim but that it was published in the PDF with errors.
My question is, would it be within the scope of this site to post the links to the PDF and my version of the code and ask the site's users to help find either my transcription errors or the coding or transcription errors that made it into the PDF?