Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- using namespace std;
- void main()
- {
- double N = 10, A = 0.55, B = 1.0;
- double d = (B - A) / (N + 1), x = A;
- double y;
- cout << setw(10) << "x" << setw(10) << "y" << endl;
- while (x <= B) {
- y = sqrt(pow(x, 4.0 / 5) + pow(x, ((4.0 - x) / 5.0))) + log(abs(x - 20.5));
- cout << setw(10) << x << setw(10) << y << endl;
- x += d;
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement