Exemplo n.º 1
0
        public virtual Vec2d GetSecondDerivative(double t)
        {
            UnaryFunction fdx = Derivative.Central(tt => this.GetPosition(tt).X, 2, 5);
            UnaryFunction fdy = Derivative.Central(tt => this.GetPosition(tt).Y, 2, 5);

            return(new Vec2d(fdx(t), fdy(t)));
        }
Exemplo n.º 2
0
        protected virtual Vec2d GetFirstDerivative(int index, double t)
        {
            UnaryFunction fdx = Derivative.Central(tt => this.GetPosition(index, tt).X, 1, 5);
            UnaryFunction fdy = Derivative.Central(tt => this.GetPosition(index, tt).Y, 1, 5);

            return(new Vec2d(fdx(t), fdy(t)));
        }
Exemplo n.º 3
0
        protected virtual Vector2d GetThirdDerivative(int key, double dt)
        {
            UnaryFunction fdx = Derivative.Central(tt => this.GetPosition(key, tt).X, 3, 5);
            UnaryFunction fdy = Derivative.Central(tt => this.GetPosition(key, tt).Y, 3, 5);

            return(new Vector2d(fdx(dt), fdy(dt)));
        }
Exemplo n.º 4
0
        public virtual Vec2d GetThirdDerivative(double t)
        {
            throw new NotImplementedException();
            UnaryFunction fdx = Derivative.Central(tt => this.GetPosition(tt).X, 3, 5);
            UnaryFunction fdy = Derivative.Central(tt => this.GetPosition(tt).Y, 3, 5);

            return(new Vec2d(fdx(t), fdy(t)));
        }
Exemplo n.º 5
0
        protected virtual double GetThirdDerivative(int key, double dt)
        {
            UnaryFunction fdx = Derivative.Central(tt => this.GetPosition(key, tt), 3, 5);

            return(fdx(dt));
        }
Exemplo n.º 6
0
        protected virtual double GetSecondDerivative(int index, double t)
        {
            UnaryFunction fdx = Derivative.Central(tt => this.GetPosition(index, tt), 2, 5);

            return(fdx(t));
        }
Exemplo n.º 7
0
        public virtual double GetThirdDerivative(double t)
        {
            UnaryFunction fdx = Derivative.Central(tt => this.GetPosition(tt), 3, 5);

            return(fdx(t));
        }