Re: blank in assignment Fortran IV
- From: none <none@xxxxxxxx>
- Date: Thu, 05 Nov 2009 00:40:55 +0000
On Wed, 04 Nov 2009 06:27:05 +0000, Alexandros Droseltis wrote:
Hello!
I am studying an ancient source written in Fortran IV (it is the
programme "Free Stochastic Music" by Xenakis in [1]) and I do not
understand the blank in the following line of code:
HX=HINF+HM*X RANF(-1)
By reading the theoretical text, I assume that RANF(-1) should be a
random number in [0,1). Also I assume by reading the theoretical text,
that HX should be a random number between HINF and HINF+HM.
Compiling the code with g95 and using a random number, say TEMP,
instead of RANF(-1), I always get for HX the value HINF and not what I
expect (that is a random number between HINF and HINF+HM). Could
someone please explain what the above assignment in Fortran IV means? I
would be grateful.
Best Regards
Alexandros
[1] Iannis Xenakis, Formalized Music; Thought and Mathematics in
Composition, Pendragon Press, Stuyvesant New York
Would any of these help?
xranf: A random number in range -1 .. +1
http://www.linuxsir.com/bbs/thread304809.html
xranf: random number in range 0 .. 1
http://read.pudn.com/downloads21/sourcecode/graph/71499/gems/FastJitter.c__.htm
xranf: random integer in range 0 .. (argument value)
lss.fnal.gov/archive/other/mura/MURA-580.pdf
This would make -1 a 'funny' number
xranf: random number in range 0 .. 1
http://www.google.com/codesearch/p?hl=en&sa=N&cd=2&ct=rc#91PXtzWoYR8/cpmd/src/util.F&q=xranf%20lang:fortran
.
- Follow-Ups:
- Re: blank in assignment Fortran IV
- From: Alexandros Droseltis
- Re: blank in assignment Fortran IV
- References:
- blank in assignment Fortran IV
- From: Alexandros Droseltis
- blank in assignment Fortran IV
- Prev by Date: Re: Fortran vs. Octave/Matlab
- Next by Date: Re: blank in assignment Fortran IV
- Previous by thread: Re: blank in assignment Fortran IV
- Next by thread: Re: blank in assignment Fortran IV
- Index(es):
Relevant Pages
|