random_cauchy SciMax Toolbox random_chi2_algorithm

SciMax Toolbox >> random_chi2

random_chi2

Maxima Function

Calling Sequence

random_chi2 (n)
random_chi2(n,m)

Description

Returns a Chi-square random variate Chi^2(n), with n>0. Calling random_chi2 with a second argument m, a random sample of size m will be simulated.

There are two algorithms implemented for this function, the one to be used can be selected giving a certain value to the global variable random_chi2_algorithm, which defaults to ahrens_cheng.

See also . To make use of this function, write first load(distrib).

random_cauchy SciMax Toolbox random_chi2_algorithm