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

11 lines
274 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 p:=new Polynom(-609, -283 ,294, -38, -5,1);
var oL:=new PolRt(p);
if oL.ier=0 then oL.Value.Println
else Writeln('Ошибка: ier=',oL.ier);
end.