# complex number & sort

hi everbody , i have 3 questions :

1) i know how complex number must be written in fortran . but now i
want to
calculate complex number in loop and use its value for other parts ,
my problem is
with complex number in loop . for example , i guess with this way i
can
work with complex numbers :

complex m

do i=1,10,1
m=(i,i)
end do

this program doesn't work .what can i do ?

2) i have an array with dimensioins A(3,200) . i want to sort these
array
with increasing the second row data algebrically . in fortran
libarary i can't
find suitable program , all program are for vectors .can anybody
propose me a way ?

3) in my program , numbers are calculated with 6 digits precesion
after point .( for example 21.938495 ) how
can i control the precesion ? i want it computes with 3 or 2 digits
after point .

best ,nakisa

.

## Relevant Pages

• RE: complex number & sort
... i know how complex number must be written in fortran. ... with complex number in loop. ... i have an array with dimensioins A. ... numbers are calculated with 6 digits precesion ...
(comp.lang.fortran)
• Re: How to print out a Fortran array?
... Now I still have a question: I have an array holding real type of data, ... What version of Fortran are you using? ... loop can be replaced by a DO/ENDDO loop. ...
(comp.lang.fortran)
• Re: Is this code computationally economical?
... qquito wrote: ... I am using Fortran 90 and have an array, a, whose some elements ... n to 0 before the loop, ...
(comp.lang.fortran)
• Is this code computationally economical?
... I am using Fortran 90 and have an array, a, whose some elements ... the elements twice, and so it is not as computationally economical as ... the loop. ...
(comp.lang.fortran)
• RE: Error 3021
... Kevin Backmann ... Create proto-file names using the selected job names and storre to an array ... Save and close the document and repeat the loop ... Dim strJobsAs String, strDocsAs String, varValsAs _ ...
(microsoft.public.access.modulesdaovba)