Mail Archives: djgpp/2000/12/04/06:29:43
On Mon, 4 Dec 2000, JANUSZ POCHMARA wrote:
> I'm writting program which use mathematics function log() and exp()
> and I have some problem with compile my procedures. I use only real
> value to match this function and my compiler feed up complex. What am
> I doing ?
I'm not quite sure what your problem is. Is it that you need to compute
and exponent of a complex number? If so, you need to use mathematical
identities to convert a complex expression into a real part and imaginary
part, and then compute each part separately. DJGPP C libraries don't
support complex arguments at this time.
I don't know whether libstdcxx, the C++ library, does support comples
math functions. Anybody?
- Raw text -