Understanding Permutations in Fortran Programming

In summary, the person is asking for someone familiar with Fortran programming to help them get started. They provide a summary of the conversation, and ask for help in specific areas.
  • #1
kevek
13
0
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
 
Technology news on Phys.org
  • #2
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
cuz it's a part of my project.
 
  • #4
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.
 

1. What is Fortran programming?

Fortran (short for Formula Translation) is a programming language used primarily for scientific and engineering applications. It was developed in the 1950s and is still widely used today for its efficient numerical and mathematical computation capabilities.

2. What are some common problems encountered when programming in Fortran?

Some common problems encountered when programming in Fortran include syntax errors, logical errors, and runtime errors. These can be caused by incorrect use of language syntax, algorithmic mistakes, or unexpected inputs.

3. How can I improve my Fortran programming skills?

To improve your Fortran programming skills, it is important to practice regularly and familiarize yourself with the language's syntax and conventions. Reading and understanding code written by other programmers can also help you learn new techniques and approaches.

4. What are some best practices for debugging Fortran programs?

Some best practices for debugging Fortran programs include using the built-in debugging tools provided by your compiler, adding print statements to track the flow of your program, and using a step-by-step approach to isolate and fix errors.

5. Are there any resources available for learning and troubleshooting Fortran programming?

Yes, there are many resources available for learning and troubleshooting Fortran programming. These include online tutorials, forums, and documentation provided by the language's official website. Additionally, many universities and organizations offer courses and workshops on Fortran programming.

Similar threads

  • Programming and Computer Science
Replies
10
Views
2K
  • Programming and Computer Science
Replies
8
Views
3K
  • Programming and Computer Science
Replies
16
Views
2K
  • Programming and Computer Science
Replies
5
Views
3K
  • Programming and Computer Science
Replies
2
Views
2K
  • Programming and Computer Science
Replies
4
Views
4K
  • Programming and Computer Science
Replies
1
Views
3K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Programming and Computer Science
Replies
5
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
3K
Back
Top