lots of ifs and stuff, I think writing it in SQ would look considerably cleaner, readable and consise
Printable View
lots of ifs and stuff, I think writing it in SQ would look considerably cleaner, readable and consise
CB - you're right.
But - other than for pedagogy what practical app is this?
I've used Reynolds numbers for spiral flow, and Ulam's prime number spiral for fun (this looks like it's a relative).
Here's a picture and discussion of a prime number spiral with a box created somewhat the way these are.
http://hermetic.nofadz.com/pns/pns.htm
Pure pedagogy. It was invented for it. I just thought it's an interesting problem.
maybe it makes sense looking at a visual example, so i drawed this (was drawn first on paper when i tried to solve the problem)