Some functions, for example a specific N-queens solver has a restriction on the acceptable scale values. In this case, the N-queens solver does not support values bigger than 32.
Other methods might throw a StackOverflowError for too large values of scale.
Can this be handled somehow? For example, by only using scale values of 1 - upperLimit for these methods?