public static void plot(System.Func <double, double> fx, double XMin = -5, double XMax = 5, double YMin = -5, double YMax = 5, double quality = 0.5) { var function = new Computator.NET.DataTypes.Functions.Function(fx, Computator.NET.DataTypes.Functions.FunctionType.Real2D); plot(function, XMin, XMax, YMin, YMax, quality); }
public static void plot(Computator.NET.DataTypes.Functions.Function f, double XMin = -5, double XMax = 5, double YMin = -5, double YMax = 5, double quality = 0.5) { var chart = _chartFactory.Create(f.FunctionType); chart.SetChartAreaValues(XMin, XMax, YMin, YMax); chart.Quality = quality * 100; chart.AddFunction(f); chart.ShowPlotDialog(); }
public static void plot(System.Func <System.Numerics.Complex, System.Numerics.Complex> fz, double XMin = -5, double XMax = 5, double YMin = -5, double YMax = 5, double quality = 0.5) { var function = new Computator.NET.DataTypes.Functions.Function(fz, Computator.NET.DataTypes.Functions.FunctionType.Complex); plot(function, XMin, XMax, YMin, YMax, quality); }