*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> complib/slaruv (3)              
Title
Content
Arch
Section
 

Contents


SLARUV(3F)							    SLARUV(3F)


NAME    [Toc]    [Back]

     SLARUV - return a vector of n random real numbers from a uniform (0,1)

SYNOPSIS    [Toc]    [Back]

     SUBROUTINE	SLARUV(	ISEED, N, X )

	 INTEGER	N

	 INTEGER	ISEED( 4 )

	 REAL		X( N )

PURPOSE    [Toc]    [Back]

     SLARUV returns a vector of	n random real numbers from a uniform (0,1)
     distribution (n <=	128).

     This is an	auxiliary routine called by SLARNV and CLARNV.

ARGUMENTS    [Toc]    [Back]

     ISEED   (input/output) INTEGER array, dimension (4)
	     On	entry, the seed	of the random number generator;	the array
	     elements must be between 0	and 4095, and ISEED(4) must be odd.
	     On	exit, the seed is updated.

     N	     (input) INTEGER
	     The number	of random numbers to be	generated. N <=	128.

     X	     (output) REAL array, dimension (N)
	     The generated random numbers.

FURTHER	DETAILS
     This routine uses a multiplicative	congruential method with modulus 2**48
     and multiplier 33952834046453 (see	G.S.Fishman,
     2**b: an exhaustive analysis for b	= 32 and a partial analysis for	b =
     48', Math.	Comp. 189, pp 331-344, 1990).

     48-bit integers are stored	in 4 integer array elements with 12 bits per
     element. Hence the	routine	is portable across machines with integers of
     32	bits or	more.
SLARUV(3F)							    SLARUV(3F)


NAME    [Toc]    [Back]

     SLARUV - return a vector of n random real numbers from a uniform (0,1)

SYNOPSIS    [Toc]    [Back]

     SUBROUTINE	SLARUV(	ISEED, N, X )

	 INTEGER	N

	 INTEGER	ISEED( 4 )

	 REAL		X( N )

PURPOSE    [Toc]    [Back]

     SLARUV returns a vector of	n random real numbers from a uniform (0,1)
     distribution (n <=	128).

     This is an	auxiliary routine called by SLARNV and CLARNV.

ARGUMENTS    [Toc]    [Back]

     ISEED   (input/output) INTEGER array, dimension (4)
	     On	entry, the seed	of the random number generator;	the array
	     elements must be between 0	and 4095, and ISEED(4) must be odd.
	     On	exit, the seed is updated.

     N	     (input) INTEGER
	     The number	of random numbers to be	generated. N <=	128.

     X	     (output) REAL array, dimension (N)
	     The generated random numbers.

FURTHER	DETAILS
     This routine uses a multiplicative	congruential method with modulus 2**48
     and multiplier 33952834046453 (see	G.S.Fishman,
     2**b: an exhaustive analysis for b	= 32 and a partial analysis for	b =
     48', Math.	Comp. 189, pp 331-344, 1990).

     48-bit integers are stored	in 4 integer array elements with 12 bits per
     element. Hence the	routine	is portable across machines with integers of
     32	bits or	more.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
dlarnv IRIX return a vector of n random real numbers from a uniform or normal distribution
slarnv IRIX return a vector of n random real numbers from a uniform or normal distribution
zlarnv IRIX return a vector of n random complex numbers from a uniform or normal distribution
clarnv IRIX return a vector of n random complex numbers from a uniform or normal distribution
random NetBSD random lines from a file or random numbers
random OpenBSD random lines from a file or random numbers
dlargv IRIX generate a vector of real plane rotations, determined by elements of the real vectors x and y
slargv IRIX generate a vector of real plane rotations, determined by elements of the real vectors x and y
slartv IRIX applie a vector of real plane rotations to elements of the real vectors x and y
dlartv IRIX applie a vector of real plane rotations to elements of the real vectors x and y
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service