@@ -26,7 +26,7 @@ plotlyjs()
26
26
f = (x,y) -> (x^ 2 - y^ 2 + 1 )/ ((x^ 2 - y^ 2 + 1 )^ 2 + (2 x* y+ 1 )^ 2 )
27
27
28
28
# The Zernike polynomial degree:
29
- N = 20
29
+ N = 15
30
30
M = 4 N- 3
31
31
32
32
# The radial grid:
@@ -41,7 +41,7 @@ F = [f(r*cospi(θ), r*sinpi(θ)) for r in r, θ in θ]
41
41
# We superpose a surface plot of $f$ on top of the grid:
42
42
X = [r* cospi (θ) for r in r, θ in θ]
43
43
Y = [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 ))
45
45
surface! (X, Y, F; legend= false , xlabel= " x" , ylabel= " y" , zlabel= " f" )
46
46
47
47
# 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]
95
95
# We superpose a surface plot of $f$ on top of the grid:
96
96
X = [x for x in x, z in z]
97
97
Y = [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 ))
99
99
surface! (X, Y, F; legend= false , xlabel= " x" , ylabel= " y" , zlabel= " f" )
100
100
101
101
# We precompute a Dunkl-Xu--Chebyshev plan:
0 commit comments