From 88413e2b0276d9ce13126eb7064d674b2f757471 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 20 Dec 2018 23:29:12 +0000 Subject: [PATCH] Small bug in multiply --- polymani.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) :-