This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Fortran pow (complex ** huge) returns NaN instead of Inf ?
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Cc: ghazi at caip dot rutgers dot edu, tobias dot schlueter at physik dot uni-muenchen dot de
- Date: Thu, 25 Jun 2009 18:29:56 +0200
- Subject: Re: Fortran pow (complex ** huge) returns NaN instead of Inf ?
Hi,
I think the code is invalid on two counts:
in PRINT *, f((2.0, -4.3), huge(0)), huge(0) is an integer, but is defined
as a complex in FUNCTION f(z, e).
in FUNCTION f(z, e), f is declared as a complex, but is not typed in the
main program, hence is a real.
Dominique