Advertisement
2607

math.h

Dec 3rd, 2021
1,506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.55 KB | None | 0 0
  1. #ifndef SRC_S21_MATH_H_
  2. #define SRC_S21_MATH_H_
  3. #define s21_PI 3.141592653589793238462643383279502884197169399375105820974944 // типо 60(на самом деле 15 или 16) знаков после запятой
  4. #define s21_PI_2 314.1592653589793238462643383279502884197169399375105820974944
  5. #define s21_PI_3 3141.592653589793238462643383279502884197169399375105820974944
  6. #define s21_PI_4 31415.92653589793238462643383279502884197169399375105820974944
  7. #define s21_PI_5 314159.2653589793238462643383279502884197169399375105820974944
  8. #define s21_PI_6 3141592.653589793238462643383279502884197169399375105820974944
  9. #define s21_PI_7 31415926.53589793238462643383279502884197169399375105820974944
  10. #define s21_PI_8 314159265.3589793238462643383279502884197169399375105820974944
  11. #define s21_PI_9 3141592653.589793238462643383279502884197169399375105820974944
  12. #define s21_PI_10 31415926535.89793238462643383279502884197169399375105820974944
  13. #define s21_PI_11 (long double)314159265358.9793238462643383279502884197169399375105820974944
  14.  
  15. long int s21_abs(int x);
  16. long double s21_acos(double x);
  17. long double s21_asin(double x);
  18. long double s21_atan(double x);
  19. long double s21_ceil(double x);
  20. long double s21_cos(double x);
  21. long double s21_exp(double x);
  22. long double s21_fabs(double x);
  23. long double s21_floor(double x);
  24. long double s21_fmod(double x, double y);
  25. long double s21_log(double x);
  26. long double s21_pow(double base, double exp);
  27. long double s21_sin(double x);
  28. long double s21_sqrt(double x);
  29. long double s21_tan(double x);
  30.  
  31. #endif  // SRC_S21_MATH_H_
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement