Скачиваний:
4
Добавлен:
01.04.2014
Размер:
598 б
Скачать
#include <iostream.h>
#include <conio.h>
#include <math.h>

int main(){
	const float PI = 3.1415926;
	double x, y, z, a, b, c, res;

	// Ввод исходных данных
	cout << "X =\t";
	cin >> x;	endl;
	cout << "Y =\t";
	cin >> y;	endl;
	cout << "Z = \t";
	cin >> z;	endl;

	// Вычисление формулы
	a = 2 * cos(x - PI/6);
	b = 0.5 + pow(sin(y), 2);
	c = 1 + pow(z, 2)/(3 - pow(z, 2)/5);
	res = a * c / b;

	// Вывод результата
	cout << "\nX = " << x << "\nY = " << y
		<< "\nZ = " << z << "\nResult = " << res << endl;
	cout << "Press any key..." << endl;

	getch();
	return 0;
}
Соседние файлы в папке Zad1
  • #
    01.04.2014598 б4main.cpp
  • #
    01.04.20144.26 Кб3Zad1.dsp
  • #
    01.04.2014531 б3Zad1.dsw
  • #
    01.04.201441.98 Кб3Zad1.ncb
  • #
    01.04.201448.64 Кб3Zad1.opt
  • #
    01.04.2014875 б3Zad1.plg