This might be a simple question, but I am trying to increase number of nodes in quad integration. I could not find relevant documentation about this.
I have a one-dimensional function (Dirac delta-like) which is mostly zero, but non-zero at a very narrow interval. So adaptive quad cannot catch that interval and returns zero. I am trying to catch that peak by sampling at more points. How do you do this? SciPy documentation does not tell much.
The position of this narrow peak changes. I don't know the exact position of the peak.