private void SetVX(double time, double vx) { this.vx = vx; vxf = IntegrableFunction <double, double> .SplitAt(vxf, time, (PolyFunc <double, double>) vx, false); xp = t => x0 + vxf.FI(t); }
public static void Main() { PolyFunc <double, double> l1 = new PolyFunc <double, double>(1); PolyFunc <double, double> l2 = new PolyFunc <double, double>(2); IntegrableFunction <double, double> split = IntegrableFunction <double, double> .SplitAt(l1, 2, l2, false); for (double d = 0; d < 5; d += 0.1) { Console.WriteLine("<{0},{1},{2},{3},{4}>", d, l1.F(d), l2.F(d), split.F(d), split.FI(d)); } Console.ReadKey(); }