The function definition should be given as an array. [ [f(t1), t1, t2] , [f(t2), t2, t3] , ...[f(tn), tn, tn+1] ]
Where... f(t1) is the function definition for t1 < t < t2 f(t2) is the function definition for t2 < t < t3
Total period of the function is given by [ tn+1 - t1 ]
[n]
This parameter indicates what to return. n > 0 returns the indicated number of coefficients (from 0 to n for trigonometric series and from -n to +n for complex form). n <= 0 returns only the single coefficient with number n (or +n and -n for complex form).
[mode]
This optional parameter indicates if the result should be given as a trigonometric series or in complex form. mode = 0 returns trigonometric series. This is the default mode. mode = 1 returns the complex form.