00001 00002 #ifndef __JBXL_MATH_LIBRARY_H_ 00003 #define __JBXL_MATH_LIBRARY_H_ 00004 00005 00014 #include "common.h" 00015 #include <math.h> 00016 00017 00018 00019 extern double EPS; 00020 00021 00022 00023 double comb(int n, int i); 00024 double perm(int n, int i); 00025 double fact(int n); 00026 double power(double x, double y); 00027 00028 00029 typedef double (*PTR_DFFUNC)(double); 00030 00031 int newton_method(PTR_DFFUNC fn, PTR_DFFUNC df, double* t, double e); 00032 00033 00034 00035 00036 #endif