import numpy as np
from integration import *


def test_trapezoid():
    func = lambda x: np.sin(x)
    est_I = trapezoid(func, 0, np.pi, 2000)
    true_I = 2.0
    assert np.isclose(est_I, true_I)

a5a989838ae7e70dcb549fa41bc246c13f1ecd4e
<mask token>

<mask token>


def test_trapezoid():
    func = lambda x: np.sin(x)
    est_I = trapezoid(func, 0, np.pi, 2000)
    true_I = 2.0
    assert np.isclose(est_I, true_I)

import numpy as np
from integration import *


def test_trapezoid():
    func = lambda x: np.sin(x)
    est_I = trapezoid(func, 0, np.pi, 2000)
    true_I = 2.0
    assert np.isclose(est_I, true_I)
