Please solve the Jupyter using Python code.
Write a function called falsePosition that takes the following inputs:
- The equation whose root is to be determined
- xl: the lower bound of the search interval
- xu: the upper bound of the search interval
- eTolerance: the error tolerance in percentages
- maxlteration: the maximum number of iterations
It then returns a Pandas DataFrame called "result" which contains the results from all iterations and has the following columns:
- iteration: the iteration number
- xl: the lower bound of the search interval
- xu: the upper bound of the search interval
- xr: the new root
- relative error: the calculated relative error
Your function needs to compute the root iteratively using the False position method until the error tolerance condition has been met or the number of iterations has exceeded the maximum number of iterations.
Using the False position method, the new root, x, is computed as:
x = xu - (f(xu) * (xl - xu)) / (f(xl) - f(xu))
def falsePosition(func, xl, xu, tolerance, max_iterations):