The rainbow from myth to mathematics