I have the following existing code:
integrate.quad(somefunc, lowerbound, upperbound)
However I want to change this to
integrate.quad(1/somefunc, lowerbound, upperbound)
but I get operand errors. Is there a way I can do this without changing somefunc?