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 8
8
# We analyze the function on an $N\times M$ tensor product grid defined by:
9
9
# ```math
10
10
# \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}\\
12
12
# \theta_m & = 2\pi m/M,\quad{\rm for}\quad 0\le m < M;
13
13
# \end{aligned}
14
14
# ```
Original file line number Diff line number Diff line change @@ -8,13 +8,11 @@ using FastTransforms
8
8
N = 15
9
9
pts = paduapoints (N)
10
10
x = pts[:,1 ]
11
- y = pts[:,2 ]
12
- nothing # hide
11
+ y = pts[:,2 ];
13
12
14
13
# We take the Padua transform of the function:
15
14
f = (x,y) -> exp (x + cos (y))
16
- f̌ = paduatransform (f .(x , y))
17
- nothing # hide
15
+ f̌ = paduatransform (f .(x , y));
18
16
19
17
# and use the coefficients to create an approximation to the function $f$:
20
18
f̃ = (x,y) -> begin
You can’t perform that action at this time.
0 commit comments