pascalabcnet/InstallerSamples/Graphics/GraphWPF/DrawGraphic.pas
Бондарев Иван fb60f8884d bug fix #585
2017-12-17 12:40:06 +01:00

11 lines
367 B
ObjectPascal

uses GraphWPF;
begin
Window.Title := 'Графики функций';
var ww := Window.Width / 2;
var hh := Window.Height / 2;
DrawGraph(x -> sin(4 * x) + cos(3 * x), -5, 5, 0, 0, ww, hh);
DrawGraph(x -> x * x, -5, 5, ww - 1, 0, ww, hh);
DrawGraph(x -> exp(x), -5, 5, 0, hh-1, ww, hh);
DrawGraph(x -> x*cos(2*x-1), -5, 5, ww - 1, hh-1, ww, hh);
end.