public Point Task3(Form form, Point location, double[] x, double[] y, double delta) { double[] xs = Range.Make(x.First(), x.Last(), delta); double[] poly2 = Poly.Fit(x, y, 2); double[] ys2 = Poly.Val(poly2, xs); double[] poly3 = Poly.Fit(x, y, 3); double[] ys3 = Poly.Val(poly3, xs); Plot plot = new Plot(); plot.PlotSignalXY(x, y); plot.PlotSignalXY(xs, ys2); plot.PlotSignalXY(xs, ys3); return(plot.AddToForm(form, location)); }