Recent content by karenmarie3

  1. K

    Fortran Fortran issues - Not getting expected output

    I don't think that is going to solve my problem. The places that pi and e come into play have nothing to do with why I am not getting the appropriate distribution of lengths when I am starting with the appropriate distribution of initial points. I appreciate the comment, but this project is...
  2. K

    Fortran Fortran issues - Not getting expected output

    Hey everyone, I've been working on this project for awhile (some of you may recall having seen a very early version), and I am so close to being finished, but I have a problem somewhere, and I can't figure out why. So what is happening here is that this code is supposed to calculate the...
  3. K

    Fortran FORTRAN Problem Runtime Error: End of File

    Ok so I solved my runtime error by removing the 'z' in the read line. Now I just need to get the program to write all the data I require to my new file. I'll come back if I have issues with this.
  4. K

    Fortran FORTRAN Problem Runtime Error: End of File

    FORTRAN Problem! "Runtime Error: End of File" Hey everyone, back again with another Fortran question. I am getting the runtime error in Fortran "End of Line". I have tried to simply understand what this means, but I am not getting much help from Google. I have pasted my code below, and...
  5. K

    Fortran Can't get Fortran code to give me desired output file

    Thanks for the suggestions. I ended up deleting the lower bounds in my 'if' statement. I'm not entirely certain why it worked, but it seems like the compiler may have gotten angry with me for the statement "z_min .ge. z" when rand() automatically gives a number greater than 0, always (and, of...
  6. K

    Fortran Can't get Fortran code to give me desired output file

    Note: I have insterted write(*,*) statements after the x- & y- value selection, the z selection, and the gauss_dist calculation. All 4 values are being printed to my screen, but my data file is not being written to.
  7. K

    Fortran Can't get Fortran code to give me desired output file

    Hey everyone, I have written a Fortran code for a project I am working on, but am having an issue: I can't get the code to output my data to the file I have opened. Here is what I am trying to do. I am setting up a Monte-Carlo code that selects a random x- and y-value. These values are...
  8. K

    Summations: Where did this come from

    Thank you very much! I figured it was something that wasn't a big deal, but sometimes when I'm working on the tougher stuff my brain doesn't want to switch to a lower gear!
  9. K

    Summations: Where did this come from

    Hey can anyone explain to me how the summation 1/(n^2-m^2) = 1/2n[1/(m+n)-1/(m-n)]? I am trying to find the second order correction to the energy of a harmonic oscillator (nondegenerate perturbations), and understand everything but where that came from. Is there a table of summation...
Back
Top