from super_material.integrate import (
    IntegrandInterface,
    IntegrandBoundary,
    IntegrandInterval,
)


class ParabolicTestIntegrand(IntegrandInterface):
    def evaluate(self, x: float) -> float:
        return x ** 2

    def interval(self) -> IntegrandInterval:
        start = IntegrandBoundary(0, True)
        end = IntegrandBoundary(4, True)
        interval = IntegrandInterval(start, end)
        return interval

    @staticmethod
    def analytical() -> float:
        return 4 ** 3 / 3

cca0bf77493bdb408767d227c314b845a21ac5d9
<mask token>


class ParabolicTestIntegrand(IntegrandInterface):

    def evaluate(self, x: float) ->float:
        return x ** 2
    <mask token>
    <mask token>

<mask token>


class ParabolicTestIntegrand(IntegrandInterface):

    def evaluate(self, x: float) ->float:
        return x ** 2

    def interval(self) ->IntegrandInterval:
        start = IntegrandBoundary(0, True)
        end = IntegrandBoundary(4, True)
        interval = IntegrandInterval(start, end)
        return interval
    <mask token>

<mask token>


class ParabolicTestIntegrand(IntegrandInterface):

    def evaluate(self, x: float) ->float:
        return x ** 2

    def interval(self) ->IntegrandInterval:
        start = IntegrandBoundary(0, True)
        end = IntegrandBoundary(4, True)
        interval = IntegrandInterval(start, end)
        return interval

    @staticmethod
    def analytical() ->float:
        return 4 ** 3 / 3

from super_material.integrate import IntegrandInterface, IntegrandBoundary, IntegrandInterval


class ParabolicTestIntegrand(IntegrandInterface):

    def evaluate(self, x: float) ->float:
        return x ** 2

    def interval(self) ->IntegrandInterval:
        start = IntegrandBoundary(0, True)
        end = IntegrandBoundary(4, True)
        interval = IntegrandInterval(start, end)
        return interval

    @staticmethod
    def analytical() ->float:
        return 4 ** 3 / 3

from super_material.integrate import (
    IntegrandInterface,
    IntegrandBoundary,
    IntegrandInterval,
)


class ParabolicTestIntegrand(IntegrandInterface):
    def evaluate(self, x: float) -> float:
        return x ** 2

    def interval(self) -> IntegrandInterval:
        start = IntegrandBoundary(0, True)
        end = IntegrandBoundary(4, True)
        interval = IntegrandInterval(start, end)
        return interval

    @staticmethod
    def analytical() -> float:
        return 4 ** 3 / 3
