discreetly fixes the code
This commit is contained in:
parent
f89fad686c
commit
8b27993033
11
polimani.pl
11
polimani.pl
@ -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) :-
|
||||
|
Reference in New Issue
Block a user