This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]