Skip to content

Commit 7886a2b

Browse files
fix failed quadrature tests
1 parent 9761850 commit 7886a2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/quadraturetests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import FastTransforms: chebyshevmoments1, chebyshevmoments2,
1919

2020
μ = chebyshevlogmoments1(Float64, N)
2121
w = clenshawcurtisweights(μ)
22-
@test norm(sum(w./(x .- 3)) - π^2/12) 4eps()
22+
@test norm(sum(w./(3 .- x)) - π^2/12) 4eps()
2323

2424
x = fejernodes1(Float64, N)
2525
μ = chebyshevmoments1(Float64, N)
@@ -32,7 +32,7 @@ import FastTransforms: chebyshevmoments1, chebyshevmoments2,
3232

3333
μ = chebyshevlogmoments1(Float64, N)
3434
w = fejerweights1(μ)
35-
@test norm(sum(w./(x .- 3)) - π^2/12) 4eps()
35+
@test norm(sum(w./(3 .- x)) - π^2/12) 4eps()
3636

3737
x = fejernodes2(Float64, N)
3838
μ = chebyshevmoments2(Float64, N)
@@ -45,5 +45,5 @@ import FastTransforms: chebyshevmoments1, chebyshevmoments2,
4545

4646
μ = chebyshevlogmoments2(Float64, N)
4747
w = fejerweights2(μ)
48-
@test norm(sum(w./(x .- 3)) - π^2/12) 4eps()
48+
@test norm(sum(w./(3 .- x)) - π^2/12) 4eps()
4949
end

0 commit comments

Comments
 (0)