What kind of mathematics do you want to learn? If you are interested in discrete mathematics and algebra, Haskell has something to offer. I would also read http://www.amazon.com/Conceptual-Mathematics-First-Introduct... which is a great introduction (unspecific to code).
If you are more interested in linear algebra or numerics, I would suggest to get to know numpy better.