Amaliy mashg’ulot – 1


Download 178.9 Kb.
Sana04.11.2020
Hajmi178.9 Kb.
#140906
Bog'liq
DUVPL-1


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

Download 178.9 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling