{"id":323985,"date":"2021-05-29T21:00:24","date_gmt":"2021-05-29T21:00:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=323985"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=323985","title":{"rendered":"\u0412 \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0435: \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0442\u0438\u043a\u0430 \u043d\u0430 Python \u0438 Mathcad (\u0447\u0430\u0441\u0442\u044c 1)"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041f\u0443\u0441\u0442\u044c \u0432 \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0435 \u0436\u0438\u0432\u0443\u0442 \u0440\u044b\u0431\u043a\u0438 \u0434\u0432\u0443\u0445 \u0446\u0432\u0435\u0442\u043e\u0432. <\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.  \u0417\u0430\u0434\u0430\u0434\u0438\u043c \u0447\u0438\u0441\u043b\u043e \u0440\u044b\u0431\u043e\u043a n=100 \u0438 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c\u0441\u044f \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 color \u21160 \u0438\u043b\u0438 \u21161, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 (x,y).  \u0422.\u0435. x, y, \u0438 color \u2014 \u044d\u0442\u043e \u0442\u0440\u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0434\u043b\u0438\u043d\u044b n, \u0430 \u0442\u0440\u0435\u0442\u044c\u044e (z-) \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0443 \u043c\u044b \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c.<\/p>\n<pre><code class=\"python\">%matplotlib inline import numpy as np import matplotlib.pyplot as plt n = 100 x, y = np.random.rand(n), np.random.rand(n) color = np.random.randint(0, 2, n) plt.scatter(x, y, c=color)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/28c\/5a3\/ac0\/28c5a3ac038a9c03ee9794bb4aa62650.png\" alt=\"\u041c\u043e\u0434\u0435\u043b\u044c \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0430\" title=\"\u041c\u043e\u0434\u0435\u043b\u044c \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0430\" width=\"832\" height=\"551\"><figcaption>\u041c\u043e\u0434\u0435\u043b\u044c \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0430<\/figcaption><\/figure>\n<p>\u0422\u0435 \u0436\u0435 \u0442\u0440\u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0432 <a href=\"https:\/\/habr.com\/ru\/company\/nerepetitor\/blog\/247999\/\" rel=\"noopener noreferrer nofollow\">Mathcad Express<\/a> \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6ce\/266\/2e8\/6ce2662e8ad2c3a055259403c941b118.png\" alt=\"\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0432 Mathcad Express\" title=\"\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0432 Mathcad Express\" width=\"829\" height=\"341\"><figcaption>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0432 Mathcad Express<\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 x,y \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0441 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u043e\u0442\u0440\u0435\u0437\u043a\u0435 (0, 1), \u0430 \u0434\u043b\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u0430 color \u2014 \u0431\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u043e\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u043f\u043e\u0434\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u043d\u0435\u0442\u044b. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u0440\u043e\u0437\u044b\u0433\u0440\u044b\u0448\u0435 \u0432 Mathcad \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c 47 \u0440\u044b\u0431\u043e\u043a \u21161 \u0438 100-47=53 \u0440\u044b\u0431\u043e\u043a \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430.  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0433\u043b\u0430\u0432\u043d\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443: \u043f\u043e\u0447\u0435\u043c\u0443 \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u044b\u0431\u043a\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0442 \u0446\u0432\u0435\u0442\u043e\u043c \u043d\u043e\u043c\u0435\u0440 0 \u0438\u043b\u0438 1? <\/p>\n<p>\u0412\u0441\u0435 \u0434\u0435\u043b\u043e \u0437\u0434\u0435\u0441\u044c \u0432 \u0433\u0435\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 \u0432 \u0431\u0438\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0442\u0435\u043b\u043e \u0440\u044b\u0431\u043a\u0438. \u0413\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0436\u0438\u0432\u044b\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430, \u0434\u0430\u0436\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430, \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0445\u0438\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u0430\u0432\u0443, \u043f\u0440\u0438\u0447\u0435\u043c \u0432 &#171;\u0434\u043b\u0438\u043d\u043d\u044b\u0445&#187; \u043c\u043e\u043b\u0435\u043a\u0443\u043b\u0430\u0445 \u0431\u0438\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u043b\u0438\u043c\u0435\u0440\u043e\u0432, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432\u0441\u0435 \u0436\u0438\u0432\u043e\u0435, \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0430  \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%93%D0%B5%D0%BD\" rel=\"noopener noreferrer nofollow\">\u0433\u0435\u043d\u043e\u043c<\/a>. <\/p>\n<p>\u0421\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0433\u0435\u043d\u043e\u0432 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0436\u0438\u0432\u043e\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%93%D0%B5%D0%BD%D0%BE%D1%82%D0%B8%D0%BF\" rel=\"noopener noreferrer nofollow\">\u0433\u0435\u043d\u043e\u0442\u0438\u043f\u043e\u043c<\/a>, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434. \u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0433\u0435\u043d\u043e\u0442\u0438\u043f \u043a\u0430\u0436\u0434\u043e\u0439 \u0440\u044b\u0431\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0435\u0435 \u0446\u0432\u0435\u0442. \u0412 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043c\u043e\u0434\u0435\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0446\u0432\u0435\u0442 \u0440\u044b\u0431\u043a\u0438 (0 \u0438\u043b\u0438 1) \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043e\u0434\u0438\u043d \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0433\u0435\u043d (&#171;\u0433\u0435\u043d \u0446\u0432\u0435\u0442\u0430&#187;). \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f (\u043e\u0434\u0438\u043d \u0433\u0435\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0446\u0432\u0435\u0442) \u0438\u043c\u0435\u043b\u0430 \u043c\u0435\u0441\u0442\u043e \u0432 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%97%D0%B0%D0%BA%D0%BE%D0%BD%D1%8B_%D0%9C%D0%B5%D0%BD%D0%B4%D0%B5%D0%BB%D1%8F\" rel=\"noopener noreferrer nofollow\">\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u044b\u0442\u0430\u0445 \u0413\u0440\u0435\u0433\u043e\u0440\u0430 \u041c\u0435\u043d\u0434\u0435\u043b\u044f<\/a>, \u043e\u0441\u043d\u043e\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u0438\u043a\u0430 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0442\u0438\u043a\u0438, \u0441 \u0440\u0430\u0441\u0442\u0435\u043d\u0438\u044f\u043c\u0438 \u0433\u043e\u0440\u043e\u0445\u0430, \u0430 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043e\u043a\u0440\u0430\u0441\u0430 \u0441\u043e\u0431\u0430\u043a-\u0442\u0430\u043a\u0441) \u043d\u0430 \u0446\u0432\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0438 \u0432\u043b\u0438\u044f\u0435\u0442 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0433\u0435\u043d\u043e\u0432.<\/p>\n<p>\u041a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0433\u0435\u043d\u044b \u043a\u043e\u0434\u0438\u0440\u0443\u044e\u0442 \u0446\u0432\u0435\u0442? \u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u0433\u0435\u043d \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0432\u0443\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%90%D0%BB%D0%BB%D0%B5%D0%BB%D0%B8\" rel=\"noopener noreferrer nofollow\">\u0430\u043b\u043b\u0435\u043b\u044f\u043c\u0438 <\/a>(\u044f \u0431\u0443\u0434\u0443 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u0434\u043b\u044f \u0431\u0438\u043e\u043b\u043e\u0433\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435). \u0412 \u0433\u0435\u043d\u0435\u0442\u0438\u043a\u0435 \u0438\u0445 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u043e\u0439 \u0438 \u0441\u0442\u0440\u043e\u0447\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0410 \u0438 \u0430). \u042f \u0431\u0443\u0434\u0443 \u0447\u0430\u0449\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0446\u0438\u0444\u0440\u043e\u0439 \u0410=0, \u0430=1.<\/p>\n<p>\u041a\u0430\u0436\u0434\u043e\u0435 \u0440\u0430\u0441\u0442\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u043e\u0445\u0430 \u0432 \u043e\u043f\u044b\u0442\u0430\u0445 \u041c\u0435\u043d\u0434\u0435\u043b\u044f \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u0440\u044b\u0431\u043a\u0430 \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0430 \u043d\u0435\u0441\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0434\u0432\u0443\u0445 \u0430\u043b\u043b\u0435\u043b\u044f\u0445, \u0442.\u0435. \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439:<\/p>\n<ul>\n<li>\n<p><strong>\u0410\u0410 <\/strong>\u0438\u043b\u0438 00<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0430 <\/strong>(\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0430\u0410) \u0438\u043b\u0438 01<\/p>\n<\/li>\n<li>\n<p><strong>\u0430\u0430<\/strong> \u0438\u043b\u0438 11<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0440\u044b\u0431\u043a\u0430 \u043d\u0435\u0441\u0435\u0442 \u0433\u0435\u043d \u0446\u0432\u0435\u0442\u0430 \u0410\u0410 \u0438\u043b\u0438 \u0410\u0430, \u0442\u043e \u043e\u043d\u0430 \u0441\u0435\u0440\u0430\u044f, \u0430 \u0435\u0441\u043b\u0438 \u0430\u0430 \u2014 \u0436\u0435\u043b\u0442\u0430\u044f. \u0422.\u0435. \u0442\u0438\u043f \u0433\u0435\u043d\u0430 \u0410 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442  \u0442\u0438\u043f \u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0410 (0) \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%94%D0%BE%D0%BC%D0%B8%D0%BD%D0%B0%D0%BD%D1%82%D0%BD%D0%BE%D1%81%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043c\u0438\u043d\u0430\u0442\u043d\u044b\u043c<\/a>, \u0430 \u0430 (1) \u2014 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A0%D0%B5%D1%86%D0%B5%D1%81%D1%81%D0%B8%D0%B2%D0%BD%D1%8B%D0%B9_%D0%BF%D1%80%D0%B8%D0%B7%D0%BD%D0%B0%D0%BA\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u0446\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u043c<\/a>.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0440\u0430\u0441\u0447\u0435\u0442 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043a\u0438 \u043f\u043e \u0435\u0435 \u0433\u0435\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043a\u043e\u0434\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043b\u044f i-\u0439 \u0440\u044b\u0431\u043a\u0438 \u0431\u0443\u0434\u0435\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u0438\u0437 \u0434\u0432\u0443\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0430 \u0433\u0435\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043e\u0441\u0442\u0430\u0432 \u0432\u0441\u0435\u0439 \u043f\u043e\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u2014 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u0430\u0442\u0440\u0438\u0446\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0410\u0430. \u041f\u0443\u0441\u0442\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u0440\u0438 \u0440\u044b\u0431\u043a\u0438, \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441 \u0440\u0430\u0432\u043d\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435\u0441\u0435\u0442 \u0433\u0435\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u0434 00, 10, 01 \u0438\u043b\u0438 11. \u0412 \u043f\u0435\u0440\u0432\u044b\u0445 \u0442\u0440\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0446\u0432\u0435\u0442 \u0440\u044b\u0431\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0435\u0440\u044b\u043c, \u0430 \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u043c \u2014 \u0436\u0435\u043b\u0442\u044b\u043c.<\/p>\n<pre><code class=\"python\">n = 3 Aa = np.zeros((n,2)) color = np.zeros(n) for i in range(n):   Aa[i,0] = np.random.randint(0, 2, 1)   Aa[i,1] = np.random.randint(0, 2, 1)   color[i] = Aa[i,0] * Aa[i,1] print (Aa) print (color)<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7db\/736\/597\/7db736597282679ae3b10e4545ab7c30.png\" alt=\"\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 \u0435\u0435 \u0433\u0435\u043d\u043e\u0442\u0438\u043f \" title=\"\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 \u0435\u0435 \u0433\u0435\u043d\u043e\u0442\u0438\u043f \" width=\"855\" height=\"723\"><figcaption>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 \u0435\u0435 \u0433\u0435\u043d\u043e\u0442\u0438\u043f <\/figcaption><\/figure>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0435\u0441\u043b\u0438 \u0440\u044b\u0431\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e, \u0442\u043e \u0446\u0432\u0435\u0442\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 25%. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432 Mathcad \u0434\u043b\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0438\u0437 n=1000 \u0440\u044b\u0431\u043e\u043a \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e67\/ef8\/331\/e67ef8331ab9f323ea2109b8b1af6537.png\" alt=\"\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 \u0435\u0435 \u0433\u0435\u043d\u043e\u0442\u0438\u043f (Mathcad)\" title=\"\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 \u0435\u0435 \u0433\u0435\u043d\u043e\u0442\u0438\u043f (Mathcad)\" width=\"1372\" height=\"712\"><figcaption>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 \u0435\u0435 \u0433\u0435\u043d\u043e\u0442\u0438\u043f (Mathcad)<\/figcaption><\/figure>\n<p>\u0412\u0441\u0435 \u044d\u0442\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u044b \u044f \u0432\u0438\u0434\u0443 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u0442\u0440\u0438\u043c\u043e\u0432 \u043d\u0430 <a href=\"https:\/\/www.youtube.com\/c\/kirianov\/videos\" rel=\"noopener noreferrer nofollow\">\u0441\u0432\u043e\u0435\u043c YouTube \u043a\u0430\u043d\u0430\u043b\u0435<\/a> , \u0442.\u0435. \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u044d\u0442\u043e \u043a\u0440\u0430\u0442\u043a\u0438\u0439 \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u0432\u0443\u0445 \u0440\u043e\u043b\u0438\u043a\u043e\u0432 \u043f\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0442\u0438\u043a\u0435. \u0410 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0435\u0440\u0438\u044f\u0445 \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442 \u0433\u0435\u043d\u043e\u0442\u0438\u043f\u0430 \u0440\u044b\u0431\u043e\u043a \u043e\u0442 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f \u043a \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044e, \u043f\u0440\u0438\u0447\u0435\u043c, \u0432\u0438\u0434\u0438\u043c\u043e, \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u041e\u041e\u041f \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0440\u044b\u0431\u043e\u043a \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0432 Python, \u0430 Mathcad \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044e \u0438 <a href=\"https:\/\/stepik.org\/course\/9182\/syllabus\" rel=\"noopener noreferrer nofollow\">\u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u043a\u0443\u0440\u0441 \u043d\u0430 \u0421\u0442\u0435\u043f\u0438\u043a\u0435<\/a>.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/559908\/\"> https:\/\/habr.com\/ru\/post\/559908\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041f\u0443\u0441\u0442\u044c \u0432 \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0435 \u0436\u0438\u0432\u0443\u0442 \u0440\u044b\u0431\u043a\u0438 \u0434\u0432\u0443\u0445 \u0446\u0432\u0435\u0442\u043e\u0432. <\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.  \u0417\u0430\u0434\u0430\u0434\u0438\u043c \u0447\u0438\u0441\u043b\u043e \u0440\u044b\u0431\u043e\u043a n=100 \u0438 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c\u0441\u044f \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 color \u21160 \u0438\u043b\u0438 \u21161, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 (x,y).  \u0422.\u0435. x, y, \u0438 color \u2014 \u044d\u0442\u043e \u0442\u0440\u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0434\u043b\u0438\u043d\u044b n, \u0430 \u0442\u0440\u0435\u0442\u044c\u044e (z-) \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0443 \u043c\u044b \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c.<\/p>\n<pre><code class=\"python\">%matplotlib inline import numpy as np import matplotlib.pyplot as plt n = 100 x, y = np.random.rand(n), np.random.rand(n) color = np.random.randint(0, 2, n) plt.scatter(x, y, c=color)<\/code><\/pre>\n<figure class=\"full-width\"><figcaption>\u041c\u043e\u0434\u0435\u043b\u044c \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0430<\/figcaption><\/figure>\n<p>\u0422\u0435 \u0436\u0435 \u0442\u0440\u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0432 <a href=\"https:\/\/habr.com\/ru\/company\/nerepetitor\/blog\/247999\/\" rel=\"noopener noreferrer nofollow\">Mathcad Express<\/a> \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><figcaption>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0432 Mathcad Express<\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 x,y \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0441 \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u043e\u0442\u0440\u0435\u0437\u043a\u0435 (0, 1), \u0430 \u0434\u043b\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u0430 color \u2014 \u0431\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u043e\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u043f\u043e\u0434\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u043d\u0435\u0442\u044b. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u0440\u043e\u0437\u044b\u0433\u0440\u044b\u0448\u0435 \u0432 Mathcad \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c 47 \u0440\u044b\u0431\u043e\u043a \u21161 \u0438 100-47=53 \u0440\u044b\u0431\u043e\u043a \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430.  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0433\u043b\u0430\u0432\u043d\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443: \u043f\u043e\u0447\u0435\u043c\u0443 \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u044b\u0431\u043a\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0442 \u0446\u0432\u0435\u0442\u043e\u043c \u043d\u043e\u043c\u0435\u0440 0 \u0438\u043b\u0438 1? <\/p>\n<p>\u0412\u0441\u0435 \u0434\u0435\u043b\u043e \u0437\u0434\u0435\u0441\u044c \u0432 \u0433\u0435\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 \u0432 \u0431\u0438\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0442\u0435\u043b\u043e \u0440\u044b\u0431\u043a\u0438. \u0413\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0436\u0438\u0432\u044b\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430, \u0434\u0430\u0436\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430, \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0445\u0438\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u0430\u0432\u0443, \u043f\u0440\u0438\u0447\u0435\u043c \u0432 &#171;\u0434\u043b\u0438\u043d\u043d\u044b\u0445&#187; \u043c\u043e\u043b\u0435\u043a\u0443\u043b\u0430\u0445 \u0431\u0438\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u043b\u0438\u043c\u0435\u0440\u043e\u0432, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432\u0441\u0435 \u0436\u0438\u0432\u043e\u0435, \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0430  \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%93%D0%B5%D0%BD\" rel=\"noopener noreferrer nofollow\">\u0433\u0435\u043d\u043e\u043c<\/a>. <\/p>\n<p>\u0421\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0433\u0435\u043d\u043e\u0432 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0436\u0438\u0432\u043e\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%93%D0%B5%D0%BD%D0%BE%D1%82%D0%B8%D0%BF\" rel=\"noopener noreferrer nofollow\">\u0433\u0435\u043d\u043e\u0442\u0438\u043f\u043e\u043c<\/a>, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434. \u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0433\u0435\u043d\u043e\u0442\u0438\u043f \u043a\u0430\u0436\u0434\u043e\u0439 \u0440\u044b\u0431\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0435\u0435 \u0446\u0432\u0435\u0442. \u0412 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043c\u043e\u0434\u0435\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0446\u0432\u0435\u0442 \u0440\u044b\u0431\u043a\u0438 (0 \u0438\u043b\u0438 1) \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043e\u0434\u0438\u043d \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0433\u0435\u043d (&#171;\u0433\u0435\u043d \u0446\u0432\u0435\u0442\u0430&#187;). \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f (\u043e\u0434\u0438\u043d \u0433\u0435\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0446\u0432\u0435\u0442) \u0438\u043c\u0435\u043b\u0430 \u043c\u0435\u0441\u0442\u043e \u0432 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%97%D0%B0%D0%BA%D0%BE%D0%BD%D1%8B_%D0%9C%D0%B5%D0%BD%D0%B4%D0%B5%D0%BB%D1%8F\" rel=\"noopener noreferrer nofollow\">\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u044b\u0442\u0430\u0445 \u0413\u0440\u0435\u0433\u043e\u0440\u0430 \u041c\u0435\u043d\u0434\u0435\u043b\u044f<\/a>, \u043e\u0441\u043d\u043e\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u0438\u043a\u0430 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0442\u0438\u043a\u0438, \u0441 \u0440\u0430\u0441\u0442\u0435\u043d\u0438\u044f\u043c\u0438 \u0433\u043e\u0440\u043e\u0445\u0430, \u0430 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043e\u043a\u0440\u0430\u0441\u0430 \u0441\u043e\u0431\u0430\u043a-\u0442\u0430\u043a\u0441) \u043d\u0430 \u0446\u0432\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0438 \u0432\u043b\u0438\u044f\u0435\u0442 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0433\u0435\u043d\u043e\u0432.<\/p>\n<p>\u041a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0433\u0435\u043d\u044b \u043a\u043e\u0434\u0438\u0440\u0443\u044e\u0442 \u0446\u0432\u0435\u0442? \u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u0433\u0435\u043d \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0432\u0443\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%90%D0%BB%D0%BB%D0%B5%D0%BB%D0%B8\" rel=\"noopener noreferrer nofollow\">\u0430\u043b\u043b\u0435\u043b\u044f\u043c\u0438 <\/a>(\u044f \u0431\u0443\u0434\u0443 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u0434\u043b\u044f \u0431\u0438\u043e\u043b\u043e\u0433\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435). \u0412 \u0433\u0435\u043d\u0435\u0442\u0438\u043a\u0435 \u0438\u0445 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u043e\u0439 \u0438 \u0441\u0442\u0440\u043e\u0447\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0410 \u0438 \u0430). \u042f \u0431\u0443\u0434\u0443 \u0447\u0430\u0449\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0446\u0438\u0444\u0440\u043e\u0439 \u0410=0, \u0430=1.<\/p>\n<p>\u041a\u0430\u0436\u0434\u043e\u0435 \u0440\u0430\u0441\u0442\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u043e\u0445\u0430 \u0432 \u043e\u043f\u044b\u0442\u0430\u0445 \u041c\u0435\u043d\u0434\u0435\u043b\u044f \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u0440\u044b\u0431\u043a\u0430 \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u0430 \u043d\u0435\u0441\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0434\u0432\u0443\u0445 \u0430\u043b\u043b\u0435\u043b\u044f\u0445, \u0442.\u0435. \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439:<\/p>\n<ul>\n<li>\n<p><strong>\u0410\u0410 <\/strong>\u0438\u043b\u0438 00<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0430 <\/strong>(\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0430\u0410) \u0438\u043b\u0438 01<\/p>\n<\/li>\n<li>\n<p><strong>\u0430\u0430<\/strong> \u0438\u043b\u0438 11<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0440\u044b\u0431\u043a\u0430 \u043d\u0435\u0441\u0435\u0442 \u0433\u0435\u043d \u0446\u0432\u0435\u0442\u0430 \u0410\u0410 \u0438\u043b\u0438 \u0410\u0430, \u0442\u043e \u043e\u043d\u0430 \u0441\u0435\u0440\u0430\u044f, \u0430 \u0435\u0441\u043b\u0438 \u0430\u0430 \u2014 \u0436\u0435\u043b\u0442\u0430\u044f. \u0422.\u0435. \u0442\u0438\u043f \u0433\u0435\u043d\u0430 \u0410 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442  \u0442\u0438\u043f \u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0410 (0) \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%94%D0%BE%D0%BC%D0%B8%D0%BD%D0%B0%D0%BD%D1%82%D0%BD%D0%BE%D1%81%D1%82%D1%8C\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043c\u0438\u043d\u0430\u0442\u043d\u044b\u043c<\/a>, \u0430 \u0430 (1) \u2014 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A0%D0%B5%D1%86%D0%B5%D1%81%D1%81%D0%B8%D0%B2%D0%BD%D1%8B%D0%B9_%D0%BF%D1%80%D0%B8%D0%B7%D0%BD%D0%B0%D0%BA\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u0446\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u043c<\/a>.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0440\u0430\u0441\u0447\u0435\u0442 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043a\u0438 \u043f\u043e \u0435\u0435 \u0433\u0435\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043a\u043e\u0434\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043b\u044f i-\u0439 \u0440\u044b\u0431\u043a\u0438 \u0431\u0443\u0434\u0435\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u0438\u0437 \u0434\u0432\u0443\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0430 \u0433\u0435\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043e\u0441\u0442\u0430\u0432 \u0432\u0441\u0435\u0439 \u043f\u043e\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u2014 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u0430\u0442\u0440\u0438\u0446\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0410\u0430. \u041f\u0443\u0441\u0442\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u0440\u0438 \u0440\u044b\u0431\u043a\u0438, \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441 \u0440\u0430\u0432\u043d\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435\u0441\u0435\u0442 \u0433\u0435\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u0434 00, 10, 01 \u0438\u043b\u0438 11. \u0412 \u043f\u0435\u0440\u0432\u044b\u0445 \u0442\u0440\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0446\u0432\u0435\u0442 \u0440\u044b\u0431\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0435\u0440\u044b\u043c, \u0430 \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u043c \u2014 \u0436\u0435\u043b\u0442\u044b\u043c.<\/p>\n<pre><code class=\"python\">n = 3 Aa = np.zeros((n,2)) color = np.zeros(n) for i in range(n):   Aa[i,0] = np.random.randint(0, 2, 1)   Aa[i,1] = np.random.randint(0, 2, 1)   color[i] = Aa[i,0] * Aa[i,1] print (Aa) print (color)<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435:<\/p>\n<figure class=\"full-width\"><figcaption>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 \u0435\u0435 \u0433\u0435\u043d\u043e\u0442\u0438\u043f <\/figcaption><\/figure>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0435\u0441\u043b\u0438 \u0440\u044b\u0431\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e, \u0442\u043e \u0446\u0432\u0435\u0442\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 25%. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432 Mathcad \u0434\u043b\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0438\u0437 n=1000 \u0440\u044b\u0431\u043e\u043a \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u0435.<\/p>\n<figure class=\"full-width\"><figcaption>\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u044b\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 \u0435\u0435 \u0433\u0435\u043d\u043e\u0442\u0438\u043f (Mathcad)<\/figcaption><\/figure>\n<p>\u0412\u0441\u0435 \u044d\u0442\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u044b \u044f \u0432\u0438\u0434\u0443 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u0442\u0440\u0438\u043c\u043e\u0432 \u043d\u0430 <a href=\"https:\/\/www.youtube.com\/c\/kirianov\/videos\" rel=\"noopener noreferrer nofollow\">\u0441\u0432\u043e\u0435\u043c YouTube \u043a\u0430\u043d\u0430\u043b\u0435<\/a> , \u0442.\u0435. \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u044d\u0442\u043e \u043a\u0440\u0430\u0442\u043a\u0438\u0439 \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u0432\u0443\u0445 \u0440\u043e\u043b\u0438\u043a\u043e\u0432 \u043f\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0442\u0438\u043a\u0435. \u0410 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0435\u0440\u0438\u044f\u0445 \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442 \u0433\u0435\u043d\u043e\u0442\u0438\u043f\u0430 \u0440\u044b\u0431\u043e\u043a \u043e\u0442 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f \u043a \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044e, \u043f\u0440\u0438\u0447\u0435\u043c, \u0432\u0438\u0434\u0438\u043c\u043e, \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u041e\u041e\u041f \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0440\u044b\u0431\u043e\u043a \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0432 Python, \u0430 Mathcad \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044e \u0438 <a href=\"https:\/\/stepik.org\/course\/9182\/syllabus\" rel=\"noopener noreferrer nofollow\">\u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u043a\u0443\u0440\u0441 \u043d\u0430 \u0421\u0442\u0435\u043f\u0438\u043a\u0435<\/a>.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/559908\/\"> https:\/\/habr.com\/ru\/post\/559908\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-323985","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/323985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=323985"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/323985\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}