We should have a bit better handling of singular points in the analytic solutions.
At the very least:
- Create a SingularWarning class issued if any of the functions try to evaluate at known singular points. (i.e. when evaluating points directly at source locations.) We should also include in the message, where this happened if possible.
Inside the functions we should probably:
- Temporarily replace the singular points with something that won't be singular
- Then before returning, insert $\pm\infty$ back into those singular points if those points are infinite, or nan if that isn't the case.
I don't think filling them with zeros is a good practice, but issuing better warnings will be greatly helpful.
We should have a bit better handling of singular points in the analytic solutions.
At the very least:
Inside the functions we should probably:
I don't think filling them with zeros is a good practice, but issuing better warnings will be greatly helpful.