Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.03 KB | None | 0 0
  1. // problem10.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include "math.h"
  7.  
  8. using namespace std;
  9.  
  10. int _tmain(int argc, _TCHAR* argv[])
  11. {
  12.     locale::global(locale(""));
  13.     float x, y, y1, y2, y3;
  14.  
  15.     cout<<"Задание 1"<<'\n';
  16.         wcout<<'\n';
  17.  
  18.     cout<<"y0=x+1"<<'\t'<<'\t'<<'\t';
  19.         wcout<<"y1=cos7x+sqrt2x"<<'\t'<<'\n';
  20.             wcout<<'\n';
  21.                 wcout<<"y2=sin8x+5|x^7|"<<'\t'<<'\t';
  22.                     wcout<<"y3=arctg^3(sqrtX-3x^3)"<<'\t'<<'\n';
  23.                         wcout<<'\n';
  24. wcout<<'\t';
  25.     cout<<"Введите икс";
  26.             cout<<"=";
  27.                 cin>>x;
  28.                     cout<<'\n';
  29.     y=x+1;
  30.     cout<<'\t';
  31.         cout<<"y0=";
  32.             cout<<y<<'\n';
  33.                 cout<<'\n';
  34.     y1=cos(7*x)+sqrt(2*x);
  35.     cout<<'\t';
  36.         cout<<"y1= ";
  37.             cout<<y1<<'\n';
  38.                 cout<<'\n';
  39.     y2=sin(8*x)+5*abs(pow(x,7));
  40.     cout<<'\t';
  41.         cout<<"y2= ";
  42.             cout<<y2<<'\n';
  43.                 cout<<'\n';
  44.     y3=pow(atan(sqrt(x)-3*pow(x,3)),3);
  45.     cout<<'\t';
  46.         cout<<"y3= ";
  47.             cout<<y3<<'\n';
  48.     cout<<'\n';
  49.     cin>>x;
  50.     return 0;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement