Quick actions

cmd+k|ctrl+k

Navigation

Languages

bikhnevich lab 2(28)

Snippet info

Language

Cpp

Visibility

public

Author

bikhnevichk

Created

2018-10-08T22:19:18Z

Updated

2018-10-09T05:48:31Z

#include <iostream>
#include <cmath>
using namespace std;
int main()

{
	
	double a, b, c, d, f, z, y, x, k;

	cout << "введите a. b, c, d, f, z, y, x \n";

	cin >> a>> b>> c>> d>> f>> z>> y>> x;

	if ((d* pow(x,3) - f == 0) || (sin(x) == 0)) {
		cout << "нет решений";
	}
	else {
		k = pow(cos(x) ,2) / sin(x) - x*y*z + (a*(pow(x,2)) + b*x + c) / (d*(pow(x, 3)) - f);
		cout << k;
	}
	return 0;
}
INFO