Message Boards Message Boards

0
|
3889 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Why does FourierSeries[] return the input?

Posted 2 years ago

Why doesn't this work?

freq = 10.0*^6

FourierSeries[SquareWave[freq*t], t, 5]

All Mathematica does is throw my expression back at me.

Thanks.

POSTED BY: Roger Backhus
2 Replies
Posted 2 years ago

Perhaps because the frequency is so high that 5 terms are insufficient?

s[t_] := FourierSinSeries[SquareWave[t], t, 5, FourierParameters -> {1, 2 Pi}];

Plot[Evaluate@fs[t], {t, 0, 2 Pi}]

enter image description here

POSTED BY: Rohit Namjoshi

Perhaps the frequency is too high and there is trouble splitting the interval into so many subintervals. Compare

PiecewiseExpand[SquareWave[10*t], 0 < t < 2 Pi]
PiecewiseExpand[SquareWave[20*t], 0 < t < 2 Pi]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract