Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to implement Complex exponential functions in C ??? (http://www.go4expert.com/forums/implement-complex-exponential-functions-t4022/)

Anisha84 25Apr2007 22:06

How to implement Complex exponential functions in C ???
 
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 !!

pradeep 26Apr2007 13:03

Re: How to implement Complex exponential functions in C ???
 
Post the code you have tried so far, that'll make it easier for people to help you.


All times are GMT +5.5. The time now is 21:00.