next up previous contents
Next: Comparison routines Up: The Common Package Previous: Array fill/copy   Contents


Numerical routines

      #include <gandalf/common/numerics.h>
This contains a few useful numerical routines not ofter included in C libraries, such as square (e.g. gan_sqr_d() or the macro gan_sqr()), cube-root gan_cbrt() and various flavours of random number generators. There is also a function gan_normal_sample() for generating samples from a normal distribution.



2003-02-12