RE: complex number & sort
- From: meek@xxxxxxxxxxxxxxx
- Date: 19 MAR 07 13:49:31 GMT
In a previous article, "nakisa" <nakisa.nooraee@xxxxxxxxx> wrote:
hi everbody , i have 3 questions :m= cmplx(float(i),float(i))
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 doThere are 3 columns per row - which column do you want to
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 ?
use for ordering ?.
Chris
One way is to multipl all by 1000 or 100 and use integer arith.
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
.
- References:
- complex number & sort
- From: nakisa
- complex number & sort
- Prev by Date: Re: complex number & sort
- Next by Date: Re: variable names for different fortrans
- Previous by thread: Re: complex number & sort
- Next by thread: Re: complex number & sort
- Index(es):
Relevant Pages
|
Loading