mpmath
mpmath copied to clipboard
quadsing: quadrature for integrals with (fractional power like) singalarities at endpoints
Hi.
mpmath's quad is surprisingly bad at integrating something like quad(lambda x: x**(-99999999/mpf(100000000)), [0, 1])
I added the function function quadsing which can handle such integrals. The function works reasonably well for power-like singularities x**e with complex exponent e at endpoints.
Greetings Timo
Edit: The check was not successful because 3.10-dev could not build gmpy as dependency...
@thartmann15, you can cherry-pick from #601 to fix gmpy2 problem.
Hi. I have cherry-picked the fix.
Edit: the routines which failed pytest-3 are test_quad.py::test_expmath_fail test_matrices.py::test_interval_matrix_matrix_mult
Please add more tests to cover remaining lines.
more code coverage tests added
@thartmann15, could you please fix merge conflicts?
@thartmann15, I'm closing this. Feel free reopen the pr if you wish to continue this work.