complex data manipulation

WILLIAM J. BROWN wjbrown at evax0.eng.fsu.edu
Thu May 30 06:57:33 AEST 1991


I'm writing a program in C (of course) which requires the inversion of
a rather large matrix.  This by itself is no problem except that some of
the elements in the array are complex.  Is there an easy way to handle
complex data in C?  I have a book titled *C TOOLS for Scientists and
Engineers* where the author uses the header file #include <complex.h>
and uses functions such as CADD(),CSUB(),CMULT() etc. for complex
arithmetic.  I have several books on C including The Waite Group's
*C Primer Plus* and Schaum's *Programming in C* neither of which make
any mention of any of these header files or functions.  Has anyone out
there written a program that would invert a complex matrix?  Any help
would be greatly appreciated.
				William Brown 



More information about the Comp.lang.c mailing list