Apr 15, 2005 #1 rock31 Programmer Jul 18, 2004 38 US As title, how to assign a complex value to a variable declared as complex, for example, COMPLEX C C=? THANKS
As title, how to assign a complex value to a variable declared as complex, for example, COMPLEX C C=? THANKS
Apr 16, 2005 1 #2 xwb Programmer Jul 11, 2002 6,828 GB Code: program main complex c c = cmplx(10.0, 20.0) print *, 'real ', real(c), ' imaginary ', aimag(c) stop end program Upvote 0 Downvote
Code: program main complex c c = cmplx(10.0, 20.0) print *, 'real ', real(c), ' imaginary ', aimag(c) stop end program