Click here to Skip to main content
15,894,907 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Simple shape recognition Pin
Matthew Butler30-May-08 10:49
Matthew Butler30-May-08 10:49 
JokeRe: Simple shape recognition Pin
Brady Kelly3-Jun-08 4:51
Brady Kelly3-Jun-08 4:51 
GeneralRe: Simple shape recognition Pin
Matthew Butler4-Jun-08 11:36
Matthew Butler4-Jun-08 11:36 
GeneralRe: Simple shape recognition Pin
Member 419459330-May-08 11:56
Member 419459330-May-08 11:56 
GeneralRe: Simple shape recognition Pin
Matthew Butler30-May-08 12:46
Matthew Butler30-May-08 12:46 
AnswerRe: Simple shape recognition Pin
Arash Partow30-May-08 14:03
Arash Partow30-May-08 14:03 
AnswerRe: Simple shape recognition Pin
RichardM130-May-08 19:25
RichardM130-May-08 19:25 
QuestionFourier Series Question Pin
MarkB77724-May-08 5:45
MarkB77724-May-08 5:45 
Hi,

Im trying to work out a fourier series for a wave of period T.

The wave rises in a linear fashion from 0 to T/2, to reach a value of 1
(so its a saw tooth).

From T/2 to T it is 0.

Im trying to work out Ao, Bn, and An for the general formula:



If I integrate (!), im integrating from 0 to T

<br />
Note: ! means integral<br />
<br />
Ao = 1/(2*PI)*!f(x)<br />
Bn = 1/(PI)*!(f(x)*sin(n*t)<br />
An = 1/*(PI)*!(f(x)*cos(n*t)<br />
<br />
f(x) = Ao + SUM(An*cos(n*t)) + SUM(Bn*sin(n*t))<br />
<br />
Where SUM is the sum of the harmonics for n=1 to infinity<br />
<br />


Now, my equation and solution I got:

<br />
<br />
Waveform equation:<br />
f(t) = t/(T/2), for 0 -> t -> (T/2)<br />
f(t) = 0, for (T/2) -> t -> T<br />
<br />
Coefficients:<br />
For Ao I got: 1/4<br />
For Bn I got: -cos(n*t)/((T/2)*n)<br />
For An I got: (1/(PI*n^2)*(cos(n*PI)-1)<br />
<br />
f(x) = Ao + SUM(An*cos(n*t)) + SUM(Bn*sin(n*t))<br />
<br />


To work out An and Bn, I was using the integration shortcuts

<br />
<br />
!t*sin(n*t) = -(t*cos(n*t)/n + sin(n*t)/(n^2) + c<br />
!t*cos(n*t) = (t*sin(n*t)/n + cos(n*t)/(n^2) + c<br />
<br />


I wont post all the work because it will be too messy to follow online. I know the above answers are wrong because the harmonics don't sum to build the original wave.

If anyone who's switched on with fouriers feels like some 'revision', I'd love to know what you come out with Smile | :) ... (i'll even check your answer for you Wink | ;-) )

Cheers,

Mark.


AnswerRe: Fourier Series Question Pin
73Zeppelin24-May-08 8:11
73Zeppelin24-May-08 8:11 
GeneralRe: Fourier Series Question Pin
MarkB77724-May-08 14:26
MarkB77724-May-08 14:26 
RantRe: Fourier Series Question Pin
Nelek24-May-08 15:57
protectorNelek24-May-08 15:57 
GeneralRe: Fourier Series Question Pin
Brady Kelly31-May-08 22:42
Brady Kelly31-May-08 22:42 
GeneralRe: Fourier Series Question Pin
Nelek1-Jun-08 5:33
protectorNelek1-Jun-08 5:33 
AnswerRe: Fourier Series Question Pin
MarkB77724-May-08 21:17
MarkB77724-May-08 21:17 
GeneralRe: Fourier Series Question Pin
73Zeppelin24-May-08 22:08
73Zeppelin24-May-08 22:08 
QuestionDrawing a sketch with constraints Pin
Member 103128822-May-08 12:37
Member 103128822-May-08 12:37 
AnswerRe: Drawing a sketch with constraints Pin
73Zeppelin22-May-08 19:32
73Zeppelin22-May-08 19:32 
GeneralRe: Drawing a sketch with constraints Pin
Member 103128823-May-08 5:45
Member 103128823-May-08 5:45 
GeneralRe: Drawing a sketch with constraints Pin
73Zeppelin23-May-08 10:31
73Zeppelin23-May-08 10:31 
GeneralRe: Drawing a sketch with constraints Pin
Member 103128823-May-08 12:02
Member 103128823-May-08 12:02 
GeneralRe: Drawing a sketch with constraints Pin
73Zeppelin24-May-08 7:55
73Zeppelin24-May-08 7:55 
QuestionSubset Packing problem Pin
Ehsan_DSI20-May-08 23:04
Ehsan_DSI20-May-08 23:04 
AnswerRe: Subset Packing problem Pin
73Zeppelin21-May-08 21:10
73Zeppelin21-May-08 21:10 
QuestionRqst links for Time Complexity Pin
Vijjuuu.19-May-08 21:19
Vijjuuu.19-May-08 21:19 
AnswerRe: Rqst links for Time Complexity Pin
73Zeppelin22-May-08 0:21
73Zeppelin22-May-08 0:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.