Author |
Message |
Blocks Novice

Joined: Jul 13 2006 Posts: 95 Location: California Offline
|
Posted: Tue Oct 16, 2007 4:21 am Post maybe stupid Post subject: Mathematica |
 |
|
|
|
Any other Mathematica-lovers out there? Sorry for the random spam.
 |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Oct 16, 2007 8:49 am Post maybe stupid Post subject: |
 |
|
|
|
Why plot from 1 to 10? The 10th term is 0. All odd terms of the Fourier series of a square wave are zero. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
baseball43v3r Seasoned Helper
Joined: Jan 02 2006 Posts: 102 Offline
|
Posted: Tue Oct 16, 2007 12:33 pm Post maybe stupid Post subject: |
 |
|
|
|
someone want to explain to the rest of the community who hasnt paid attention through four years of high school math and a quarter of college math what exactly this is? gracias
eggy |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Oct 16, 2007 2:08 pm Post maybe stupid Post subject: |
 |
|
|
|
It's a truncated Fourier series of a repeating square wave centered at 0.5, with amplitude 0.5. One might see something like this after passing a square wave signal through a low pass filter (i.e. removing the high frequency components).
Fourier series and Fourier transforms are two of the fundamental tools in electrical engineering. |
|
Back to top |
|
 |
Blocks Novice

Joined: Jul 13 2006 Posts: 95 Location: California Offline
|
Posted: Tue Oct 16, 2007 3:53 pm Post maybe stupid Post subject: Heaviside function |
 |
|
|
|
It's actually a truncated Fourier series of the Heaviside function. The reason it was plotted to 10 terms was because it was followed by plots to 100 and 1000 to show Gibb's phenomenon.
But that wasn't the point of the topic!  |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Oct 16, 2007 8:10 pm Post maybe stupid Post subject: |
 |
|
|
|
Uh, the Heaviside function isn't periodic, so there's no Fourier series to truncate.
I don't use Mathematica. I've dabbled with Maple, but I don't usually need a computer to solve things algebraically for me (I'll use my TI-89 as a CAS sometimes), and MATLAB handles all my numerical needs. |
|
Back to top |
|
 |
Blocks Novice

Joined: Jul 13 2006 Posts: 95 Location: California Offline
|
Posted: Tue Oct 16, 2007 9:40 pm Post maybe stupid Post subject: |
 |
|
|
|
Yes there is ... it's right there. Maths war!
I've never tried Maple, but I use MATLAB quite a bit for school and work. And I only have a TI-83+  |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Oct 16, 2007 9:50 pm Post maybe stupid Post subject: |
 |
|
|
|
The Heaviside step is defined as:
0 when t < 0
1 when 0 <= t
That's not periodic. Only periodic functions have Fourier series. Aperiodic functions (like the Heaviside step) have continuous Fourier transforms.
The function you truncated to show the Gibbs phenomenon is a periodic signal (one can instantly tell by the summation instead of integration). It *looks* like a square wave, but since it's been truncated to an approximation, I can't mathematically prove that. |
|
Back to top |
|
 |
Blocks Novice

Joined: Jul 13 2006 Posts: 95 Location: California Offline
|
Posted: Tue Oct 16, 2007 10:31 pm Post maybe stupid Post subject: |
 |
|
|
|
Non-periodic functions can have Fourier series.
I can't prove the general case, but that is the Fourier series for the Heaviside function on the given interval. If you do the integrals, you'll come out with those coefficients.
The function shown is periodic with period 2pi, which means it sucks as an approximation to the Heaviside function outside of that interval, but it's still a partial Fourier series. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Oct 17, 2007 8:52 am Post maybe stupid Post subject: |
 |
|
|
|
How is the Heaviside function when made periodic NOT a square wave?
Wikipedia wrote: | The Fourier series is a mathematical tool used for analyzing periodic functions by decomposing such a function into a weighted sum of much simpler sinusoidal component functions |
|
|
Back to top |
|
 |
|