Small bug in multiply
This commit is contained in:
parent
5f5352ddb1
commit
88413e2b02
@ -280,7 +280,7 @@ do_process_input(multiply(TN, PT)) :-
|
|||||||
polynomial_tree_to_polynomial(PT, P),
|
polynomial_tree_to_polynomial(PT, P),
|
||||||
%% Use function from UI layer
|
%% Use function from UI layer
|
||||||
%% Left is always the number. Enforced by parser
|
%% Left is always the number. Enforced by parser
|
||||||
scalepoly(N, P, P2),
|
scalepoly(P, N, P2),
|
||||||
simpoly(P2, SP),
|
simpoly(P2, SP),
|
||||||
writeln(SP).
|
writeln(SP).
|
||||||
do_process_input(op(+, TN, PT)) :-
|
do_process_input(op(+, TN, PT)) :-
|
||||||
|
Reference in New Issue
Block a user