C++ Libraries                       # Other Apps' page

I use to develop using C++, but I also know C (how couldn't I ? :) ), Pascal, Assembly ( x86 ), Modula-2, Fortran77, JavaScript and a little Python. In this page you can find some libraries that I have made in C++ and a pair of useful programs.

## RealNumbers-1.0.tar.gz (42 Kb.)

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 propagation).
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 :

3
10/3
##### Numero
3.333333333333333 ( and a periodic number flag )
##### NumeroE
3.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-1.0.tar.gz (10Kb.)

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 :
• 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 %
Discrete distribution functions :
• 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.