Takes the Chebyshev interpolation coefficients and returns the corresponding function samples.
Supported Product: FDTD, MODE, INTERCONNECT, DEVICE
Returns function samples from Chebyshev interpolation coefficients coeff.
If option=1 is selected, the vector x will not include the endpoints
If option=2 is selected, the vector x will include the endpoints
This example shows how to obtain interpolation coefficients from a sampled function and then calculate back the function samples from the coefficients.
Nc = 15; # Number of sample points
xmin = 0;
xmax = 1;
x = chpts(xmin,xmax,Nc,1); # Returns Chebyshev roots grid on interval between xmin and xmax
f = exp(1i*2*pi*x); # Function sampling using Chebyshev grid
coeff = dcht(f,1); # Get interpolation coefficients
# Calculate the function samples from the coefficients and compare them to the original function samples