GVA SUPPORT

³äïîâ³äü íà çàïèòàííÿ ¹ 1325447245
Text:
	ԲΠ= Ãîðáà÷åíêî Â.À.

 Çàïèòàííÿ:// ÏÎÄÊËÞ×ÅÍÍÛÅ ÁÈÁËÈÎÒÅÊÈ
#include <iostream>  // ÁÈÁËÈÎÒÅÊÀ ÂÂÎÄÀ/ÂÛÂÎÄÀ
#include <math.h>    // ÁÈÁËÈÎÒÅÊÀ  ÊÎÒÎÐÎÉ ÍÀÕÎÄßÒÜÑß ÌÀÒÅÌÀÒÈ×ÅÑÊÈÅ ÔÓÍÊÖÈÈ
#include <stdio.h>   // ÁÈËÈÎÒÅÊÀ ÂÂÎÄÀ/ÂÛÂÎÄÀ
#include <iomanip.h>
using namespace std; // ÒÀÊ ÍÀÄÎ äëÿ cout è äëÿ cin

//------------------------------------------------------------------------------

void Enter(double &a1, double &b1, double &c1, double &n1){
        cout<<" Enter a : "; cin>>a1;
        cout<<" Enter b : "; cin>>b1;
        cout<<" Enter c : "; cin>>c1;
        cout<<" Enter n : "; cin>>n1;
}
int main()
{
        double
                x_nach  = -0.3,
                x_kon   = -0.1,
                dx      = 0.02,
                a       = -2,
                b       =  2,
                c       = 25,
                n       = 1.2;
        //Enter(a,b,c,n);
        cout<<endl;
        for (double x = x_nach ; x <= x_kon ; x +=dx)
        {
                double t2
                =
                 (1 / (a * ( n - 1 )))
                 *
                 (sin(a*x)/(pow(cos(a*x),n-1)));

                 cout.precision(2);
                 cout.setf(ios::left);
                 cout<<setw(5)<<x<<setw(5)<<" ";

                 cout.precision(5);
                 cout.setf(ios::right);
                 cout<<setw(5)<<t2<<endl;
        }
        system("pause");
        return 0;
}

====================================	
Âàøà â³äïîâ³äü