We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 441f970 commit 2ad9378Copy full SHA for 2ad9378
src/Spaces/Ultraspherical/DirichletSpace.jl
@@ -191,7 +191,7 @@ function _getindex_eval_leftendpoint(B::ConcreteEvaluation{<:ChebyshevDirichlet{
191
S = Space(domain(B))
192
193
if B.order == 0
194
- eltype(B)[k==1 ? 1.0 : -(-1)^k*2.0 for k=kr]
+ eltype(B)[k==1 ? 1.0 : (iseven(k) ? -2.0 : 2.0) for k=kr]
195
else
196
_getindex_default(B, x, kr)
197
end
0 commit comments