Re: blank in assignment Fortran IV



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


.



Relevant Pages

  • Re: blank in assignment Fortran IV
    ... Also I assume by reading the theoretical text, ... One can't tell for sure what is going on here without context (in ... The simple answer is that blanks are insignificant in Fortran prior to ... There is no ranf or xranf in standard Fortran. ...
    (comp.lang.fortran)
  • blank in assignment Fortran IV
    ... I am studying an ancient source written in Fortran IV (it is the ... Also I assume by reading the theoretical text, ... I always get for HX the value HINF and not what I ... someone please explain what the above assignment in Fortran IV means? ...
    (comp.lang.fortran)
  • Re: blank in assignment Fortran IV
    ... | I am studying an ancient source written in Fortran IV (it is the ... Also I assume by reading the theoretical text, ... I always get for HX the value HINF and not what I ... | someone please explain what the above assignment in Fortran IV means? ...
    (comp.lang.fortran)
  • Re: blank in assignment Fortran IV
    ... glen herrmannsfeldt wrote: ... value were required to start with X. (XRANF was not a function ... didn't come in until Fortran II - it wasn't that they were required ... functions rarely used this scheme although somthing like RANF would ...
    (comp.lang.fortran)
  • Re: blank in assignment Fortran IV
    ... glen herrmannsfeldt wrote: ... value were required to start with X. (XRANF was not a function ... didn't come in until Fortran II - it wasn't that they were required ... so much as the built-in ones did. ...
    (comp.lang.fortran)