Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
0

How derive minimization frequencies formula ?

asked 2 years ago

Andr gravatar image

updated 2 years ago

Fourier DFT transformation of sawtooth wave (0, a, 2 a, 3a..a*(N-1).) has coefficients

aN(N+1)2,k=0

aN1ej2πk/N, k[1,N1]

https://dsp.stackexchange.com/questio...

I want remove it from samples, but I must compute optimal slope a.

X means Fourier transformation of samples, S - Fourier transformation of sawtooth wave

Slope is optimal when difference (X-S) has minimum high frequencies <=>

frequencies(frequencyamplitude2) is minimal.

Maybe better frequencies(frequency2amplitude2) is minimal.

I must equate to zero the derivative of this sum and compute slope a. How do it with SageMath?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 2 years ago

Andr gravatar image

updated 2 years ago

slelievre gravatar image

Try this:

sage: derivative(abs(xn - a*N/(1 - exp(-i*2*pi*k/N)))^2, a)
8*(xn + 8*a/(e^(-1/4*I*pi*k) - 1))/(e^(1/4*I*pi*k) - 1) + 8*(8*a/(e^(1/4*I*pi*k) - 1) + conjugate(xn))/(e^(-1/4*I*pi*k) - 1)
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2 years ago

Seen: 160 times

Last updated: Apr 15 '22