Risonna

lab3_n2beta

Nov 12th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #include<math.h>
  2. #include<iostream>
  3. #define pi acos(-1.0)
  4. using namespace std;
  5. int main()
  6. {
  7.     setlocale(LC_ALL, "RUS");
  8.     double x, b, h, a, y, i, s, e;
  9.     cout << "x="; cin >> x;
  10.     e = 1.4e-1;
  11.     b = pi;
  12.     h = pi / 25;
  13.     a = pi / 5;
  14.     y = ((x * x) - ((pi * pi) / 3));
  15.     i = 1;
  16.     s = 0;
  17.     for (i = a, i <= b, i=i+h)
  18.     {
  19.         if()//ВОТ ТУТ ДОБАВИТЬ ЧЕ НИБУДЬ
  20.         {
  21.         s += (pow(-1, i) * cos(i * x)) / (i * i);
  22.         ]
  23.         else
  24.         {
  25.         }
  26.     }
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment