Literature, logic and mathematics in the fourteenth century