Skip to content

Commit 53ec4b0

Browse files
allow symmetry to transcend numerics in Fejer's second-kind nodes
1 parent 2f49f83 commit 53ec4b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/fejer.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plan_fejer1(μ) = FFTW.plan_r2r!(μ, FFTW.REDFT01)
22

3-
43
"""
54
Compute nodes of Fejer's first quadrature rule.
65
"""
@@ -23,7 +22,7 @@ plan_fejer2(μ) = FFTW.plan_r2r!(μ, FFTW.RODFT00)
2322
"""
2423
Compute nodes of Fejer's second quadrature rule.
2524
"""
26-
fejernodes2(::Type{T}, N::Int) where T = T[cospi((k+one(T))/(N+one(T))) for k=0:N-1]
25+
fejernodes2(::Type{T}, N::Int) where T = T[sinpi((N-2k-one(T))/(2N+two(T))) for k=0:N-1]
2726

2827
"""
2928
Compute weights of Fejer's second quadrature rule with modified Chebyshev moments of the second kind ``\\mu``.

0 commit comments

Comments
 (0)