Interface FirstOrderDifferentialEquations

    • Method Detail

      • computeDerivatives

        default double[] computeDerivatives​(double t,
                                            double[] y)
        Deprecated.
        Get the current time derivative of the state vector.

        The default implementation calls computeDerivatives(double, double[], double[]).

        Specified by:
        computeDerivatives in interface OrdinaryDifferentialEquation
        Parameters:
        t - current value of the independent time variable
        y - array containing the current value of the state vector
        Returns:
        time derivative of the state vector
      • computeDerivatives

        void computeDerivatives​(double t,
                                double[] y,
                                double[] yDot)
                         throws MathIllegalArgumentException,
                                MathIllegalStateException
        Deprecated.
        Get the current time derivative of the state vector.
        Parameters:
        t - current value of the independent time variable
        y - array containing the current value of the state vector
        yDot - placeholder array where to put the time derivative of the state vector
        Throws:
        MathIllegalStateException - if the number of functions evaluations is exceeded
        MathIllegalArgumentException - if arrays dimensions do not match equations settings