Skip to content

Commit ea64a7b

Browse files
committed
txdcfyl;
1 parent 2e1323c commit ea64a7b

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

programming/sem1/lab1/1.odt

2.18 KB
Binary file not shown.

programming/sem1/lab1/1.pdf

1.97 KB
Binary file not shown.

programming/sem1/lab1/Lab1.class

1.77 KB
Binary file not shown.

programming/sem1/lab1/Lab1.jar

1.56 KB
Binary file not shown.

programming/sem1/lab1/Lab1.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
* Программа для первой лабы
33
*/
44
public class Lab1 {
5-
public static void main(String[] args) {
5+
public static void main(String... args) {
66
long[] z = new long[14];
77
for (int i = 2; i <= 15; i++) {
88
z[i-2] = (long) i; // int -> long
99
}
1010

1111
float[] x = new float[12];
1212
for (int i = 0; i < 12; i++) {
13-
float random_num = (float) Math.random(); // double -> float
14-
x[i] = -15 + random_num*28;
13+
float randomNum = (float) Math.random(); // double -> float
14+
x[i] = -15 + randomNum*28;
1515
}
1616

1717
zOut(
@@ -78,7 +78,7 @@ public static float cond2(float x){
7878
float result = (float) Math.tan(
7979
Math.cos(
8080
Math.pow(
81-
x - 1/4,
81+
x - 0.25,
8282
x
8383
)
8484
)

0 commit comments

Comments
 (0)