Hi all, I wrote this code with random numbers that is taking too long to produce its output (probably due to the high number of random numbers being used). Any help to streamline the code would be appreciated. Thank you.
[code] PROGRAM Monte Carlo
IMPLICIT NONE
INTEGER :: i, nrandoms, iseed...
Hi, I want to be able to read numbers inputed from a user into an array (Neutrons), and then add a count to an appropriate bin. The code is below.
I want to make sure that the array I am using (Neutrons(1000)) which stores the inputed numbers is used correctly in the code.
PROGRAM Binning...
Hi, I am making a program that generates random numbers between 0 and 1, and then displays the number of randoms in each appropriate bin (the bin sizes are 0.05).
I'm thinking that I would use something like "bin1 ++" to add a count to the bin, but I'm not sure. My code is below. I am using...
Hi,
I need help in constructing a Fortran program that will rebin the following data. Here is what I need to do:
-I need to construct the data so that for every 5 bins(0-.5,.5-1,1-1.5, etc.) the total sum of the counts for the 5 bins are displayed.
-Also the average error, which equals...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.