0% found this document useful (0 votes)
3 views6 pages

2-Lab. Java

The document contains multiple Java code snippets demonstrating the use of variables and data types in mathematical computations. Each code block calculates a result based on various mathematical functions and prints the output. The focus is on manipulating variables and performing operations like trigonometric functions, logarithms, and powers.

Uploaded by

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

2-Lab. Java

The document contains multiple Java code snippets demonstrating the use of variables and data types in mathematical computations. Each code block calculates a result based on various mathematical functions and prints the output. The focus is on manipulating variables and performing operations like trigonometric functions, logarithms, and powers.

Uploaded by

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

Sarvarbek Vaxobov

2-Laboratoriya ishi

Mavzu: O‘zgaruvchilar va ma’lumotlar turlari bilan ishlash


Vazifalar:
2.

public class Main {


public static void main(String[] args) {
double y = 1.0;
double h = 1.0;

double surati = Math.tan(Math.pow(y, 3) - Math.pow(h, 4)) +


Math.pow(h, 4);
double mahraji = Math.pow(Math.sin(h), 3) + y;
double result = surati / mahraji;

System.out.println("A = " + result);


}
}
4.

public class Main {


public static void main(String[] args) {
double x = 2.0;
double y = 3.0;
double z = 4.0;
double c = 1.5;

double surat = (Math.tan(Math.pow(x, 4) - 6) - Math.pow(Math.cos(z +


x * y), 3));
double maxraj = (Math.pow(Math.cos(Math.pow(x, 3) * Math.pow(c, 2)),
4));
double result = surat / maxraj;
System.out.println("Natija: " + result);
}
}
6.

public class Main {


public static void main(String[] args) {
double x = 2.0;
double y = 3.0;
double a = 1.0;

double surat = (Math.cos(Math.pow(x, 3) + 6) - Math.sin(y - a));


double maxraj = (Math.log(Math.pow(x, 4)) - 2 * Math.pow(Math.sin(x),
5));
double result = surat / maxraj;
System.out.println("Natija: " + result);
}
}
8.

public class Main {


public static void main(String[] args) {
double y = 3.0;
double t = 2.0;

double surat = (4.351 * Math.pow(y, 3) + 2 * t * Math.log(t));


double maxraj = Math.sqrt(Math.cos(2 * y) + 4.351);
double result = surat / maxraj;
System.out.println("Natija: " + result);
}
}
10.

public class Main {


public static void main(String[] args) {
double y = 3.0;
double x = 2.0;
double b = 1.5;
double c = 1.0;
double a = 2.0;

double surat = (Math.pow(Math.tan(y), 3) + Math.pow(Math.sin(x), 5) *


Math.sqrt(b - c));
double maxraj = Math.sqrt(a - b + c);
double result = surat / maxraj;
System.out.println("Natija: " + result);
}
}
12.

public class Main {


public static void main(String[] args) {
double x = 2.0;
double y = 3.0;

double surat = Math.cos(Math.pow(x, 2) + 2) + (3.5 * Math.pow(x, 2) +


1);
double maxraj = Math.pow(Math.cos(y), 2);
double result = surat / maxraj;

System.out.println("Natija: " + result);


}
}

You might also like