problem 1) Given two non-linear functions, f(x) and g(x) find:
• the point (x,y) of their intersection, that is, solve for f(x) = g(x), over an interval (a,b)
The intersection of nonlinear functions could not be handled analytically; solutions are arrived at by iteratively adjusting the trial value of x systematically until the point of intersection is discovered, within some small tolerance. One scheme to solve system is form a new function h=f-g, and solve h for the root x0 substituting root value back into either f or g to get the corresponding y0.
Your task is to use the method of bisection to determine the point of intersection. Stop iterating when |Xn-Xn+1|
iteration# x h(x) f(x)-g(x) h'(x)
where h'(x)=[ h(x+dx)-h(x)]/ dx, where dx=0.001.