0% found this document useful (0 votes)
21 views

C

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

C

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

#include <iostream>

#include <math.h>

using namespace std;

int main() {

float x, y;

// x va y ni kiritamiz

cout << "x= ";

cin >> x;

cout << "y= ";

cin >> y;

// A ni qiymatini hisoblash

float numerator_A = log(fabs(pow(x, 2) + 2 * y));

float denominator_A = pow(x, 2) + 2 * y + exp(x);

float A = pow(cos(pow(x, 2) + 2 * y), 2) + (numerator_A / denominator_A);

// B ni qiymatini hisoblash

float numerator_B = (pow(x, 2) + 2 * y) * (A + x);

float denominator_B = sin(exp(x)) + 4.3 * pow(A, 2);

float B = sqrt(numerator_B / denominator_B)+ pow((x * y),0.25);

cout << "A = " << A <<endl;


cout << "B = " << B <<endl;

return 0;

#include <iostream>

#include <math.h>

using namespace std;

int main() {

double x, y;

cout << "x: ";

cin >> x;

const double pi = 3.141;


if (x > 0.3) {

y = pow(sin(2 * x), 2) - pow(cos(x), 2); // y = sin^2(2x) - cos^2(x)

} else {

y = 1 / (pow(x, 2) - sqrt(pi)); // y = 1 / (x^2 - sqrt(pi))

cout << "y = " << y <<endl;

return 0;

}
#include <iostream>

#include <math.h>

using namespace std;

int main() {

double z, x, y, a, c;

cout << "z: ";

cin >> z;

cout << "a: ";

cin >> a;

cout << "c: ";

cin >> c;

if (z <= 1) {

x = pow(z, 2) + 1; // x = z^2 + 1 if z <= 1

} else {

x = 1 / sqrt(z - 1); // x = 1/sqrt(z - 1) if z > 1

y = a * pow(sin(pow(x, 2) - 1), 3) + c * log(fabs(x)) + exp(x);

cout << "x = " << x <<endl;

cout << "y = " << y <<endl;

return 0;

You might also like