Shih-Hsi wrote:
small :# fuzzy_predicate([(0,1),(0,1),(0.5,0),(1,0)]).
If I want to show X value in small(0.2,X) , how to solve it?
Because if I use write(X) ,then it show _xxx. I hope it show membership value.
Showing _xxx means that the you did not bind this value; every possible value in X may be true (that can sometimes be wrong, for instance the predicate blahingly_foolish(0.2,X) :- variable(x). wuold return an unbound variable for every given veraibal at the second argument, yet for any given number would return false. { Btw, sorry if I got the name 'variable' wrong, I haven't used prolog in a long time... }) In short, the return of _xxx for X means that for any X, small(0.2,X) is true.
May I ask though what fuzzy_predicate does?
Katsmall the Wise kela_bit(a)netvision.net.il
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------