I have been trying to find the root of a mathematical function using a python function from this package - newton raphson (https://quanteconpy.readthedocs.io/en/latest/optim