Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. acharls

    doubt

    salgerman, I tried second method. Exactly what I was searching. Thanks salgerman, mikrom & bill.
  2. acharls

    doubt

    Hi Bill, I am sorry, It is not about sorting but "calling subroutine multiple times", as u can see I used call 5 times for 5 variables. This can be simplified somehow ?. like in a do loop, hence I write "call" only once in the program and variables(a,b,c..) get repeated through do loop (I am...
  3. acharls

    doubt

    Hi all, I have some difficulty in processing a data. I have 3 files each file has data(100x1). while processing I derived 5 variables from data(100x1). ie a(2,10),b(2,10),c(2,10)... Then I tried to sort each 10 values. my sorting subroutine take 1-D array (x(n)), so here I saved each 10 data...
  4. acharls

    sorting

    Hi all, I have a sorting program do i=1,4 do j=i+1,5 if(er(i).gt.er(j))then temp=er(i) er(i)=er(j) er(j)=temp end if end do end do I am looking how I can print sorted values with their array index as in original data. example er=[9,3,2,5,1,4] sorted...
  5. acharls

    help

    Hi, Thanks mikrom & salgerman. I solved it. Charls
  6. acharls

    help

    Actually it should be 1 instead 2 1 2 2 3 3 5 3 5 Thanks Charls Antony
  7. acharls

    help

    Hi all, I have two files 111 112 113 111 114 & 115 115 116 117 117 118 I wanted to compare each value from file 1 with all values in file 2 and write the outputs if file1(i)+3==file2. my code is open(11,file='f1') i=1 32 read(11,*,end=98)file1(i) open (12,file='f2') 31...
  8. acharls

    average

    hi xwb, I did the averaging using if condition(Fortran)but this requires may if conditions(for each a,b,c,...). I am looking for some simple technique so that I can use it for n no. of variables. regards acharls
  9. acharls

    average

    hi, I have a data a 10 b 11 c 19 b 12 e 44 c 76 g 23 a 88 g 12 p 34 p 34 .. .. .. .. I need to find average of all a,b,c,....etc. thanks in advance

Part and Inventory Search

Back
Top