-
KTKadyshev authoredKTKadyshev authored
series.cpp 618 B
#include <iostream>
#include <cmath>
#include <limits>
#include <iomanip>
using namespace std;
#include "functions.h"
int main()
{
cout << "\t25.02.2022 Kadyshev K \n\n"\
"\t (i!) (2i - 1)\n"\
"\t (-1) * x \n"\
"\tG(x, i) = --------------------\n"\
"\t i \n"\
"\t x + cos(ix) \n\n";
ldouble_t x = 16;
int N = 0;
cout << "\tx> ";
cin >> x;
cout << "\tN> ";
cin >> N;
cout << "\n\n\tF("<<x<<", "<<N<<") = " << F(x, N) << "\n";
return 0;
}