how do I translate this kind of arithmetic predicate to a legal pyDatalog predicate?
add(X, Y, Z) ← X + Y = Z
for example:
?add(5, 7, Z).
the answer should be: add(5, 7, 12).
Thanks!
how do I translate this kind of arithmetic predicate to a legal pyDatalog predicate?
add(X, Y, Z) ← X + Y = Z
for example:
?add(5, 7, Z).
the answer should be: add(5, 7, 12).
Thanks!
Copyright © 2021 Jogjafile Inc.