#!/usr/bin/python3

import numpy as np
import matplotlib.pyplot as plt
import math as math
import mysearch as mys


#Q3b
def f(x):
    return x-np.cos(x)


a=0
b=1
tol=0.0001
x=mys.bisection(f,a,b,tol)
print('Zero found at',x)
