NFourierSeries


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

DetailsDetails

  • To use , you first need to load the Fourier Series Package using Needs["FourierSeries`"].
  • The numerical approximation to the order n Fourier exponential series expansion of expr is by default defined to be , where is given by NIntegrate[expr -kt, {t, -, }].
  • Different choices for the period of expr can be specified using the option FourierParameters.
  • With the setting FourierParameters->{a, b}, expr is assumed to have a period of , and the order n Fourier exponential series expansion computed by is , where is given by NIntegrate[expr -bkt, {t, -, }].
  • In addition to the option FourierParameters, can also accept the options available to NIntegrate. These options are passed directly to NIntegrate.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input

Numerical approximation for an exponential Fourier series:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Compare with a plot of the original periodic function:

In[4]:=
Click for copyable input
Out[4]=
New to Mathematica? Find your learning path »
Have a question? Ask support »