delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/04/06:29:43

Date: Mon, 4 Dec 2000 13:24:06 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: JANUSZ POCHMARA <jpochm AT et DOT put DOT poznan DOT pl>
cc: djgpp AT delorie DOT com
Subject: Re: Problem with exp
In-Reply-To: <2EC46452D7@et.put.poznan.pl>
Message-ID: <Pine.SUN.3.91.1001204132139.15453K-100000@is>
MIME-Version: 1.0
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019