/usr/lib/emboss/include/ajmath.h is in emboss-lib 6.3.1-6ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | #ifdef __cplusplus
extern "C"
{
#endif
#ifndef ajmath_h
#define ajmath_h
#include "ajax.h"
# define AJM_E 2.718281828459
# define AJM_PI 3.141592653589
# define AJM_PI_2 1.570796326794
# define AJM_PI_4 0.785398163397
# define AJM_1_PI 0.318309886183
# define AJM_2_PI 0.636619772367
#define AJMAX(a,b) ((a > b) ? a : b)
#define AJMIN(a,b) ((a < b) ? a : b)
/*
** Prototype definitions
*/
float ajCvtDegToRad (float degrees);
double ajCvtGaussToProb (float mean, float sd, float score);
void ajCvtPolToRec (float radius, float angle,
float *x, float *y);
float ajCvtRadToDeg (float radians);
ajuint ajCvtSposToPos(ajuint len, ajint ipos);
ajuint ajCvtSposToPosStart(ajuint len, ajuint imin, ajint ipos);
float ajMathGmean(const float *s, ajint n);
ajint ajMathModulo (ajint a, ajint b);
ajint ajRandomNumber (void);
double ajRandomDouble (void);
void ajRandomSeed (void);
void ajCvtRecToPol (float x, float y,
float *radius, float *angle);
ajint ajRound (ajint i, ajint vround);
float ajRoundFloat (float a, ajint nbits);
unsigned long long ajMathCrc64(const AjPStr thys);
ajuint ajMathCrc32(const AjPStr thys);
ajuint ajNumLengthDouble(double dnumber);
ajuint ajNumLengthFloat(float fnumber);
ajuint ajNumLengthInt(ajlong inumber);
ajuint ajNumLengthUint(ajulong inumber);
/*
** End of prototype definitions
*/
__deprecated float ajRoundF (float a, ajint nbits);
__deprecated double ajRandomNumberD (void);
__deprecated unsigned long long ajSp64Crc(const AjPStr thys);
__deprecated ajuint ajSp32Crc(const AjPStr thys);
__deprecated ajint ajPosMod (ajint a, ajint b);
__deprecated float ajGeoMean(const float *s, ajint n);
__deprecated double ajGaussProb (float mean, float sd, float score);
__deprecated ajuint ajMathPosI(ajuint len, ajuint imin, ajint ipos);
__deprecated ajuint ajMathPos(ajuint len, ajint ipos);
__deprecated float ajDegToRad (float degrees);
__deprecated float ajRadToDeg (float radians);
__deprecated void ajPolToRec (float radius, float angle,
float *x, float *y);
__deprecated void ajRecToPol (float x, float y,
float *radius, float *angle);
#endif
#ifdef __cplusplus
}
#endif
|