{"id":972,"date":"2021-07-09T08:50:44","date_gmt":"2021-07-09T08:50:44","guid":{"rendered":"https:\/\/www.bearloga.space\/?page_id=972"},"modified":"2021-07-09T08:50:44","modified_gmt":"2021-07-09T08:50:44","slug":"modul-math","status":"publish","type":"page","link":"https:\/\/www.bearloga.space\/uk\/modul-math\/","title":{"rendered":"\u041c\u043e\u0434\u0443\u043b\u044c math"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c&nbsp;<strong>math<\/strong>&nbsp;\u0432 Python \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044f:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>pow(num, power)<\/strong>: \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 num \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c power<\/li><li><strong>sqrt(num)<\/strong>: \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u043a\u043e\u0440\u0435\u043d\u044c \u0447\u0438\u0441\u043b\u0430 num<\/li><li><strong>ceil(num)<\/strong>: \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0434\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e<\/li><li><strong>floor(num)<\/strong>: \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0434\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e<\/li><li><strong>factorial(num)<\/strong>: \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b \u0447\u0438\u0441\u043b\u0430<\/li><li><strong>degrees(rad)<\/strong>: \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0438\u0437 \u0440\u0430\u0434\u0438\u0430\u043d \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u044b<\/li><li><strong>radians(grad)<\/strong>: \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0438\u0437 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u044b<\/li><li><strong>cos(rad)<\/strong>: \u043a\u043e\u0441\u0438\u043d\u0443\u0441 \u0443\u0433\u043b\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445<\/li><li><strong>sin(rad)<\/strong>: \u0441\u0438\u043d\u0443\u0441 \u0443\u0433\u043b\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445<\/li><li><strong>tan(rad)<\/strong>: \u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0443\u0433\u043b\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445<\/li><li><strong>acos(rad)<\/strong>: \u0430\u0440\u043a\u043a\u043e\u0441\u0438\u043d\u0443\u0441 \u0443\u0433\u043b\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445<\/li><li><strong>asin(rad)<\/strong>: \u0430\u0440\u043a\u0441\u0438\u043d\u0443\u0441 \u0443\u0433\u043b\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445<\/li><li><strong>atan(rad)<\/strong>: \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0443\u0433\u043b\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445<\/li><li><strong>log(n, base)<\/strong>: \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u0447\u0438\u0441\u043b\u0430 n \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044e base<\/li><li><strong>log10(n)<\/strong>: \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u0447\u0438\u0441\u043b\u0430 n<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br>21<br>22<br>23<br>24<br>25<br>26<br>27<br>28<br>29<br>30<br>31<br>32<br>33<\/td><td><code>import<\/code> <code>math<\/code>\u00a0<br><code># \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 2 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c 3<\/code><br><code>n1 =<\/code> <code>math.pow(2, 3)<\/code><br><code>print(n1)\u00a0 <\/code><br><code># 8<\/code><br>\u00a0<code># \u0442\u0443 \u0436\u0435 \u0441\u0430\u043c\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0442\u0430\u043a<\/code><br><code>n2 =<\/code> <code>2**3<\/code><br><code>print(n2)<\/code>\u00a0<br><code># \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442<\/code><br><code>print(math.sqrt(9))\u00a0 <\/code><br><code># 3<\/code>\u00a0<br><code># \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<\/code><br><code>print(math.ceil(4.56))\u00a0 <\/code><br><code># 5<\/code>\u00a0<br><code># \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<\/code><br><code>print(math.floor(4.56))\u00a0<\/code><br><code> # 4<\/code><br>\u00a0<code># \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0438\u0437 \u0440\u0430\u0434\u0438\u0430\u043d \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u044b<\/code><br><code>print(math.degrees(3.14159))\u00a0<\/code><br><code> # 180<\/code><br>\u00a0<code># \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0438\u0437 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u044b<\/code><br><code>print(math.radians(180))\u00a0\u00a0<\/code><br><code> # 3.1415.....<\/code><br><code># \u043a\u043e\u0441\u0438\u043d\u0443\u0441<\/code><br><code>print(math.cos(math.radians(60)))\u00a0<\/code><br><code> # 0.5<\/code><br><code># c\u0438\u043d\u0443\u0441<\/code><br><code>print(math.sin(math.radians(90)))\u00a0\u00a0 # 1.0<\/code><br><code># \u0442\u0430\u043d\u0433\u0435\u043d\u0441<\/code><br><code>print(math.tan(math.radians(0)))\u00a0\u00a0\u00a0 # 0.0<\/code>\u00a0<br><code>(math.log(8,2))\u00a0\u00a0\u00a0 # 3.0<\/code><br><code>print(math.log10(100))\u00a0\u00a0\u00a0 # 2.0<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0434\u0443\u043b\u044c math \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u044f\u0434 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a PI \u0438 E:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<\/td><td><code>import<\/code> <code>math<\/code><br><br><code>radius =<\/code> <code>30<\/code><br><code># \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u0440\u0443\u0433\u0430 \u0441 \u0440\u0430\u0434\u0438\u0443\u0441\u043e\u043c 30<\/code><br><code>area =<\/code> <code>math.pi *<\/code> <code>math.pow(radius, 2)<\/code><br><code>print(area)<\/code>\u00a0<br><code># \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u0447\u0438\u0441\u043b\u0430 10<\/code><br><code>number =<\/code> <code>math.log(10, math.e)<\/code><br><code>print(number)<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c&nbsp;math&nbsp;\u0432 Python \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044f: pow(num, power): [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[76],"tags":[],"class_list":["post-972","page","type-page","status-publish","hentry","category-rukovodstvo-po-yazyku-programmirovaniya-python"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/comments?post=972"}],"version-history":[{"count":0,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/972\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/media?parent=972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/categories?post=972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/tags?post=972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}