Advertisement
logicmoo

Untitled

Jul 3rd, 2015
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term_expansion(L is R, algebra_isa(L,R)).
  2. algebra_isa(L,R):-grab_vars(L,Lvs),grab_vars(R,Rvs), ...
  3.  
  4. equation(X,+,Y,Z):- var(X),X is Z-Y.
  5. equation(X,+,Y,Z):- var(Y),Y is Z-X.
  6. equation(X,+,Y,Z):- var(Z),Z is X+Y.
  7. equation(X,-,Y,Z):- var(X),X is Z+Y.
  8. equation(X,-,Y,Z):- var(Y),Y is Z+X.
  9. equation(X,-,Y,Z):- var(Z),Z is X-Y.
  10. equation(X,*,Y,Z):- var(X),X is Z/Y.
  11. equation(X,*,Y,Z):- var(Y),Y is Z/X.
  12. equation(X,*,Y,Z):- var(Z),Z is X*Y.
  13. equation(X,/,Y,Z):- var(X),X is Z*Y.
  14. equation(X,/,Y,Z):- var(Y),Y is Z*X.
  15. equation(X,/,Y,Z):- var(Z),Z is X/Y.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement