0

Hi

I am working on fast fourier transform where I have to use std::complex<> template class types. I have a situation where I want to calculate nth roots of unity as follows

w = pow(e, 2*pi*j/n)

Where e is eulers constant, and j=sqrt(-1.0); But this doesnt work for me as I both tried type "complex<double>" as well as "double" for "w". But I get "error:more than one instance of overloaded function pow matches the argument list". So the problem seems with both pow function and type of "w"..... Can anybody help me in this? Thanks in advance:)