Visualizing the Digits of a Real Number


see_number (a, n, b, c) is a maple procedure that takes as its 1st argument a number (or some expression that evaluates to a real number) and colors its digits (using a distinct color for each digit) and displays them in a rectangular grid.

This procedure was developed to visualize patterns in the digits of a real number. It computes up to 1600 digits of a number by defaults but this can be changed to a maximum of 10000 (2nd argument). It can also work in other bases besides base 10 (the default) which is controlled by the 3rd argument. In addition, the default grid is approximately a square but this can also be changed by the fourth argument which is the number of columns of the first row.