Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <math.h>
- using namespace std;
- int main() {
- double x = 0.1, h = 0.05;
- int n = 20;
- while (x < 0.8 + h)
- {
- double y = log(1 - x * x), s = 0;
- for (int i = 1; i <= n; i++)
- s -= pow(x, i * 2) / i;
- cout.precision(4);
- cout << "| " << x << "\t| " << y << "\t| " << s << "\t|" << endl;
- x += h;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement