The Mathematics of Planet Earth