Skip to content

Commit 51f9b20

Browse files
committed
fix edge case with M1
1 parent d82d2f3 commit 51f9b20

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/logkernelsquare.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function m_const(k, z)
3434
end
3535

3636
M0(z) = L0(-im*float(z)) + m_const(0, float(z))
37-
M1(z, r0=L0(-im*z)) = L1(-im*float(z), r0) + m_const(1, float(z))
37+
M1(z, r0=L0(-im*float(z))) = L1(-im*float(z), r0) + m_const(1, float(z))
3838

3939

4040
"""

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
using MultivariateSingularIntegrals, QuadGK, ClassicalOrthogonalPolynomials, LinearAlgebra, DoubleFloats, Test
2+
import MultivariateSingularIntegrals: M1
23

4+
@testset "L and M" begin
5+
@test M1(-2im) M1(-2im+eps()) M1(-2im-eps())
6+
end
37

48
= (2.0, 2.0im, 2.0+2im, 2.0-2im, -2.0 - 2im)
59
Z = (2, 2im, 2+2im, 2-2im, -2 - 2im, -1.001-1.5im, -0.999-1.5im, -0.5-2im, -1-1.5im, -2+2im, -2, 0.1+0.2im, 0.1+im, 0.1-im, 1+0.1im, -1+0.1im, 1+im, -1+im, -1-im, 1-im)

0 commit comments

Comments
 (0)