On 21 Aug 2003, [log in to unmask] wrote:
> Hi !
> Do you know how to integrate complex functions? I used the QDAG
> routine of the IMSL library (in Compaq Visual Fortran), but it seems not
> to support complex functions.
That's because you can't simply "integrate" a complex valued function of a
complex variable. You need to know about residues, analyticity, etc. But you
can sometimes use real integration for part of the problem if you deform your
complex contour cleverly.
These techniques and the underlying theory are covered in an undergraduate
upper level mathematics course on Complex Variables, and in more detail in a
first-year graduate course.
So your question isn't really a Fortran problem. What's wrong is that you're
trying to use a math library routine outside its domain of applicability (this
should be covered in the documentation), and you need to rethink your problem.
Ted
--
Ted Stern Applications Group
Cray Inc. office: 206-701-2182
411 First Avenue South, Suite 600 cell: 206-383-1049
Seattle, WA 98104-2860 FAX: 206-701-2500
Frango ut patefaciam -- I break that I may reveal
(The Paleontological Society motto, equally apropos for debugging)
|