Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!munnari.oz.au!csc!axt654 From: axt654@csc.anu.oz Newsgroups: comp.unix.ultrix Subject: Bug in F77 : exp() of complex arguments Message-ID: <2348.269751a8@csc.anu.oz> Date: 8 Jul 90 15:30:48 GMT Organization: Computer Services, Australian National University Lines: 10 This is just a note in case anyone else is haveing trouble with exp() on a 3100. Basically the algorithm for exponentiation of a complex argument is faulty. Taking exp of anything with a large imaginary part gives a result of zero. It is easily fixed by taking mod 2*pi of the imaginary part before calling exp. (or rewriting zexp to do this). If you're getting funny results when using exp(complex) then check on this. Andrew Tridgell tridge@aerodec.anu.oz.au