(
        self, start: XValue[T], stop: XValue[T], transform: Callable[[XValueDiff[T]], float] = lambda x: cast(float, x),
    )
return self.integrals(start, stop, (stop - start), transform).values()[0]
Helper function to compute the integral of the whole specified range

        :param start: lower bound of the integral
        :param stop: upper bound of the integral
        :returns: the integral of the function between start and stop
Helper function to compute the integral of the whole specified range
Helper function to compute the integral of the whole specified range
def integral(
        self, start: XValue[T], stop: XValue[T], transform: Callable[[XValueDiff[T]], float] = lambda x: cast(float, x),
    ) -> float:
        """ Helper function to compute the integral of the whole specified range

        :param start: lower bound of the integral
        :param stop: upper bound of the integral
        :returns: the integral of the function between start and stop
        """
        return self.integrals(start, stop, (stop - start), transform).values()[0]
def integral ( self , start : XValue [ T ] , stop : XValue [ T ] , transform : Callable [ [ XValueDiff [ T ] ] , float ] = lambda x : cast ( float , x ) , ) -> float : return self . integrals ( start , stop , ( stop - start ) , transform ) . values ( ) [ 0 ]