Skip to content

Commit 9b1d77a

Browse files
reduce the grid size
1 parent 04008f6 commit 9b1d77a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/disk.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ plotlyjs()
2626
f = (x,y) -> (x^2-y^2+1)/((x^2-y^2+1)^2+(2x*y+1)^2)
2727

2828
# The Zernike polynomial degree:
29-
N = 20
29+
N = 15
3030
M = 4N-3
3131

3232
# The radial grid:
@@ -41,7 +41,7 @@ F = [f(r*cospi(θ), r*sinpi(θ)) for r in r, θ in θ]
4141
# We superpose a surface plot of $f$ on top of the grid:
4242
X = [r*cospi(θ) for r in r, θ in θ]
4343
Y = [r*sinpi(θ) for r in r, θ in θ]
44-
scatter3d(vec(X), vec(Y), vec(0X); markersize=0.75, markercolor=:red, size=(1000, 1000))
44+
scatter3d(vec(X), vec(Y), vec(0F); markersize=0.75, markercolor=:red, size=(1000, 1000))
4545
surface!(X, Y, F; legend=false, xlabel="x", ylabel="y", zlabel="f")
4646

4747
# We precompute a (generalized) Zernike--Chebyshev×Fourier plan:
@@ -95,7 +95,7 @@ F = [f(x[n], w[n]*z) for n in 1:N, z in z]
9595
# We superpose a surface plot of $f$ on top of the grid:
9696
X = [x for x in x, z in z]
9797
Y = [w*z for w in w, z in z]
98-
scatter3d(vec(X), vec(Y), vec(0X); markersize=0.75, markercolor=:green, size=(1000, 1000))
98+
scatter3d(vec(X), vec(Y), vec(0F); markersize=0.75, markercolor=:green, size=(1000, 1000))
9999
surface!(X, Y, F; legend=false, xlabel="x", ylabel="y", zlabel="f")
100100

101101
# We precompute a Dunkl-Xu--Chebyshev plan:

0 commit comments

Comments
 (0)