def main():
    n = int(sys.argv[1])
    time_rect = rectangle_time(n)
    time_trap = trapeze_time(n)
    time_simp = simpson_time(n)
    dict_rect = calc_dict(time_rect, 'Rectangles')
    dict_trap = calc_dict(time_trap, 'Trapezoids')
    dict_simp = calc_dict(time_simp, 'Simpson')
    preci_rect = (calcul_rectangles(n) - (pi / 2))
    preci_trap = (calcul_trapezoïds(n) - (pi / 2))
    preci_simp = (calcul_simpson(n) - (pi / 2))
    sys.stdout = save
    print('{}Compute time:\n{}'.format(cyan, white))
    print('Method : {}\t: {}{:.6f}{} sec'.format(dict_rect.get('Name'), red, dict_rect.get('Value'), white))
    print('Method : {}\t: {}{:.6f}{} sec'.format(dict_trap.get('Name'), red, dict_trap.get('Value'), white))
    print('Method : {}\t: {}{:.6f}{} sec'.format(dict_simp.get('Name'), red, dict_simp.get('Value'), white))
    min_time = get_min_time(dict_rect, dict_trap, dict_simp)
    print('The fastest Method is:', end='')
    print(green, end='')
    if (min_time == 1):
        print('\tRectangles Method')
    elif (min_time == 2):
        print('\tTrapezoids Method')
    else:
        print('\tSimpson Method')
    print(white, end='')
    print('\n{}Relative precision:\n{}'.format(cyan, white))
    print('Method : {}\t: {}{}{} a.u.'.format(dict_rect.get('Name'), red, preci_rect, white))
    print('Method : {}\t: {}{}{} a.u.'.format(dict_trap.get('Name'), red, preci_trap, white))
    print('Method : {}\t: {}{}{} a.u.'.format(dict_simp.get('Name'), red, preci_simp, white))
    preci = get_min_precision(preci_rect, preci_trap, preci_simp)
    print('The most accurate:', end='')
    print(green, end='')
    if (preci == 1):
        print('\tRectangles Method')
    elif (preci == 2):
        print('\tTrapezoids Method')
    else:
        print('\tSimpson Method')
    print(white, end='')
def main():
    n = int(sys.argv[1])
    time_rect = rectangle_time(n)
    time_trap = trapeze_time(n)
    time_simp = simpson_time(n)
    dict_rect = calc_dict(time_rect, 'Rectangles')
    dict_trap = calc_dict(time_trap, 'Trapezoids')
    dict_simp = calc_dict(time_simp, 'Simpson')
    preci_rect = (calcul_rectangles(n) - (pi / 2))
    preci_trap = (calcul_trapezoïds(n) - (pi / 2))
    preci_simp = (calcul_simpson(n) - (pi / 2))
    sys.stdout = save
    print('{}Compute time:\n{}'.format(cyan, white))
    print('Method : {}\t: {}{:.6f}{} sec'.format(dict_rect.get('Name'), red, dict_rect.get('Value'), white))
    print('Method : {}\t: {}{:.6f}{} sec'.format(dict_trap.get('Name'), red, dict_trap.get('Value'), white))
    print('Method : {}\t: {}{:.6f}{} sec'.format(dict_simp.get('Name'), red, dict_simp.get('Value'), white))
    min_time = get_min_time(dict_rect, dict_trap, dict_simp)
    print('The fastest Method is:', end=)
    print(green, end=)
    if (min_time == 1):
        print('\tRectangles Method')
    elif (min_time == 2):
        print('\tTrapezoids Method')
    else:
        print('\tSimpson Method')
    print(white, end=)
    print('\n{}Relative precision:\n{}'.format(cyan, white))
    print('Method : {}\t: {}{}{} a.u.'.format(dict_rect.get('Name'), red, preci_rect, white))
    print('Method : {}\t: {}{}{} a.u.'.format(dict_trap.get('Name'), red, preci_trap, white))
    print('Method : {}\t: {}{}{} a.u.'.format(dict_simp.get('Name'), red, preci_simp, white))
    preci = get_min_precision(preci_rect, preci_trap, preci_simp)
    print('The most accurate:', end=)
    print(green, end=)
    if (preci == 1):
        print('\tRectangles Method')
    elif (preci == 2):
        print('\tTrapezoids Method')
    else:
        print('\tSimpson Method')
    print(white, end=)