next up previous contents
Next: Random Number Generator Up: Maths Utilities Previous: Simple Arrays and Vectors   Contents

Simple Functions

Basic mathematical functions include the following self explanatory routines

extern double  asinh(double x);

extern double  tina_acos(double c);

extern double  sqr(double x);

extern double  dist2(double x1, double y1, double x2, double y2);

extern int     imin(int x, int y);

extern int     imax(int x, int y);

extern double  fmin(double x, double y);

extern double  fmax(double x, double y);

extern int     imin3(int x, int y, int z);

extern int     imax3(int x, int y, int z);

extern double  fmin3(double x, double y, double z);

extern double  fmax3(double x, double y, double z);

extern void    fft_cmplx_inplace(Complex * z, int n);

extern void    fft_inverse_cmplx_inplace(Complex * z, int n);

extern void    fourier(double *data, int nn, int isign);



root 2017-11-22