ĐỒ ÁN 16.12.2011 (Thầy Thư) | |
File Size: | 262 kb |
File Type: |
CODE HÀM PART 1 (Thầy Thư) | |
File Size: | 4 kb |
File Type: | rar |
CODE HÀM PART 2 (Thầy Thư) | |
File Size: | 1 kb |
File Type: | rar |
CODE HÀM PART 3 (Thầy Thư) | |
File Size: | 43 kb |
File Type: | rar |
Định dạng dữ liệu nhập xuất (Thầy Thư) | |
File Size: | 277 kb |
File Type: |
Các cấu trúc điều khiển (Thầy Thư) | |
File Size: | 174 kb |
File Type: |
__
Thư viện : các hàm cho số double (Thầy Thư)
/* Constants rounded for 21 decimals. */
#define M_E 2.71828182845904523536
#define M_LOG2E 1.44269504088896340736
#define M_LOG10E 0.434294481903251827651
#define M_LN2 0.693147180559945309417
#define M_LN10 2.30258509299404568402
#define M_PI 3.14159265358979323846
#define M_PI_2 1.57079632679489661923
#define M_PI_4 0.785398163397448309616
#define M_1_PI 0.318309886183790671538
#define M_2_PI 0.636619772367581343076
#define M_1_SQRTPI 0.564189583547756286948
#define M_2_SQRTPI 1.12837916709551257390
#define M_SQRT2 1.41421356237309504880
#define M_SQRT_2 0.707106781186547524401
/* Trị tuyệt đối */
int abs (int x); long labs (long x); double fabs (double x);
/* Ceiling and Floor */
double ceil (double x); double floor (double x);
/* Căn bậc 2, ex, logarit, xy, 10p */
double sqrt (double x); double exp (double x); double log (double x); double log10 (double x); double pow (double x, double y); double pow10 (int p);
/* Hàm lượng giác */
double cos (double x); double sin (double x); double tan (double x);
/* Hàm lượng giác ngược */
double acos (double x); // arccos(x) double asin (double x); // arcsin(x) double atan (double x); // arctg(x) double atan2 (double y, double x); // arctg(y/x)
/* Hàm hyperbolic */
double cosh (double x); // (ex + e-x)/2 double sinh (double x); // (ex - e-x)/2 double tanh (double x); // sinh(x)/cosh(x)
/* Giá trị đa thức a[n]*xn + a[n-1]*xn-1 +...+
a[1]*x + a[0] */
double poly (double x, int n, double a[]);
Thư viện : các hàm cho số double (Thầy Thư)
/* Constants rounded for 21 decimals. */
#define M_E 2.71828182845904523536
#define M_LOG2E 1.44269504088896340736
#define M_LOG10E 0.434294481903251827651
#define M_LN2 0.693147180559945309417
#define M_LN10 2.30258509299404568402
#define M_PI 3.14159265358979323846
#define M_PI_2 1.57079632679489661923
#define M_PI_4 0.785398163397448309616
#define M_1_PI 0.318309886183790671538
#define M_2_PI 0.636619772367581343076
#define M_1_SQRTPI 0.564189583547756286948
#define M_2_SQRTPI 1.12837916709551257390
#define M_SQRT2 1.41421356237309504880
#define M_SQRT_2 0.707106781186547524401
/* Trị tuyệt đối */
int abs (int x); long labs (long x); double fabs (double x);
/* Ceiling and Floor */
double ceil (double x); double floor (double x);
/* Căn bậc 2, ex, logarit, xy, 10p */
double sqrt (double x); double exp (double x); double log (double x); double log10 (double x); double pow (double x, double y); double pow10 (int p);
/* Hàm lượng giác */
double cos (double x); double sin (double x); double tan (double x);
/* Hàm lượng giác ngược */
double acos (double x); // arccos(x) double asin (double x); // arcsin(x) double atan (double x); // arctg(x) double atan2 (double y, double x); // arctg(y/x)
/* Hàm hyperbolic */
double cosh (double x); // (ex + e-x)/2 double sinh (double x); // (ex - e-x)/2 double tanh (double x); // sinh(x)/cosh(x)
/* Giá trị đa thức a[n]*xn + a[n-1]*xn-1 +...+
a[1]*x + a[0] */
double poly (double x, int n, double a[]);