Spanish historian, archaeologist, arabist, geographer, mathematician, engineer, architect and professor