Clip ejemplos animales
-
Upload
norma8avila -
Category
Education
-
view
644 -
download
0
Transcript of Clip ejemplos animales
![Page 1: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/1.jpg)
ING. S. B. EN. C.ING. S. B. EN. C.
CLIPS algunos CLIPS algunos ejemplosejemplos
![Page 2: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/2.jpg)
EJEMPLO 1. animal1.clp EJEMPLO 1. animal1.clp ; HECHOS DE INICIO
(deffacts startup (deffacts startup (animal dog) (animal cat) (animal duck) (animal turtle)(warm-blooded dog) (warm-blooded cat) (warm-
blooded duck) (lays-eggs duck) ( lays-eggs turtle) (child-of dog puppy) (child-of cat kitten) (child-of turtle
hatchling))
; REGLAS DEL PROGRAMA
(defrule animal(defrule animal(animal ?)(animal ?)=>=>(printout t "animal found" crlf))(printout t "animal found" crlf))
![Page 3: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/3.jpg)
![Page 4: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/4.jpg)
RUNRUN
![Page 5: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/5.jpg)
EJEMPLO2 animal2.clp
![Page 6: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/6.jpg)
![Page 7: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/7.jpg)
RUNRUN
![Page 8: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/8.jpg)
Ejemplo Ejemplo 33
![Page 9: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/9.jpg)
Load & Load & resetreset
![Page 10: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/10.jpg)
Busque laas
![Page 11: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/11.jpg)
ACTIVIDAD 1ACTIVIDAD 1O Genera tu árbol de decisionesGenera tu árbol de decisionesO Que contenga 3 diferentes decisionesQue contenga 3 diferentes decisionesO Con al menos 3 elementos que cumplan Con al menos 3 elementos que cumplan
estas.estas.O
![Page 12: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/12.jpg)
ACTIVIDAD 2ACTIVIDAD 2O Crea el programa similar a los Crea el programa similar a los
ejemplos que busque las ejemplos que busque las soluciones de tu texto.soluciones de tu texto.
O Guárdalo de un TXT primero.Guárdalo de un TXT primero.
![Page 13: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/13.jpg)
EJEMPLO 4 hecho 2 dim
![Page 14: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/14.jpg)
ACTIVIDAD 3ACTIVIDAD 3O Incluye algunos hechos Incluye algunos hechos
bidimensionales.bidimensionales.O Valídalos mediante una regla Valídalos mediante una regla
similar al ejemplo.similar al ejemplo.
![Page 15: Clip ejemplos animales](https://reader033.fdocuments.in/reader033/viewer/2022052911/559e1a651a28abe35b8b45b3/html5/thumbnails/15.jpg)
TAREATAREAO Con lo aprendido generar
un solo programa con el material visto.
O 3 ejemplos de cada cosa.O TRAER COMPUTADORA
PRÓXIMA CLASE