317-18-guruh talabasi Pirimqulova Zilola.
Amaliy mashg’ulot – 1
Dastur kodi: (Dastur python dasturlash tilida yozilgan)
from math import *
y = 0
x = float(input("x ni kiriting : "))
if x==pi/2:
y = asin(sqrt(x))
print(f'y = asin(sqrt({x}))')
elif x>pi/2:
y = sin(cos(x))
print(f' y = sin(cos({x})')
else:
y = atan(sqrt(x+1))
print(f'y = atan(sqrt({x}+1))')
print(f'y = {y}')
Natija:
C:\Users\99893\PycharmProjects\lab_2\venv\Scripts\python.exe C:/Users/99893/PycharmProjects/lab_2/labaratoriya_1.py
x ni kiriting : 1.1
y = atan(sqrt(1.1+1))
y = 0.966768936013433
Process finished with exit code 0
Do'stlaringiz bilan baham: |