This was a terrible merge and I don't want to talk about it

This commit is contained in:
Diogo Cordeiro 2018-11-22 23:45:22 +00:00
parent 63473ec912
commit 3b4e1c2b98

View File

@ -590,7 +590,7 @@ add_polynomial(P1, P2, S) :-
polynomial_to_list(P1, L1),
polynomial_to_list(P2, L2),
append(L1, L2, LA),
join_like_terms(LA,LJ),
join_similar_parts_of_term(LA,LJ),
list_to_polynomial(LJ, P),
simplify_polynomial(P, S).
%% Tests: