Cours PROLOG.pdf
Cours PROLOG.pdf
Cours PROLOG.pdf
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Dossier sur <strong>PROLOG</strong>Utilisations de <strong>PROLOG</strong>Ex : Qui sont les parents de Louis XIV ??- bio(louis14,_,_,_,Parent,_);bio(louis14,_,_,_,_,Parent).Parent = louis13 ;Parent = anne_autriche ;NoOn obtient ici une sous-table à un seul attribut avec deux données. De ce fait, on perd l’information sur le sexe desparents puisqu’ils sont tous les deux réunis sous le même attribut.II.1.2.4. Recherche dans un intervalle de valeurs<strong>PROLOG</strong> peut gérer un intervalle de valeurs.Ex : Quels sont les personnages nés entre 1750 et 1800 ??- bio(Qui,_,N,_,_,_),1750=