Advertisement
Nexon

Untitled

Dec 9th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <math.h>
  4.  
  5. using namespace std;
  6.  
  7. void main() {
  8.     setlocale(LC_ALL, "Russian");
  9.  
  10.     double a = 1.12;
  11.     double o = 2.2;
  12.     double x;
  13.     double f;
  14.  
  15.     for(o;o<=3.2;o+=0.25){
  16.         x = tan(o)+a;
  17.         f = 0.5*pow(x, 3.0) - log(fabs(x - 5));
  18.         cout<<"o = "<<o<<"   \t x = "<<x<<"\t f = "<<f<<endl;
  19.     }
  20.  
  21.     system("PAUSE");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement