powered by
Generates sin(pi*j*(1:n)/n) (odd) and cos(pi*j*(1:n)/n) (even) for j=1,...,m for a given sample size n.
fgentrig(n,m)
x The functions sin(pi*j*(1:n)/n) (odd) and cos(pi*j*(1:n)/n) (even) for j=1,...,m.
Sample size
Maximum order of sine and cosine functions
trig<-fgentrig(36,36)
Run the code above in your browser using DataLab