# -*- coding: utf-8 -*-
"""
Created on Sat Aug  6 12:36:27 2022

@author: Chris

Lab 2 Question 3b
"""

import numpy as np
import mysearch as mys
def f(x):
    f = x - np.cos(x)
    return f
a = 0
b = 1
tol = 0.0001
x = mys.bisection(f,a,b,tol)
print('Zero found at',x)
    

