Explorar el Código

Добавить 'Практическая_2/4.3.py'

u25-29radionceva hace 3 días
padre
commit
895fc3aecb
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      Практическая_2/4.3.py

+ 10 - 0
Практическая_2/4.3.py

@@ -0,0 +1,10 @@
+import math
+
+x = -2
+
+if x > 0:
+    y = math.sin(x ** 2)
+else:
+    y = 1 + 2 * math.sin(x) ** 2
+
+print("y =", y)