Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Fortran programming problem, please help

  1. Apr 19, 2009 #1
    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
     
  2. jcsd
  3. Apr 19, 2009 #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??
     
  4. Apr 19, 2009 #3
    cuz it's a part of my project.
     
  5. Apr 19, 2009 #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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Fortran programming problem, please help
Loading...