Explorar el Código

Добавить 'practical-2/4.3.py'

u25-29kolmykov hace 4 días
padre
commit
d3a34ef7b8
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      practical-2/4.3.py

+ 10 - 0
practical-2/4.3.py

@@ -0,0 +1,10 @@
+from math import sin
+
+x = float(input("Введите x: "))
+
+if x > 0:
+    y = sin(x**2)
+else:
+    y = 1 + 2 * sin(x)**2
+
+print("y =", y)