Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Mathematica

 
Post new topic   Reply to topic Printable version
 View previous topic  I have an idea! Post :: Post Derivatives  View next topic  
Author Message
Blocks
Novice


Joined: Jul 13 2006
Posts: 95
Location: California
Offline

PostPosted: Tue Oct 16, 2007 4:21 am   Post maybe stupid    Post subject: Mathematica Reply to topic Reply with quote

Any other Mathematica-lovers out there? Sorry for the random spam.

Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Oct 16, 2007 8:49 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
baseball43v3r
Seasoned Helper


Joined: Jan 02 2006
Posts: 102
Offline

PostPosted: Tue Oct 16, 2007 12:33 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Oct 16, 2007 2:08 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Blocks
Novice


Joined: Jul 13 2006
Posts: 95
Location: California
Offline

PostPosted: Tue Oct 16, 2007 3:53 pm   Post maybe stupid    Post subject: Heaviside function Reply to topic Reply with quote

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! icon_razz.gif
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Oct 16, 2007 8:10 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Blocks
Novice


Joined: Jul 13 2006
Posts: 95
Location: California
Offline

PostPosted: Tue Oct 16, 2007 9:40 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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+ icon_sad.gif
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Oct 16, 2007 9:50 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Blocks
Novice


Joined: Jul 13 2006
Posts: 95
Location: California
Offline

PostPosted: Tue Oct 16, 2007 10:31 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Wed Oct 17, 2007 8:52 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 224 page(s) served in previous 5 minutes.

phpBB Created this page in 0.607036 seconds : 35 queries executed (87.5%): GZIP compression disabled