Fortran programming problem, please help

  • Fortran
  • Thread starter kevek
  • Start date
  • #1
13
0

Main Question or Discussion Point

Is there anyone familiar with Fortran programming, who can give me some ideas how can I strart this? Many thanks


Take 5 colored balls(1,2,3,4,5).
The "multiplication" in the group is simply performing them after one another.
Permute the first and third one. Now permute the third and fifth one (note: by third one I mean the one in the third position, not the third ball which is not in the first position).
You have just composed the permutations (13) and (35). In effect, you have moved the first one to the fifth, the fifth one to the third and the third one to the first, so in cycle notation:
(35) o (13) = (153).
(where the composition o is to be read as: "after")
Then as in any group, a power is simply composing the permutation with itself, e.g.
(13)^2 = (13) o (13) = 1
(153)^2 = (153)(153) = (135)


subroutine that determines the order of the permutation
e.g. working out the order is simply composing until you get the identity e.g. (153)^3 = (135)(153) = 1
 

Answers and Replies

  • #2
365
0
Sorry to ask an impertinent question!
Most people who run fortran do so mostly for one of the following reasons:
1. working with existing Fortran code or libraries
2. know fortran for the past 35 years and have no intention or need to learn a new language
3. Fortran will generate the fastest code without much tweaking, a notion not agreed by all, but there is a certain degree of truth to it.
4. Many manual optimization/tweaking techniques are possible.
5. Required by the course instructor.

Do you happen to fall into the last category? Could you share with us the reasons for not using Excel, Java, C, C++, VB, Perl, Python, Mathlab, Maxima, Scilab??
 
  • #3
13
0
cuz it's a part of my project.
 
  • #4
365
0
If I understand correctly, you have to do your project using Fortran, with which you are not yet familiar.

I believe you have certainly acquired some experience in programming of some kind. Would you kindly show us your proposed pseudocode, and if possible, the actual code in Fortran or any other language, so we can better see where we could offer you help, instead of doing the project from scratch for you, which we are not permitted to do in this Forum.

Note:
As a matter of notation, you have quite clearly defined (13) as the permutation of 1 and 3. Could you kindly explain the meaning of the notation (153)=(35) o (13). Where do the digits 153 come from, and how are they ordered?
Could you confirm that the number 1 (without parentheses) represents the identity operator, or does it mean something else?



Hope to hear from you soon.
 

Related Threads for: Fortran programming problem, please help

  • Last Post
Replies
6
Views
4K
Replies
1
Views
2K
  • Last Post
Replies
1
Views
4K
Replies
1
Views
2K
Replies
3
Views
2K
  • Last Post
Replies
1
Views
3K
Replies
6
Views
1K
Replies
10
Views
4K
Top