from integration_methods.rectangular import rectangular
from integration_methods.trapezoidal import trapezoidal


def trapezoidal_test_func():
    exact = 44
    v = lambda x: 2*x**3
    n = 2
    numerical = trapezoidal(v, 1., 3, n)
    error = abs(exact - numerical)
    print ('error: ', error)

def rectangular_test_func():
    exact = 33.5
    v = lambda x: 2 * x ** 3
    n = 2
    numerical = rectangular(v, 1., 3, n)
    error = abs(exact - numerical)
    print ('error: ', error)
8c177c6502f3cac34f384d667329862ec83fdf28
<mask token>

<mask token>


def trapezoidal_test_func():
    exact = 44
    v = lambda x: 2 * x ** 3
    n = 2
    numerical = trapezoidal(v, 1.0, 3, n)
    error = abs(exact - numerical)
    print('error: ', error)


<mask token>

<mask token>


def trapezoidal_test_func():
    exact = 44
    v = lambda x: 2 * x ** 3
    n = 2
    numerical = trapezoidal(v, 1.0, 3, n)
    error = abs(exact - numerical)
    print('error: ', error)


def rectangular_test_func():
    exact = 33.5
    v = lambda x: 2 * x ** 3
    n = 2
    numerical = rectangular(v, 1.0, 3, n)
    error = abs(exact - numerical)
    print('error: ', error)

from integration_methods.rectangular import rectangular
from integration_methods.trapezoidal import trapezoidal


def trapezoidal_test_func():
    exact = 44
    v = lambda x: 2 * x ** 3
    n = 2
    numerical = trapezoidal(v, 1.0, 3, n)
    error = abs(exact - numerical)
    print('error: ', error)


def rectangular_test_func():
    exact = 33.5
    v = lambda x: 2 * x ** 3
    n = 2
    numerical = rectangular(v, 1.0, 3, n)
    error = abs(exact - numerical)
    print('error: ', error)

from integration_methods.rectangular import rectangular
from integration_methods.trapezoidal import trapezoidal


def trapezoidal_test_func():
    exact = 44
    v = lambda x: 2*x**3
    n = 2
    numerical = trapezoidal(v, 1., 3, n)
    error = abs(exact - numerical)
    print ('error: ', error)

def rectangular_test_func():
    exact = 33.5
    v = lambda x: 2 * x ** 3
    n = 2
    numerical = rectangular(v, 1., 3, n)
    error = abs(exact - numerical)
    print ('error: ', error)