示例#1
0
        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);
        }
示例#2
0
        private void SetVY(double time, double vy)
        {
            this.vy = vy;
            vyf     = IntegrableFunction <double, double> .SplitAt(vyf, time, (PolyFunc <double, double>) vy, false);

            yp = t => y0 + vyf.FI(t);
        }
示例#3
0
        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();
        }