Skip to content

Commit 96bd52c

Browse files
committed
Updated calc of cheb points kind=2 from comments on PR
1 parent 3bf9c40 commit 96bd52c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/chebyshevtransform.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ function chebyshevpoints(::Type{T}, n::Integer; kind::Int=1) where T<:Number
294294
if n == 1
295295
zeros(T,1)
296296
else
297-
m = n - 1
298-
T[sinpi(k/(T(2)*m)) for k=m:-2:-m]
297+
T[sinpi((n-2k-one(T))/(2n-2)) for k=0:n-1]
299298
end
300299
else
301300
throw(ArgumentError("kind $kind not a valid kind of Chebyshev points"))

0 commit comments

Comments
 (0)