This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: complex numbers functions in C


Amos,

Neither C nor C++ (and hence GCC) natively supports working with complex
numbers.  For that, you will need to use a specialized math library.
While I don't know of any specific ones off the top of my head, I know
that several are available.  A quick search of the Internet would
probably turn up a few choices.

Good luck,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of amos eitan
Sent: Wednesday, March 10, 2004 4:40 AM
To: gcc-help@gcc.gnu.org
Subject: complex numbers functions in C

Hi
I am an electro physics engineer trying my first steps in programming. I
am 
trying to program a simple routine for integrating fields (I am using 
gcc-2.95.3). I must use complex numbers and I don't know the functions,
the 
declaration of the variables and how to print a complex number using 
"fprintf" with a complex format. Can anybody help me?
Thanks
Amos

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]