rk4odes/rk4.py
def solve(self, ti, yi, t, h=0.001):
        """
        Solution of the first-order ordinary differential equation

        Parameters
        ----------
        ti : Value of the initial t
        yi : Value of the initial y
        t : Value that you want to evaluate in the equation
        h : Integration step

        Return
        ------
        y : Value of "y" for "t" desired
        """

        self.empty_vals()

        vals = list(firstorder.rk4(self.f, ti, yi, t, h))
        self.ys = [vals[i][0] for i in range(len(vals))]
        self.ts = [vals[i][1] for i in range(len(vals))]

        return self.ys[len(self.ys) - 1]

        Solution of the first-order ordinary differential equation

        Parameters
        ----------
        ti : Value of the initial t
        yi : Value of the initial y
        t : Value that you want to evaluate in the equation
        h : Integration step

        Return
        ------
        y : Value of "y" for "t" desired
        
Solution of the first-order ordinary differential equation
Parameters

ti : Value of the initial t
yi : Value of the initial y
t : Value that you want to evaluate in the equation
h : Integration step

Return

y : Value of "y" for "t" desired
Solution of the first - order ordinary differential equation Parameters ti : Value of the initial t yi : Value of the initial y t : Value that you want to evaluate in the equation h : Integration step Return y : Value of " y " for " t " desired
def solve(self, ti, yi, t, h=0.001):
        self.empty_vals()
        vals = list(firstorder.rk4(self.f, ti, yi, t, h))
        self.ys = [vals[i][0] for i in range(len(vals))]
        self.ts = [vals[i][1] for i in range(len(vals))]
        return self.ys[len(self.ys) - 1]
def solve ( self , ti , yi , t , h = 0.001 ) : self . empty_vals ( ) vals = list ( firstorder . rk4 ( self . f , ti , yi , t , h ) ) self . ys = [ vals [ i ] [ 0 ] for i in range ( len ( vals ) ) ] self . ts = [ vals [ i ] [ 1 ] for i in range ( len ( vals ) ) ] return self . ys [ len ( self . ys ) - 1 ]
Solution of the first-order ordinary differential equation
Parameters
Solution of the first - order ordinary differential equation Parameters
"""
        Solution of the first-order ordinary differential equation

        Parameters
        ----------
        ti : Value of the initial t
        yi : Value of the initial y
        t : Value that you want to evaluate in the equation
        h : Integration step

        Return
        ------
        y : Value of "y" for "t" desired
        """
self
ti
yi
t
h