WOLFRAM

FourierSeries`
FourierSeries`

NFourierSeries

NFourierSeries[expr,t,n]

gives a numerical approximation to the order n Fourier exponential series expansion of expr, where expr is a periodic function of t with period 2π.

Details and Options

Examples

Basic Examples  (1)Summary of the most common use cases

Numerical approximation for an exponential Fourier series:

Out[2]=2
Out[3]=3

Compare with a plot of the original periodic function:

Out[4]=4