@@ -26,7 +26,7 @@ plotlyjs()
2626f = (x,y) -> (x^ 2 - y^ 2 + 1 )/ ((x^ 2 - y^ 2 + 1 )^ 2 + (2 x* y+ 1 )^ 2 )
2727
2828# The Zernike polynomial degree:
29- N = 20
29+ N = 15
3030M = 4 N- 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:
4242X = [r* cospi (θ) for r in r, θ in θ]
4343Y = [r* sinpi (θ) for r in r, θ in θ]
44- scatter3d (vec (X), vec (Y), vec (0 X ); markersize= 0.75 , markercolor= :red , size= (1000 , 1000 ))
44+ scatter3d (vec (X), vec (Y), vec (0 F ); markersize= 0.75 , markercolor= :red , size= (1000 , 1000 ))
4545surface! (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:
9696X = [x for x in x, z in z]
9797Y = [w* z for w in w, z in z]
98- scatter3d (vec (X), vec (Y), vec (0 X ); markersize= 0.75 , markercolor= :green , size= (1000 , 1000 ))
98+ scatter3d (vec (X), vec (Y), vec (0 F ); markersize= 0.75 , markercolor= :green , size= (1000 , 1000 ))
9999surface! (X, Y, F; legend= false , xlabel= " x" , ylabel= " y" , zlabel= " f" )
100100
101101# We precompute a Dunkl-Xu--Chebyshev plan:
0 commit comments