5.2. math moduli Ichki math moduli Pythonda matemetik, trigonometrik va logarifimik amallarni bajaruvchi funksiyalarni o‟zida jamlaydi. Quyida ulardan bir nechtasi sanab o‟tilgan: pow(num, power) – num sonnini power darajaga ko‟taradi; sqrt(num) – num sonini kvadratik ildizga oladi; ceil(num) – soni eng yaqin katta butun songacha yaxlitlaydi; floor(num) – soni eng yaqin kichik butun songacha yaxlitlaydi; factorial(num) – sonning faktorialini hisoblaydi; degrees(rad) – radiandan gradusga o‟tkazadi; radians(grad) – gradusdan radianga o‟tkazadi; cos(rad) – radianda burchak kosinusini hisoblaydi; sin(rad) – radianda burchak sinusini hisoblaydi; tan(rad) – radianda burchak tangensini hisoblaydi; acos(rad) – radianda burchak arkkosinusini hisoblaydi; asin(rad) – radianda burchak arksinusini hisoblaydi; atan(rad) – radianda burchak arktangensini hisoblaydi; log(n, base) – base asosga ko‟ra n ning logorifimini hisoblaydi;
log10(n) – n sonning o‟nli logorifimini hisoblaydi.