* complex numbers functions in C
@ 2004-03-10 14:11 amos eitan
0 siblings, 0 replies; 2+ messages in thread
From: amos eitan @ 2004-03-10 14:11 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: complex numbers functions in C
@ 2004-03-12 18:15 lrtaylor
0 siblings, 0 replies; 2+ messages in thread
From: lrtaylor @ 2004-03-12 18:15 UTC (permalink / raw)
To: amoseitan, gcc-help
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-12 17:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-10 14:11 complex numbers functions in C amos eitan
2004-03-12 18:15 lrtaylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).