EngineeringNewbie
Computer
- Apr 3, 2003
- 8
I'm a software engineer working on a project to plot harmonic waveforms from source data. I do this using a Fourier approximation - taking harmonic numbers, magnitudes and phases as input, and deriving magnitudes to be plotted against time.
I use the following equation:
f(t) = sigma (from n =1 to 50) ansin(n * omega0 * t + thetan)
where:
an = nth magnitude
n = harmonic number
omega0 = fundamental frequency (2*pi*f)
t = time
thetan = nth phase
Basically, this is a simplified equation which allows me to construct (or to use more technical terms: do a Fourier synthesis) harmonic waveforms for up to 50 harmonics.
What I need to be able to do is work backwards (i.e. do a Fourier analysis) and take the derived magnitudes (from the Fourier synthesis), put them into an equation which determines the original data going into the equation (or an approximation of it anyway). Does anyone know how to go about this or sites that talk about this?
I use the following equation:
f(t) = sigma (from n =1 to 50) ansin(n * omega0 * t + thetan)
where:
an = nth magnitude
n = harmonic number
omega0 = fundamental frequency (2*pi*f)
t = time
thetan = nth phase
Basically, this is a simplified equation which allows me to construct (or to use more technical terms: do a Fourier synthesis) harmonic waveforms for up to 50 harmonics.
What I need to be able to do is work backwards (i.e. do a Fourier analysis) and take the derived magnitudes (from the Fourier synthesis), put them into an equation which determines the original data going into the equation (or an approximation of it anyway). Does anyone know how to go about this or sites that talk about this?