Other Apps' page
In this page you can find some libraries that I have made in C++ and a pair of
RealNumbers v1.0 is a library of arbitrary precission numbers which has
implemented natural numbers, integers, rational numbers, integers with decimals
, and numbers with error bound (over whom you can operate and see the error
Each class implements the classical operators (+ - * /), also, the integer
class has members for calculate the modulus, greater common divisor, factorial, etc.
It has 4 calculators as an example program to use each of the class. With these
examples, you can see the difference between number. For example, when you
make 10 / 3, the different results are :
Numero 3.333333333333333 ( and a periodic number flag )
NumeroE3.333333333333333 +- 0.000000000000001
The precission of the 3rd and 4th results can be adjusted.
This library has been tested in GCC/Linux and DJGPP v2.1/DOS,
but surely can compile in every C++ compiler (though you need POSIX
compliant libraries to compile the calculators)
RealNumbers is distributed under the GNU GENERAL PUBLIC LIBRARY LICENSE
(a copy is included inside the compressed file, with the name COPYING)
ProbabLib is a set of functions in C that returns the value of a random
variable following some kind of distribution functions :
Continuous distribution functions :
Discrete distribution functions :
- random_exp ( Lambda )
Returns a random variable following an exponential distribution function with Lambda parameter.
probablib 500000 exp 1 | histogram - 0 8 300 %
- random_normal ( Mean, Variance )
Returns a random variable
following a normal distribution function with parameters Mean and Variance.
probablib 500000 normal 0 1 | histogram - -5 5 150 %
- random_poisson ( Lambda )
Returns a random variable following a Poisson distribution function with Lambda parameter.
probablib 500000 poisson 1 | histogram - 0 8 300 %
- random_binomial ( N, P )
Returns a random variable following a binomial distrib. function .
probablib 500000 binomial 10 0.2 | histogram - 0 8 300 %
- random_hypergeom_p0 ( N, D, n )
Returns a random variable following an hypergeometric distrib. function starting at 0.
probablib 500000 hipgeom 100 10 12 | histogram - 0 8 300 %