Thanks for responding Matterwave
Where this question has come from is a discussion I was having about temperature increase as water changes from the solid to the gaseous state. As the water changes from D to E, If temperature is defined as average KE =3/2kT does this imply that the KE and...
If I have ice, water and vapour at the triple point and they are in equilibrium at a temperature of 273.16. Does this mean that the average kinetic energy of the particles is the same in each state? If so how can the molecules in the water be moving with the same mean squared speed as the...
The story so far,
I must thank you all I could not have got this far without you guys!
I need to work out how to plot my points in gnu plot next and how to store my points in an array
+++++++++++++++++++++++++++++++++++++++++
program test_rand
real,parameter :: pi = 3.1415926...
Hi Factchecker, Thanks for your time on this. I can see how this is a good way to check if my generated radii are evenly distributed. Please excuse my ignorance but what language is this?
Is there unseen code that generates the count for each bin (if that is the correct word) for the .1...
Thanks mathman, that is what I was trying to say, It seems so much clearer in mathematical symbols. Is it possible to explain why this gives a better uniformity?
Does this mean I would calculate my radius using rand() as though it was the range I want squared then square root the value to make a more evenly distributed range?
Brilliant, for all this information on the net sometimes it takes a human mind to assist another human mind eh!
I get what is going on now.
In general if I see subroutine(value) then value is passed to the sub routine?
Thanks for such rapid responses.
Hi FactChecker,
So the line in my code
call srand(seed) does not generate the value of seed then?
what does it do?
Do I just need to input the value seed into my program maybe with a parameter statement
May I also ask about something else I read about srand()
SEED Shall be a scalar...
I am very grateful to you all for the help so far.
It has been over 10 years since I wrote any code,
and as expected it runs unexpected.
Is this idea of the radius^2 that I generate r^2 then take the sqrt for my value of the radius?
+++++++++++++++++++++++++++++++++++++++++++++++++...
Hi
Thanks to both of you for the advice.
Its going to be a steep learning curve.
I just re-partitioned my hard drive and have put on Ubuntu and am no looking for a FORTRAN 95 compiler.
I understand what you are saying about the polar coordinates and guess my next task is to work out how to use...
Hi
My FORTRAN is rusty and my brain is even more rusty.
I want to populate an annulus with a randomly distributed set of points.
Any hints or tips to get me thinking about this would be gratefully received.
Thanks
D
Hi jtbell,
thanks for the rapid response,
What confuses me is that for example in say beta minus decay. The proton turns to a neutron by emitting a W- and this W- decays to become an electron and a anti-electon neutrino. The electron in a sense is formed from the "negativness" of the W-. So...
All the Feynman diagrams I have seen so far for a neutron colliding with a neutrino have a w+ with an arrow from the neutrino to the neutron.
Would it not also be possible with a W- leaving the neutron taking away negative charge for it to become a positive proton or is there some quantum rule...