Small bug in multiply

This commit is contained in:
Hugo Sales 2018-12-20 23:29:12 +00:00
parent 5f5352ddb1
commit 88413e2b02
1 changed files with 1 additions and 1 deletions

View File

@ -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)) :-