public static void Plot(Expression f, Variable x, Constant x0, Constant x1) { ComputerAlgebra.Plotting.Plot p = new ComputerAlgebra.Plotting.Plot() { x0 = (double)x0, x1 = (double)x1, Title = f.ToString(), xLabel = x.ToString(), }; foreach (Expression i in Set.MembersOf(f)) p.Series.Add(new ComputerAlgebra.Plotting.Function(ExprFunction.New(i, x)) { Name = i.ToString() }); }
public static void Plot(Expression f, Variable x, Constant x0, Constant x1) { ComputerAlgebra.Plotting.Plot p = new ComputerAlgebra.Plotting.Plot() { x0 = (double)x0, x1 = (double)x1, Title = f.ToString(), xLabel = x.ToString(), }; foreach (Expression i in Set.MembersOf(f)) { p.Series.Add(new ComputerAlgebra.Plotting.Function(ExprFunction.New(i, x)) { Name = i.ToString() }); } }