Thread: How to implement Complex exponential functions in C ???

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    7

    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 :-

    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 !!
    Last edited by Clueless@work; 04-25-2007 at 10:10 AM. Reason: missed a plus sign

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An array of macro functions?
    By someprogr in forum C Programming
    Replies: 6
    Last Post: 01-28-2009, 07:05 PM
  2. Replies: 7
    Last Post: 11-17-2008, 01:00 PM
  3. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  4. Passing pointers between functions
    By heygirls_uk in forum C Programming
    Replies: 5
    Last Post: 01-09-2004, 06:58 PM
  5. Passing data/pointers between functions #2
    By TankCDR in forum C Programming
    Replies: 1
    Last Post: 11-02-2001, 09:49 PM