Message-Id: <199810290435.NAA25539@inmac3.snu.ac.kr> From: "Won-Seok Lee" To: 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 Content-Type: text/plain; charset=ISO-2022-KR Content-Transfer-Encoding: 7bit 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 #include #include 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