This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/cplint/examples/light.cpl
rzf 8fb01d6607 examples for the new programs
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2017 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-11-15 12:38:55 +00:00

27 lines
310 B
Plaintext

/*
?- p(light).
yes
?- s([push,replace],P).
P = 0.5 ?
yes
?- s([push,light],P).
P = 0.5 ?
yes
?- s([push,light,replace],P).
P = 0 ?
yes
?- s([light,replace],P).
P = 0 ?
yes
?- s([light],P).
P = 0.5 ?
yes
?- s([replace],P).
P = 0.5 ?
yes
*/
push.
light : 0.5 :- push.
replace :- \+ light.