18.337 WebMeeting


Message from: liju99@MIT.EDU
About: Part I of HW2: sor_2arrays.f90

Mon, 3 Mar 97 12:15:57 EST

  • Next message: Brad Bartley: "HW 2 Part 2"
    In the original program,

    shiftval=-1
    shiftval(2:2*n:2)=1

    If we draw out the scenario, this seems to be the wrong
    order (-1 means shifting the matrix to the right?). However
    the code does give the correct answer. But if we change to

    shiftval=1
    shiftval(2:2*n:2)=-1

    it still gives the same number. Looking into the program,
    the reason seems to be that the problem has mirror reflection
    symmetry, and although the shifting order was wrong (?) in the old
    code, it merely mirror-reflects the variable labels. The number
    in the middle is still correct.
    ----
    NOTE: This message was sent using a WWW form. The address liju99
    was typed manually, and may easily be incorrect.



    You may post a follow-up message or a new message. To send a reply directly to the author, you may click on the email address above.

    If you would like to submit a message using your own mail program, send it to: 18.337-wm@webmeet.mit.edu

    If you are following up this article, please include the following line at the beginning of your message:
    In-Reply-To: 9703031715.AA04732@arachnophobia.MIT.EDU