delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/21/22:05:44

Message-ID: <3838AF63.6DDD2A0F@snetch.cpg.com.au>
Date: Mon, 22 Nov 1999 13:50:11 +1100
From: Michael Abbott aka frEk <20014670 AT snetch DOT cpg DOT com DOT au>
Organization: Student of Computer Power Institute
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Imaginary Numbers
References: <383777ff AT news DOT desupernet DOT net> <61MZ3.1708$VO5 DOT 42620 AT dfiatx1-snr1 DOT gtei DOT net>
Reply-To: djgpp AT delorie DOT com

Heya

Another way to do it is to have two floating point parts for both the real and
imaginary parts and doing the equations for imaginary multiplication, etc.
yourself.

- Michael

Damian Yerrick wrote:

> "David Pinkerton" <pinkerton AT desupernet DOT net> wrote:
> > Im working on making a small program that would display Fractals and the
> > like , but all the equations ive seen involved imaginary numbers. Is there
> a
> > biult in constant somwhere in djgpp for dealing with these. i tried
> setting
> > a variable equal to sqrt(-1) but it came back undefined. thanks alot
> >
> > Josh
>
> Have you looked at the C++ complex.h functions?
>
> Damian Yerrick



- Raw text -


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