File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 88# We analyze the function on an $N\times M$ tensor product grid defined by:
99# ```math
1010# \begin{aligned}
11- # r_n & = \cos\left[(n+\tfrac{1}{2})\pi/2N\right],\quad{\rm for} 0\le n < N,\quad{\rm and}\\
11+ # r_n & = \cos\left[(n+\tfrac{1}{2})\pi/2N\right],\quad{\rm for}\quad 0\le n < N,\quad{\rm and}\\
1212# \theta_m & = 2\pi m/M,\quad{\rm for}\quad 0\le m < M;
1313# \end{aligned}
1414# ```
Original file line number Diff line number Diff line change @@ -8,13 +8,11 @@ using FastTransforms
88N = 15
99pts = paduapoints (N)
1010x = pts[:,1 ]
11- y = pts[:,2 ]
12- nothing # hide
11+ y = pts[:,2 ];
1312
1413# We take the Padua transform of the function:
1514f = (x,y) -> exp (x + cos (y))
16- f̌ = paduatransform (f .(x , y))
17- nothing # hide
15+ f̌ = paduatransform (f .(x , y));
1816
1917# and use the coefficients to create an approximation to the function $f$:
2018f̃ = (x,y) -> begin
You can’t perform that action at this time.
0 commit comments