Ptolemy's Philosophy: Mathematics as a Way of Life