pascalabcnet/InstallerSamples/NumLibABC/Factors1.pas
2017-10-05 22:55:56 +03:00

11 lines
256 B
ObjectPascal
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

uses NumLibABC;
// Разложение полинома с целочисленными коэффициентами
// на рациональные линейные множители
begin
var oL:=new Factors(-20, 7, 73, -42);
var r:=oL.Factorize;
Writeln('k:=',r[0,1]);
for var i:=1 to r[0,0] do r.Row(i).Println;
end.