discreetly fixes the code

This commit is contained in:
Diogo Cordeiro 2018-11-18 23:18:28 +00:00
parent f89fad686c
commit 8b27993033

View File

@ -43,7 +43,8 @@ term(X) :-
power(X).
term(L * R) :-
term(L),
term(R), !.
term(R),
!.
%% is_term_valid_in_function(+T, +F) is det
%
@ -184,16 +185,16 @@ monomial_parts(K, K, indep) :-
delete_monomial(M, X, M, 0) :-
term_p(M),
term(M),
monomial_parts(M, _, X),
!.
delete_monomial(M + M2, X, M, M2) :-
term_p(M2),
term_p(M),
term(M2),
term(M),
monomial_parts(M, _, X),
!.
delete_monomial(P + M, X, M, P) :-
term_p(M),
term(M),
monomial_parts(M, _, X),
!.
delete_monomial(P + M2, X, M, P2 + M2) :-