Guruh talabasi no`’monov saidakbarning python tilida dasturlash fanidan mustaqil ishi


Download 30.36 Kb.
bet5/5
Sana24.12.2022
Hajmi30.36 Kb.
#1056585
1   2   3   4   5
Bog'liq
NO`\'MONOV SAIDAKBAR MUSTAQIL ISH

math.pi - pi = 3,1415926...



math.e - e = 2,718281...














Modul matematika va Python
Python biblioteka matematika soderjit naibolye primenyaemye matematicheskiye funksii va konstants. Vse chisleniya proisxodyat na mnojestve real chisel.

Yesli vam nujen sootvetstvuyuyiiy apparati dlya kompleksnogo ischisleniya, modul matematika ne podoydyot. Ispolzuyte vmesto nego cmath. U yerda siz naydyote kompleksnye versii bolshinstva populyarnyx math-funksiy.


Sintaksis va podklyucheniye


Nima podklyuchit moduli, neobxodimo v nachale dasturlari propisat sleduyuuyuyu instruksiyu:




import matematika
Teper s helpyu tochechnoy notatsii mojno obraschatsya k konstantam men vyzyvat funksii etoy biblioteki. Masalan, shunday qilib:

math.log()


Matematika moduli doimiylar
math.pi
Predstavleniye matematicheskoy konstantalari p = 3,141592…. "Pi" - eto otnosheniye uzunligi okrujnosti k yeyo diametru.

Download 30.36 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5




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