The mathematics of climate and the environment