Register to reply

Restore sgn(f(x)), f(x)=abs(sinc(x)) ?

by blighme
Tags: idft, ltspice, sinc
Share this thread:
Jun20-13, 10:51 AM
P: 12

I don't know if this is the right place to place this, but here it goes:

I tried an IDFT approach in LTspice, which doesn't know sqrt(-1). If z=a+i*b then, in LTspice, z=a, |z|=a, so b is lost. With this in mind, the IDFT is done with sin^2+cos^2 which gives me |sinc(x)|, but I need the sinc to be "regular" sinc, oscillating. So, the question is: is it possible through whatever trick/cheat/etc to restore or get an oscillating sinc(x) after the transform? Anything.

I am using this chain of .funcs:

im(t)= ...

Anticipated thanks,

PS: No homework,their time is long past. This is to try and implement a simple IDFT in LTspice.
Phys.Org News Partner Engineering news on
Tricorder XPRIZE: 10 teams advance in global competition to develop consumer-focused diagnostic device
Study shows local seismic isolation and damping methods provide optimal protection for essential computing equipment
New filter technology uses inert gas to bore holes in high-quality steel
Jun21-13, 11:39 AM
P: 12
Unfortunately, I was in a hurry to fight a headache last night, so I mixed up: real(n,t)=cos(...), imag=sin. Also, the resulting impulse response can't be a result of a simulation, for example, I can't just use u(sinc-1m) and then divide the pulses with a DFLOP -- that would require simulating to find out the coefficients, then applying them to h[n], then running the simulation again.

A small test for if(abs(x)<wc,1,0) reveals it works, but it's still |sinc| (by the way, the title is actually sgn(abs(f(x))), f(x)=sinc(x), it was a really bad headache, apparently). To actually test the coefficients, I could use sgn(sinc(wc))*result, but that would only work for rectangular spectrum or one band only.

So, there you have it, if anyone knows just a little bit, please let me know.

Jul6-13, 11:59 AM
P: 12
No need anymore, the discrete cosine/sine transforms do the trick.

Register to reply

Related Discussions
Integral sinc(a sin theta) knowing sinc, sinc^2 etc. Calculus & Beyond Homework 9
Window Lost want to restore Computers 9
Complete system restore Computers 2
Please restore my sanity General Math 16
Restore Image from T40 to R52 Computing & Technology 2