Date: Mon, 4 Dec 2000 13:24:06 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: JANUSZ POCHMARA cc: djgpp AT delorie DOT com Subject: Re: Problem with exp In-Reply-To: <2EC46452D7@et.put.poznan.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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?