Quick actions

cmd+k|ctrl+k

Navigation

Languages

Lab 2(28)

Snippet info

Language

Cpp

Visibility

public

Author

buteskul5.6

Created

2018-09-26T09:45:19Z

Updated

2018-09-26T09:54:42Z

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

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

	cout << "enter b, c, d, f, z, y, x \n";

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

	if ((d* pow(x,3) - f == 0) || (sin(x) == 0))
	{
		cout << "no solutions";
	}
	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