Добавил:
НГТУ. Автоматизация машиностроения. Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

1semestr / LR1 / ЛР1задача1а

.txt
Скачиваний:
2
Добавлен:
05.04.2023
Размер:
647 б
Скачать
// 1A.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include "math.h"
#include "iostream" 
using namespace std; 
int _tmain(int argc, _TCHAR* argv[])
{
	double x, y, z, g, f1; 
	system("color F0");
	cout <<"input x\n"; 
	cin >> x;
	y = cos(x / 7) + ((20 * x) / (x + 3.2)) - pow((1 / (x - 5)),20);   cout << "y=" << y << endl;
	z = log(fabs(pow(x - 1, 1 / 3.))); cout << "z=" << z << endl;
	g = sin(0.96*x*x + (1. / x));  cout << "g=" << g << endl;
	if (y > z)
		f1 = y;
	else
		f1 = z; 
	cout << "f1=" << f1 << endl;
	system("pause"); 
	return 0;
}
Соседние файлы в папке LR1