How to implement Complex exponential functions in C ???

Newbie Member
25Apr2007,22:06   #1
Anisha84's Avatar
Hi everyone

I am trying to write a code for an IIR filter. And for that purpose i need to implement the below funtion in C :-

Quote:
out[n] = in[n] - ((b1 * e^jw * out[n-1]) + (b2 * e^2jw * out[n-2]))
Now, am facing problem ... wel rather i have no idea , as to how to implement the e^jw function. The value of w is known to me and n = the sample number.

It would be great if anyone could help me out.
Thanks a lot !!
Team Leader
26Apr2007,13:03   #2
pradeep's Avatar
Post the code you have tried so far, that'll make it easier for people to help you.