(self, xval: XValue[T], delta: float)
Modify the function value for x >= xval

        Let f(x) be the original function; After calling this method,
        the function will be modified to f'(x) = f(x) + delta for all x >= xval

        :param xval: the x-position of the breakpoint to add/modify
        :param delta: the amount to shift the function value by at xval
Modify the function value for x >= xval
Modify the function value for x > = xval
def add_delta(self, xval: XValue[T], delta: float) -> None:
        """ Modify the function value for x >= xval

        Let f(x) be the original function; After calling this method,
        the function will be modified to f'(x) = f(x) + delta for all x >= xval

        :param xval: the x-position of the breakpoint to add/modify
        :param delta: the amount to shift the function value by at xval
        """
        if delta == 0:
            return

        if xval not in self.breakpoints:
            self.breakpoints[xval] = self.call(xval)

        for x in self.breakpoints.irange(xval):
            self.breakpoints[x] += delta

        self.values.cache_clear()
        self.integrals.cache_clear()
def add_delta ( self , xval : XValue [ T ] , delta : float ) -> None : if delta == 0 : return if xval not in self . breakpoints : self . breakpoints [ xval ] = self . call ( xval ) for x in self . breakpoints . irange ( xval ) : self . breakpoints [ x ] += delta self . values . cache_clear ( ) self . integrals . cache_clear ( )