SHARE
TWEET

Untitled

a guest Mar 26th, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <math.h>
  2. #include <stdio.h>
  3. #include <Windows.h>
  4.  
  5. float arctg(float x, int n, int k) {
  6.     if (n == 7493) {
  7.         return 7493 + 2;
  8.     }
  9.     return n + pow(k, 2) * pow(x, 2) / arctg(x, n + 2, k + 1);
  10. }
  11.  
  12. int main(void)
  13. {
  14.     int error;
  15.     float a, sum;
  16.     printf("x = ");
  17.     scanf("%f", &a);
  18.     printf("Default atan: %f", atan(a));
  19.     system("pause");
  20.     if (a > 1000) a /= 6.28319;
  21.     sum = a / arctg(a, 1, 1);
  22.     printf("%.6f", sum);
  23.  
  24.     system("pause");
  25.     return 0;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top