Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <math.h>
- using namespace std;
- void main() {
- setlocale(LC_ALL, "Russian");
- double a = 1.12;
- double o = 2.2;
- double x;
- double f;
- for(o;o<=3.2;o+=0.25){
- x = tan(o)+a;
- f = 0.5*pow(x, 3.0) - log(fabs(x - 5));
- cout<<"o = "<<o<<" \t x = "<<x<<"\t f = "<<f<<endl;
- }
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement