www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/28/23:30:39

Message-Id: <199810290435.NAA25539@inmac3.snu.ac.kr>
From: "Won-Seok Lee" <lws AT inmac3 DOT snu DOT ac DOT kr>
To: <djgpp AT delorie DOT com>
Subject: On complex-number manipulation
Date: Thu, 29 Oct 1998 13:28:27 +0900
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

$)CDear Sir:

I am professionally interested in complex-number manipulation.

Until now, I have used Turbo C 3.0 for the complex-number calculation,

but it has memory limitation in allocating an array.

So, recently, I challenge the calculation on DJGPP.

But I have a problem.

I want the following program to be executed, but this program cannot

be compiled. The filename is 'test.cc.'

Please advise me which part should be modified for 'Compile' and

'Execution.'

Thank you.


#include  <stdio.h>
#include  <math.h>
#include  <complex.h>

complex  a ;

int   main( void ) {
  a = complex( 1. , 0. ) ;
  printf( "%.5e\n" , real( a ) ) ;
  return  0 ;
}


Sincerely,

Won-Seok Lee
(Researcher)

Applied Electromagnetics Lab.,
Institute of New Media and Communication,
Seoul National Univ.,
Seoul, South Korea

E-mail: lws AT inmac3 DOT snu DOT ac DOT kr



- Raw text -


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