Advertisement
2607

s21_math.h

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