Questions tagged [predicates]

Predicates are functions that return the boolean values, `True` or `False`.

In computing, Predicates are functions that return the boolean values, True or False. Some languages and frameworks treat them specially.

See also Wikipedia.

There are alternate (and possibly more mainstream) meanings. See Wikipedia.

108 questions
-2
votes
2 answers

Check if a Predicate condition is not met?

I am printing a list after testing my predicate and I would like to know if there is a way to check if the condition was not met?
-3
votes
1 answer

convert c to assembly with predicated instruction

I want to convert this code to assembly using predicated instruction If (A>B){ C=A; D=B; E=0 } else{ C=B; } Is it correct or how can i use jump ? cmp R1,R2; considering B is assigned to R2 and A assigned to R1 movlf R3,R1;R3…
amy
  • 5
  • 2
  • 7
-3
votes
1 answer

Creating Prolog Predicates

Prolog predicates - Built on this, question did not have enough clarity so I am posting the question in context. Here is the question and I will post what I have done so far and what I am struggling on. Scenario (A quiet weird one) James and…
DrKhan
  • 313
  • 1
  • 3
  • 10
1 2 3 4 5 6 7
8