interpolations.py
def find_interp_index(x0: float, x: list):
        """
        Finding out the right indexes of x0 value in the x list,
            so that we can then interpolate from list almost instantly
        """

        # Searching for the index whose value is less than the x0 value,
        #   but the further index is already bigger than the x0 value
        idx = 0
        while x[idx] < x0:
            idx += 1

        return idx - 1

        Finding out the right indexes of x0 value in the x list,
            so that we can then interpolate from list almost instantly
        
Finding out the right indexes of x0 value in the x list,
so that we can then interpolate from list almost instantly
Finding out the right indexes of x0 value in the x list so that we can then interpolate from list almost instantly
def find_interp_index(x0: float, x: list):
        idx = 0
        while x[idx] < x0:
            idx += 1
        return idx - 1
def find_interp_index ( x0 : float , x : list ) : idx = 0 while x [ idx ] < x0 : idx += 1 return idx - 1
Finding out the right indexes of x0 value in the x list,
so that we can then interpolate from list almost instantly
Finding out the right indexes of x0 value in the x list so that we can then interpolate from list almost instantly
"""
        Finding out the right indexes of x0 value in the x list,
            so that we can then interpolate from list almost instantly
        """ # Searching for the index whose value is less than the x0 value, #   but the further index is already bigger than the x0 value
x0
float
x
list