This code is run on code blocks, as a fortran application project. Although I intend to use it as a dll to a C# program, currently they are completely unrelated.
Also, the code runs fine, the error shows on PRINT only. Try this, and check the output:
program hello
implicit none
COMPLEX rk...
GNU Fortran, MinGW 4.8.1
IDE: Code Blocks 13.12
File ext: .f90
program hello
implicit none
COMPLEX rk
rk=2*0
rk = rk **4 ! Ok
rk = rk **4. ! NaN
end program
How to make powers of complex with float exponent without resulting in NaN?
Compiled with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.