Skip to content

Commit b2cd0e8

Browse files
update indexing
1 parent f0b71c6 commit b2cd0e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/halfrange.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ savefig(joinpath(GENFIGS, "halfrange.html"))
6363
###```
6464

6565
# By [Theorem 2.20](https://arxiv.org/abs/2302.08448) it turns out that the *derivatives* of the half-range Chebyshev polynomials are a linear combination of at most two polynomials orthogonal with respect to $\sqrt{(3+y)(1-y)}(1+y)$ on $(-1,1)$. This fact enables us to compute the banded differentiation matrix:
66-
= 3*[u; 0]+XP[1:N+1, 1:N]*u
66+
= 3*[u; 0]+XP[1:N+2, 1:N+1]*u
6767
v = jac2jac(v̂, -0.5, 0.0, 0.5, 1.0; norm1 = true, norm2 = true)
6868
function threshold!(A::AbstractArray, ϵ)
6969
for i in eachindex(A)

0 commit comments

Comments
 (0)