diff --git a/polymani.pl b/polymani.pl index 4893bc9..042cd7f 100644 --- a/polymani.pl +++ b/polymani.pl @@ -280,7 +280,7 @@ do_process_input(multiply(TN, PT)) :- polynomial_tree_to_polynomial(PT, P), %% Use function from UI layer %% Left is always the number. Enforced by parser - scalepoly(N, P, P2), + scalepoly(P, N, P2), simpoly(P2, SP), writeln(SP). do_process_input(op(+, TN, PT)) :-