{"id":177237,"date":"2013-04-18T22:11:03","date_gmt":"2013-04-18T18:11:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=177237"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=177237","title":{"rendered":"<span class=\"post_title\">\u041c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u044b \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0411\u0443\u0445\u0431\u0435\u0440\u0433\u0435\u0440\u0430 \u043d\u0430 Haskell<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u043b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0431\u0430\u0437\u0438\u0441\u0430\u043c\u0438 \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430, \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Haskell. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043c\u043e\u0438 \u0438\u0434\u0435\u0438 \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438. \u042f \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u0435\u043e\u0440\u0438\u044e, \u0442\u0430\u043a \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044e \u0441\u0442\u043e\u0438\u0442 \u0431\u044b\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c \u0441 \u043f\u043e\u043d\u044f\u0442\u0438\u044f\u043c\u0438 \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u044c\u0446\u0430, \u0438\u0434\u0435\u0430\u043b\u0430 \u043a\u043e\u043b\u044c\u0446\u0430 \u0438 \u0431\u0430\u0437\u0438\u0441\u0430 \u0438\u0434\u0435\u0430\u043b\u0430. \u0421\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u043e\u0442 <a href=\"http:\/\/www.mccme.ru\/free-books\/dubna\/arjantsev.pdf\">\u044d\u0442\u0443<\/a> \u043a\u043d\u0438\u0433\u0443 \u041c\u0426\u041d\u041c\u041e, \u0432 \u043d\u0435\u0439 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0430 \u0432\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0442\u0435\u043e\u0440\u0438\u044f.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 \u0431\u0430\u0437\u0438\u0441\u044b \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430 \u0438\u0434\u0435\u0430\u043b\u043e\u0432 \u043a\u043e\u043b\u0435\u0446 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u042d\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 \u0438 \u0434\u0430\u0451\u0442 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043b\u044f \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u044d\u0442\u0438 \u0438\u0434\u0435\u0438.<\/p>\n<p>  \u0421\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u0451\u0442 \u044d\u0442\u0430 \u0442\u0435\u043e\u0440\u0438\u044f \u2014 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0448\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u0432\u044b\u0441\u0448\u0435\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u043e\u0439 \u0438\u043b\u0438 \u0441 Haskell, \u044f \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0432\u0430\u043c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u0438 \u0441\u0430\u043c\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u044b \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u043c \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u0443, \u0430 \u0432\u0441\u044f \u0442\u0435\u043e\u0440\u0438\u044f \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f. \u041c\u043e\u0436\u043d\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0451, \u0447\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0432\u044b\u0441\u0448\u0435\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u043e\u0439, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u043e, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442. <a name=\"habracut\"><\/a><\/p>\n<p>  <i>\u042f \u043f\u0440\u043e\u0448\u0443 \u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0437\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u2014 \u044d\u0442\u043e \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0435\u043d\u043e latex&#8217;\u043e\u043c, \u0430 \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0445\u0430\u0431\u0440 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c <code>style=&quot;width:...;height=...;&quot;<\/code> \u044f \u043d\u0435 \u0437\u043d\u0430\u044e. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0435\u0442\u0435 \u0441\u043f\u043e\u0441\u043e\u0431 \u043b\u0443\u0447\u0448\u0435, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u044e.<\/i><\/p>\n<h4>1 \u0421\u0430\u043c\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u0438\u0437 \u0430\u043b\u0433\u0435\u0431\u0440\u044b<\/h4>\n<p>  <a name=\"a0000000002\"><\/a>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430, \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u0432\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u2014 \u00ab\u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u00bb \u0438 \u00ab\u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435\u00bb, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443 \u043f\u0440\u0430\u0432\u0438\u043b (\u0430\u043a\u0441\u0438\u043e\u043c), \u0432 \u0430\u043b\u0433\u0435\u0431\u0440\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <i>\u043a\u043e\u043b\u044c\u0446\u0430\u043c\u0438<\/i>. \u041c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u044b \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442 \u043a\u043e\u043b\u044c\u0446\u043e, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u043c\u043e\u0435 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2ec\/c25\/593\/2ecc25593f408daef7bc5ffd06e3323e.png\"\/>, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0448\u043a\u043e\u043b\u044c\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432. <i>\u0418\u0434\u0435\u0430\u043b\u043e\u043c<\/i> \u043a\u043e\u043b\u044c\u0446\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0435 \u0435\u0433\u043e \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u0434\u0432\u0443\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043b\u0435\u0436\u0438\u0442 \u0432 \u043d\u0451\u043c \u0436\u0435 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u043b\u044c\u0446\u0430 \u043b\u0435\u0436\u0438\u0442 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0434\u0435\u0430\u043b\u0430 \u2014 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043a\u0440\u0430\u0442\u043d\u044b\u0445 \u043f\u044f\u0442\u0438 \u0447\u0438\u0441\u0435\u043b \u043a\u0430\u043a \u0438\u0434\u0435\u0430\u043b \u0432 \u043a\u043e\u043b\u044c\u0446\u0435 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0421\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u0434\u0435\u0430\u043b. \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u2014 \u0434\u0430\u043b\u044c\u0448\u0435 \u0442\u043e\u0436\u0435 \u043e\u0441\u043e\u0431\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442. <\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0434\u0435\u0430\u043b\u044b \u0432 \u043a\u043e\u043b\u044c\u0446\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/df9\/c61\/307\/df9c613073c5b77e63be7d7ec8ffb429.png\"\/> \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <i>\u0431\u0430\u0437\u0438\u0441\u043e\u043c<\/i> \u0438\u0434\u0435\u0430\u043b\u0430, \u0435\u0441\u043b\u0438 \u043b\u044e\u0431\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u0438\u0437 \u0438\u0434\u0435\u0430\u043b\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432 \u0432\u0438\u0434\u0435 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/7c4\/1da\/b92\/7c41dab92ab196831dd9061cef1ff907.png\"\/>, \u0433\u0434\u0435 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/290\/b09\/246\/290b092469997651dc5b39f4df351f51.png\"\/> \u2014 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u044b. \u042d\u0442\u043e\u0442 \u0444\u0430\u043a\u0442 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a: <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/235\/58d\/8df\/23558d8dfe361f0384ade983f73f6013.png\"\/>. \u0422\u0435\u043e\u0440\u0435\u043c\u0430 \u0413\u0438\u043b\u044c\u0431\u0435\u0440\u0442\u0430 \u043e \u0431\u0430\u0437\u0438\u0441\u0435 \u0434\u0430\u0451\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 <i>\u043b\u044e\u0431\u043e\u0439<\/i> \u0438\u0434\u0435\u0430\u043b (\u0432 \u043a\u043e\u043b\u044c\u0446\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432) \u0438\u043c\u0435\u0435\u0442 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0431\u0430\u0437\u0438\u0441. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c\u0438 \u0431\u0430\u0437\u0438\u0441\u0430\u043c\u0438 \u0438\u0434\u0435\u0430\u043b\u043e\u0432. <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/dfc\/b86\/1a9\/dfcb861a9076612de9273192ee2c5495.png\" align=\"center\"\/> <\/p>\n<p>  \u041d\u0430\u0437\u043e\u0432\u0451\u043c \u0438\u0434\u0435\u0430\u043b\u043e\u043c \u044d\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0434\u0435\u0430\u043b <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/235\/58d\/8df\/23558d8dfe361f0384ade983f73f6013.png\"\/>. \u0418\u0437 \u0430\u043b\u0433\u0435\u0431\u0440\u044b \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d, \u043b\u0435\u0436\u0430\u0449\u0438\u0439 \u0432 \u0438\u0434\u0435\u0430\u043b\u0435 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e3a\/20c\/408\/e3a20c4088d92959d57912631def540f.png\"\/>, \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0443\u043b\u044c \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0418 \u0434\u0430\u043b\u0435\u0435, \u0435\u0441\u043b\u0438 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/6d3\/4fb\/0bd\/6d34fb0bdca654e935df0715edd7ac75.png\"\/> \u2014 \u0434\u0440\u0443\u0433\u043e\u0439 \u0431\u0430\u0437\u0438\u0441 \u0438\u0434\u0435\u0430\u043b\u0430 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e3a\/20c\/408\/e3a20c4088d92959d57912631def540f.png\"\/>, \u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/c29\/79f\/f96\/c2979ff969fd219cb4ae9b3a78b38672.png\"\/> <\/p>\n<p>  \u0438\u043c\u0435\u0435\u0442 \u0442\u043e \u0436\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0447\u0442\u043e \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u043c \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432 \u0438\u0434\u0435\u0430\u043b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0430\u0437\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439, \u0442\u043e \u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u0430\u043c\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442\u0441\u044f. <\/p>\n<p>  \u0412\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0442\u0430\u043a\u043e\u0439 \u0431\u0430\u0437\u0438\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u2014 \u043e\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0430\u0437\u0438\u0441\u043e\u043c \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430 \u0438\u0434\u0435\u0430\u043b\u0430. \u041f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0431\u0430\u0437\u0438\u0441, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c (\u043e \u043d\u0435\u0439 \u043f\u043e\u0437\u0436\u0435) \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430 \u0438\u0437 \u0438\u0434\u0435\u0430\u043b\u0430 \u0432\u044b\u0434\u0430\u0441\u0442 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0435\u0433\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435, \u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0435\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u043e\u0434\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u0438 \u0432\u0441\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439. <\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u2014 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u043e\u043b\u0438\u043d\u043e\u043c \u0438 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u0430\u0440 \u0411\u0443\u0445\u0431\u0435\u0440\u0433\u0435\u0440\u0430. \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u00ab\u0445\u043e\u0440\u043e\u0448\u0438\u0439\u00bb \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432 (\u0437\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u2014 \u0432 \u043a\u043d\u0438\u0436\u043a\u0443) \u0438 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u043c \u0447\u0435\u0440\u0435\u0437 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ef5\/21b\/cba\/ef521bcba0c7580552355e34772cdfe1.png\"\/> \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u043b\u0435\u043d (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u0442\u043e\u0433\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f) \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ce1\/93d\/f68\/ce193df6867ad18cb4fb67f6de4448ca.png\"\/>, \u0430 \u0447\u0435\u0440\u0435\u0437 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/858\/fcd\/a32\/858fcda3218514a5eda6e0336ce6e3ae.png\"\/> \u2014 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043e\u0431\u0449\u0435\u0435 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e6a\/2e4\/96b\/e6a2e496b9f30d0b604822d018235efd.png\"\/> \u0438 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/676\/02b\/32b\/67602b32bfabe2dd231c9d1c8c905955.png\"\/>. \u0422\u043e\u0433\u0434\u0430 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u043e\u043c \u043e\u0442 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ce1\/93d\/f68\/ce193df6867ad18cb4fb67f6de4448ca.png\"\/> \u0438 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5d4\/fed\/49b\/5d4fed49b36d2b8c1fa278397a9a17b2.png\"\/> \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f: <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/c2f\/deb\/1ad\/c2fdeb1ad9de2c15faae4a7cfa80721c.png\"\/> <\/p>\n<p>  \u0414\u043e\u043a\u0430\u0437\u0430\u043d\u043e (\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u0430\u0440), \u0447\u0442\u043e \u0431\u0430\u0437\u0438\u0441 \u0438\u0434\u0435\u0430\u043b\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u0431\u0430\u0437\u0438\u0441\u043e\u043c \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430 \u0442\u043e\u0433\u0434\u0430 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u043e\u0442 \u043b\u044e\u0431\u043e\u0439 \u043f\u0430\u0440\u044b \u0435\u0433\u043e \u0447\u043b\u0435\u043d\u043e\u0432 \u0434\u0430\u0451\u0442 \u043e\u0441\u0442\u0430\u0442\u043e\u043a 0 \u043f\u0440\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043d\u0430 \u0431\u0430\u0437\u0438\u0441 (\u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u043e \u0434\u0430\u043b\u0435\u0435). \u042d\u0442\u043e \u0442\u0443\u0442 \u0436\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0431\u0430\u0437\u0438\u0441\u0430:  <\/p>\n<ol>\n<li>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u0431\u0430\u0437\u0438\u0441\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0445 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c \u043d\u0430 \u0431\u0430\u0437\u0438\u0441.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0440\u0430\u0432\u043d\u044b \u043d\u0443\u043b\u044e, \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0431\u0430\u0437\u0438\u0441 \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430. \u0418\u043d\u0430\u0447\u0435, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u043a \u0431\u0430\u0437\u0438\u0441\u0443 \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430 \u0448\u0430\u0433 1.<\/li>\n<\/ol>\n<p>  \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0411\u0443\u0445\u0431\u0435\u0440\u0433\u0435\u0440\u0430 \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u041d\u0430 \u044d\u0442\u043e\u043c \u0441 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u043e\u0439 \u0432\u0441\u0451, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u0432\u044b \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u044f\u043b\u0438, \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044e \u0438\u043b\u0438 \u043a\u043d\u0438\u0433\u0443, \u0445\u043e\u0442\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u043d\u0430\u043d\u0438\u0439 \u0432\u044b\u0441\u0448\u0435\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u044b.<\/p>\n<h4>2 \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 Haskell<\/h4>\n<p>  <a name=\"a0000000003\"><\/a>\u041d\u0430\u0447\u043d\u0451\u043c \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u0441 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432. \u041e\u0434\u043d\u043e\u0447\u043b\u0435\u043d \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0443\u043c\u044f \u0432\u0435\u0449\u0430\u043c\u0438 \u2014 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u043c \u0438 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0442\u0435\u043f\u0435\u043d\u0435\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u0411\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/0ba\/50b\/2fd\/0ba50b2fdfd6b4d3f04f03f5f61d34d7.png\"\/>, <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/c8a\/7da\/3df\/c8a7da3df4abcbc0400ed6483f0ef98d.png\"\/> \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u0422\u043e\u0433\u0434\u0430 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/42e\/444\/1f5\/42e4441f5e42b3fa6b14af602a3629ad.png\"\/> \u0438\u043c\u0435\u0435\u0442 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 1 \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 <code>[2,3,1]<\/code>, \u0430 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/4ce\/1f6\/044\/4ce1f6044d355584b05f043f4bcae215.png\"\/> \u2014 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 2 \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 <code>[0,0,3]<\/code>. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u0441\u0442\u0435\u043f\u0435\u043d\u0438! \u041e\u043d\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u0412\u043e\u043e\u0431\u0449\u0435, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u0441\u043f\u0438\u0441\u043a\u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u0435\u0439 \u0432\u0441\u0435\u0445 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432 (\u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438) \u0438\u043c\u0435\u043b\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0443\u044e \u0434\u043b\u0438\u043d\u0443. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442 \u043d\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<p>  \u041e\u043f\u0438\u0448\u0435\u043c \u0442\u0438\u043f \u00ab\u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u00bb \u043a\u0430\u043a \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430 (\u0442\u0438\u043f\u0430 \u00ab<code>c<\/code>\u00bb) \u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0442\u0435\u043f\u0435\u043d\u0435\u0439 (\u043a\u0430\u0436\u0434\u0430\u044f \u0442\u0438\u043f\u0430 \u00ab<code>a<\/code>\u00bb):  <\/p>\n<pre><code class=\"haskell\">data Monom c a = M c [a] deriving (Eq) <\/code><\/pre>\n<p>  \u041d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u044b, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043e\u043f\u043b\u043e\u0449\u0435\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Ord<\/code>. \u042f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u043b\u0435\u043a\u0441\u0438\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0442\u0435\u043f\u0435\u043d\u044f\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0442\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u00ab\u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e\u00bb \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0432\u043e\u043f\u043b\u043e\u0449\u0435\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Show<\/code> \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439.  <\/p>\n<pre><code class=\"haskell\">instance (Eq c, Ord a) =&gt; Ord (Monom c a) where     compare (M _ asl) (M _ asr) = compare asl asr  instance (Show a, Show c, Num a, Num c, Eq a, Eq c) =&gt; Show (Monom c a) where     show (M c as) = (if c == 1 then &quot;&quot; else show c) ++                      (intercalate &quot;*&quot; $ map showOne $ (filter (\\(p,_) -&gt; p \/= 0) $ zip as [1..]))         where showOne (p,i) = &quot;x&quot; ++ (show i) ++ (if p == 1 then &quot;&quot; else &quot;^&quot; ++ (show p)) <\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>show<\/code> \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0431\u044b\u0442\u044c \u00ab\u0443\u043c\u043d\u043e\u0439\u00bb: \u043e\u043d\u0430 \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, \u0435\u0441\u043b\u0438 \u043e\u043d \u0440\u0430\u0432\u0435\u043d 1, \u0438 \u043e\u043d\u0430 \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u0412\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre> *Main&gt; M 2 [0,1] 2x2 *Main&gt; M 1 [2,2] x1^2*x2^2 <\/pre>\n<p>  \u042f \u0431\u0443\u0434\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043d\u0430 <code>show<\/code>, \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u044f\u0441\u043d\u0438\u0442\u044c, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u0443\u0432\u0435\u0440\u0435\u043d, \u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043e\u043d\u0430 \u0442\u043e\u0447\u043d\u043e \u0438\u0441\u043f\u0443\u0433\u0430\u043b\u0430. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>zip as [1..]<\/code> \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0441 \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u0441\u0432\u043e\u0435\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0437\u0430\u0442\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>filter (&lt;br \/&gt;(p\u2009_) -&gt; p \/= 0)<\/code> \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0441\u0442\u0435\u043f\u0435\u043d\u0435\u0439, \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 <code>showOne<\/code> \u0438, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0451 \u0432\u043c\u0435\u0441\u0442\u0435, \u043f\u0435\u0440\u0435\u043c\u0435\u0436\u0430\u044f \u0437\u043d\u0430\u0447\u043a\u0430\u043c\u0438 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <code>intercalate<\/code> \u0438\u0437 <code>Data.List<\/code> <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0438\u043f \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 <code>newtype<\/code> \u043e\u0431\u0451\u0440\u0442\u043a\u0430 \u043d\u0430\u0434 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c:  <\/p>\n<pre><code class=\"haskell\">newtype Polynom c a = P [Monom c a] deriving (Eq)  instance (Show a, Show c, Num a, Num c, Eq a, Eq c) =&gt; Show (Polynom c a) where     show (P ms) = intercalate &quot; + &quot; $ map show ms <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>show<\/code> \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u044f \u0433\u0440\u044f\u0437\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0443\u0436\u0435 \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u0430 \u0432 \u0442\u0438\u043f\u0435 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u044d\u0442\u043e \u0442\u0430\u043a:  <\/p>\n<pre> *Main&gt; P [M 1 [3,1], M 1 [2,2], M 1 [1,1]] x1^3*x2 + x1^2*x2^2 + x1*x2 <\/pre>\n<p>  \u0414\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c\u0441\u044f \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435, \u0447\u0442\u043e \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u044b \u0432 \u044d\u0442\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044f (\u0432 \u0441\u043c\u044b\u0441\u043b\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u043e\u043f\u043b\u043e\u0449\u0435\u043d\u0438\u044f <code>Ord<\/code>). \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0449\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435.<\/p>\n<h4>3 \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430\u043c\u0438<\/h4>\n<p>  <a name=\"a0000000004\"><\/a>\u0421\u0430\u043c\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u044d\u0442\u043e LT, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u043d\u0443\u043b\u044e \u0438 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0447\u0438\u0441\u043b\u043e. \u0418\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u043e\u0431 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u043d\u043e\u043c\u043e\u0432 \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u043c\u043e\u043d\u043e\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>head<\/code>. \u041e\u0434\u043d\u043e\u0447\u043b\u0435\u043d \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0440\u0430\u0432\u0435\u043d \u043d\u0443\u043b\u044e, \u0430 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u2014 \u0435\u0441\u043b\u0438 \u043e\u043d \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432. \u041d\u0443 \u0430 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442:  <\/p>\n<pre><code class=\"haskell\">lt :: Polynom c a -&gt; Monom c a lt (P as) = head as  zero :: (Num c, Eq c) =&gt; Monom c a -&gt; Bool zero (M c _) = c == 0  zeroP :: Polynom c a -&gt; Bool zeroP (P as) = null as  scale :: (Num c) =&gt; c -&gt; Monom c a -&gt; Monom c a scale c' (M c as) = M (c*c') as <\/code><\/pre>\n<p>  \u0414\u0432\u0430 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u0430 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c\u0438. \u0414\u043b\u044f \u043d\u0438\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0441\u0443\u043c\u043c\u0430 \u2014 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u0436\u0438\u0442\u044c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b, \u0430 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.  <\/p>\n<pre><code class=\"haskell\">similar :: (Eq a) =&gt; Monom c a -&gt; Monom c a -&gt; Bool similar (M _ asl) (M _ asr) = asl == asr  addSimilar :: (Num c) =&gt; Monom c a -&gt; Monom c a -&gt; Monom c a addSimilar (M cl as) (M cr _) = M (cl+cr) as <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u0434\u0432\u0430 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u0430, \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u0436\u0438\u043c \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u042d\u0442\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>zipWith<\/code>. \u042f \u0434\u0443\u043c\u0430\u044e, \u043a\u043e\u0434 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u0430\u043c \u0437\u0430 \u0441\u0435\u0431\u044f:  <\/p>\n<pre><code class=\"haskell\">mulMono :: (Num a, Num c) =&gt; Monom c a -&gt; Monom c a -&gt; Monom c a mulMono (M cl asl) (M cr asr) = M (cl*cr) (zipWith (+) asl asr) <\/code><\/pre>\n<p>  \u0413\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432. \u0411\u0443\u0434\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e. \u0422\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u2014 \u0441\u0443\u043c\u043c\u0430 \u0434\u0432\u0443\u0445 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430 (\u043f\u0443\u0441\u0442\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432) \u0440\u0430\u0432\u043d\u0430 \u043d\u0443\u043b\u0435\u0432\u043e\u043c\u0443 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0443. \u0421\u0443\u043c\u043c\u0430 \u043b\u044e\u0431\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430 \u0438 \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0440\u0430\u0432\u043d\u0430 \u0435\u043c\u0443 \u0436\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0431\u0430 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u043c\u0438, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u043b\u0435\u043d \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u2014 \u00ab\u0445\u0432\u043e\u0441\u0442\u00bb. \u0412\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0434\u0432\u0430 \u0441\u043b\u0443\u0447\u0430\u044f:  <\/p>\n<ol>\n<li>\u0421\u0442\u0430\u0440\u0448\u0438\u0435 \u0447\u043b\u0435\u043d\u044b \u043f\u043e\u0434\u043e\u0431\u043d\u044b. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043b\u043e\u0436\u0438\u043c \u0438\u0445 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (\u0435\u0441\u043b\u0438 \u043e\u043d \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0439) \u043a \u0441\u0443\u043c\u043c\u0435 \u0445\u0432\u043e\u0441\u0442\u043e\u0432.<\/li>\n<li>\u0421\u0442\u0430\u0440\u0448\u0438\u0435 \u0447\u043b\u0435\u043d\u044b \u043d\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b. \u0422\u043e\u0433\u0434\u0430 \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0438\u0437 \u043d\u0438\u0445. \u041d\u0430\u0448\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u0432 \u0445\u0432\u043e\u0441\u0442\u0430\u0445 \u043e\u0431\u043e\u0438\u0445 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0435\u043c\u0443 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u0430. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043b\u043e\u0436\u0438\u0442\u044c \u0445\u0432\u043e\u0441\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c, \u0430 \u0437\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0435\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u043e \u044d\u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d.<\/li>\n<\/ol>\n<p>  \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u044d\u0442\u043e\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0439 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d, \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043e\u0434.  <\/p>\n<pre><code class=\"haskell\">addPoly :: (Eq a, Eq c, Num c, Ord a) =&gt; Polynom c a -&gt; Polynom c a -&gt; Polynom c a addPoly (P l) (P r) = P $ go l r     where            go [] [] = []           go as [] = as           go [] bs = bs           go (a:as) (b:bs) =                if similar a b then                   if (zero $ addSimilar a b) then                       go as bs                   else                       (addSimilar a b):(go as bs)               else                   if a &gt; b then                       a:(go as (b:bs))                   else                       b:(go (a:as) bs) <\/code><\/pre>\n<p>  \u0423\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c. \u041e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d \u043d\u0430 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043c\u043d\u043e\u0436\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>map<\/code> \u0438 <code>mulMono<\/code>. \u0410 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c (\u00ab\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043a\u043e\u043d\u00bb, \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u0435 \u0441\u043a\u043e\u0431\u043e\u043a) \u043a \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u0434\u0432\u0443\u0445 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0443\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u0432\u0441\u0435 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u044b \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0430 \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u0441\u043b\u043e\u0436\u0438\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b. \u0423\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u0451 \u0442\u043e\u0433\u043e \u0436\u0435 <code>map<\/code>, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u043b\u043e\u0436\u0438\u043c, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c <code>foldl\u2019<\/code> \u0438 <code>addPoly<\/code>. \u041a\u043e\u0434 \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u2014 \u043a\u043e\u0440\u043e\u0447\u0435, \u0447\u0435\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0432!  <\/p>\n<pre><code class=\"haskell\">mulPM :: (Ord a, Eq c, Num a, Num c) =&gt; Polynom c a -&gt; Monom c a -&gt; Polynom c a mulPM (P as) m = P $ map (mulMono m) as  mulM :: (Eq c, Num c, Num a, Ord a) =&gt; Polynom c a -&gt; Polynom c a -&gt; Polynom c a mulM l@(P ml) r@(P mr) = foldl' addPoly (P []) $ map (mulPM r) ml <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0451, \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430\u0434 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430\u043c\u0438, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u043c\u043e\u0436\u043d\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435!<\/p>\n<h4>4 \u0414\u0435\u043b\u0435\u043d\u0438\u0435 \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c \u043d\u0430 \u0431\u0430\u0437\u0438\u0441 (\u0440\u0435\u0434\u0443\u043a\u0446\u0438\u044f)<\/h4>\n<p>  <a name=\"a0000000005\"><\/a>\u0411\u0443\u0434\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e6a\/2e4\/96b\/e6a2e496b9f30d0b604822d018235efd.png\"\/> <i>\u0434\u0435\u043b\u0438\u0442\u0441\u044f<\/i> \u043d\u0430 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/676\/02b\/32b\/67602b32bfabe2dd231c9d1c8c905955.png\"\/>, \u0435\u0441\u043b\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cbf\/e48\/40a\/cbfe4840aa0c6f3d4bcb8edfb1403300.png\"\/>, \u0447\u0442\u043e <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/014\/ce2\/cb9\/014ce2cb926c3dc71c5792290e973431.png\"\/>. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u0435\u0440\u043d\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e6a\/2e4\/96b\/e6a2e496b9f30d0b604822d018235efd.png\"\/> \u0432 \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438, \u0447\u0435\u043c \u0432 <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/676\/02b\/32b\/67602b32bfabe2dd231c9d1c8c905955.png\"\/>. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>zipWith<\/code> \u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>and<\/code>. \u0410 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u0434\u0435\u043b\u0435\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"haskell\">dividable :: (Ord a) =&gt; Monom c a -&gt; Monom c a -&gt; Bool dividable (M _ al) (M _ ar) = and $ zipWith (&gt;=) al ar  divideM :: (Fractional c, Num a) =&gt; Monom c a -&gt; Monom c a -&gt; Monom c a divideM (M cl al) (M cr ar) = M (cl\/cr) (zipWith (-) al ar) <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0442\u0438\u043f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442\u044c \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u2014 \u043a\u043b\u0430\u0441\u0441 <code>Fractional<\/code>. \u042d\u0442\u043e \u0443\u0434\u0440\u0443\u0447\u0430\u0435\u0442, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u0435\u043b\u0430\u0435\u0448\u044c. <br \/>  \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430 \u043d\u0430 \u0431\u0430\u0437\u0438\u0441 \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c \u044d\u0442\u043e, \u043f\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443, \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0438\u043a\u043e\u043c. \u0421\u0440\u0435\u0434\u0438 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u0431\u0430\u0437\u0438\u0441\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u043b\u0438\u043d\u043e\u043c, \u0447\u0442\u043e \u043d\u0430 \u0435\u0433\u043e \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u043b\u0435\u043d \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u043b\u0435\u043d \u0434\u0435\u043b\u0438\u043c\u043e\u0433\u043e, \u0437\u0430\u0442\u0435\u043c \u0438\u0437 \u0434\u0435\u043b\u0438\u043c\u043e\u0433\u043e \u0432\u044b\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 \u043f\u043e\u043b\u0438\u043d\u043e\u043c, \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u0447\u0430\u0441\u0442\u043d\u043e\u0435 \u0438\u0445 \u0441\u0442\u0430\u0440\u0448\u0438\u0445 \u0447\u043b\u0435\u043d\u043e\u0432. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0437\u0430 \u043d\u043e\u0432\u043e\u0435 \u0434\u0435\u043b\u0438\u043c\u043e\u0435 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u043b\u0435\u043d \u043d\u0435 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0438 \u043d\u0430 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0442\u0430\u0440\u0448\u0438\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u0431\u0430\u0437\u0438\u0441\u0430, \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0434\u0435\u043b\u0438\u043c\u043e\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c.<\/p>\n<p>  \u041d\u0430\u0448\u0435\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u043d\u0430\u0437\u043e\u0432\u0451\u043c \u0435\u0451 <code>reduceMany<\/code>, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0434\u0432\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u2014 <code>reducable<\/code> \u0438 <code>reduce<\/code>. \u041f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043b\u0438 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439, \u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u0435.  <\/p>\n<pre><code class=\"haskell\">reducable :: (Ord a) =&gt; Polynom c a -&gt; Polynom c a -&gt; Bool reducable l r = dividable (lt l) (lt r)  reduce :: (Eq c, Fractional c, Num a, Ord a) =&gt;           Polynom c a -&gt; Polynom c a -&gt; Polynom c a reduce l r = addPoly l r'     where r' = mulPM r (scale (-1) q)           q = divideM (lt l) (lt r) <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u044f, \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043c\u043d\u043e\u0436\u0438\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u043d\u0430 -1 \u0438 \u0441\u043b\u043e\u0436\u0438\u043c \u0438\u0445 \u2014 \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e! \u0410 \u0432\u043e\u0442 \u0438 \u0432\u0435\u0441\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u0435\u043b\u0435\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"haskell\">reduceMany :: (Eq c, Fractional c, Num a, Ord a) =&gt;               Polynom c a -&gt; [Polynom c a] -&gt; Polynom c a reduceMany h fs = if reduced then reduceMany h' fs else h'     where (h', reduced) = reduceStep h fs False           reduceStep h (f:fs) r                | zeroP h = (h, r)               | otherwise = if reducable h f then                                 (reduce h f, True)                             else                                 reduceStep h fs r           reduceStep h [] r = (h, r) <\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>reduceMany<\/code> \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u043d\u0430 \u0431\u0430\u0437\u0438\u0441. \u0415\u0441\u043b\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e, \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f, \u0438\u043d\u0430\u0447\u0435 \u2014 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f. \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>reduceStep<\/code> \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0438\u0449\u0435\u0442 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c, \u0438 \u0434\u0435\u043b\u0438\u0442, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u0438 \u0444\u043b\u0430\u0433, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439, \u0431\u044b\u043b\u043e \u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u0435.<\/p>\n<h4>5 \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0411\u0443\u0445\u0431\u0435\u0440\u0433\u0435\u0440\u0430<\/h4>\n<p>  <a name=\"a0000000006\"><\/a>\u0412\u043e\u0442 \u043c\u044b \u0438 \u043f\u043e\u0434\u043e\u0448\u043b\u0438 \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0411\u0443\u0445\u0431\u0435\u0440\u0433\u0435\u0440\u0430. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0435\u0433\u043e \u0443 \u043d\u0430\u0441 \u0435\u0449\u0451 \u043d\u0435\u0442, \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0430. \u0415\u0451 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430, \u043a\u0430\u043a \u0438 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u043e\u0431\u0449\u0435\u0433\u043e \u043a\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u043e\u0432:  <\/p>\n<pre><code class=\"haskell\">lcmM :: (Num c, Ord a) =&gt; Monom c a -&gt; Monom c a -&gt; Monom c a lcmM (M cl al) (M cr ar) = M (cl*cr) (zipWith max al ar)  makeSPoly :: (Eq c, Fractional c, Num a, Ord a) =&gt;              Polynom c a -&gt; Polynom c a -&gt; Polynom c a makeSPoly l r = addPoly l' r'     where l' = mulPM l ra           r' = mulPM r la           lcm = lcmM (lt l) (lt r)           ra = divideM lcm (lt l)           la = scale (-1) $ divideM lcm (lt r) <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043e\u0431\u0430 \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043c\u043d\u043e\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043e\u0434\u043d\u043e\u0447\u043b\u0435\u043d\u044b, \u043f\u0440\u0438\u0447\u0451\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0449\u0451 \u0438 \u043d\u0430 \u043c\u0438\u043d\u0443\u0441 \u0435\u0434\u0438\u043d\u0438\u0446\u0443, \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c. <br \/>  \u042f \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c. \u042f \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043c\u043e\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0430 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u0430. \u041d\u043e \u043e\u043d\u0430 \u043c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0438 \u043e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0438 \u044d\u0442\u043e \u0432\u0441\u0451, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u041f\u043e\u0434\u0445\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c. \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u043c \u043d\u0430\u0448 \u0431\u0430\u0437\u0438\u0441 \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438 \u2014 \u0442\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0443\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0438 (\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438) <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u044b \u043e\u0442 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440 \u2014 \u00ab<code>checked<\/code>\u00bb \u2014 \u0438 \u0442\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u2014 \u00ab<code>add<\/code>\u00bb. \u041e\u0434\u0438\u043d \u0448\u0430\u0433 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:  <\/p>\n<ol>\n<li>\u0412\u043e\u0437\u044c\u043c\u0451\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/li>\n<li>\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043c <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u044b \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c \u0438 \u0432\u0441\u0435\u043c\u0438 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430\u043c\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0441\u0435 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/li>\n<li>\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c \u044d\u0442\u043e\u0442 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u0447\u0430\u0441\u0442\u044c<\/li>\n<\/ol>\n<p>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u043e\u0439, \u043f\u0435\u0440\u0432\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0431\u0430\u0437\u0438\u0441 \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430. \u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u044b \u043e\u0442 \u0442\u0435\u0445 \u043f\u0430\u0440, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043d\u0438 \u0443\u0436\u0435 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b. \u041a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u2014 <code>checkOne<\/code>. \u041e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d (\u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438), \u0430 \u0442\u0430\u043a \u0436\u0435 \u043e\u0431\u0435 \u0447\u0430\u0441\u0442\u0438, \u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u0431\u0430\u0437\u0438\u0441\u0443. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044e \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043e\u0441\u0442\u0430\u0442\u043a\u0438:  <\/p>\n<pre><code class=\"haskell\">checkOne :: (Eq c, Fractional c, Num a, Ord a) =&gt;             Polynom c a -&gt; [Polynom c a] -&gt; [Polynom c a] -&gt; [Polynom c a] checkOne f checked@(c:cs) add = if zeroP s then                                    checkOne f cs add                                else                                    s:(checkOne f cs (add ++ [s]))     where s = reduceMany (makeSPoly f c) (checked++add) checkOne _ [] _ = [] <\/code><\/pre>\n<p>  \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0445\u0438\u0442\u0440\u044b\u0439 <code>foldl<\/code>, \u043d\u043e \u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u044d\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u044f. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043b\u0438\u0448\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0430\u043c \u0431\u0430\u0437\u0438\u0441 \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430 \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0430\u0433\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0434\u043e\u0441\u043b\u043e\u0432\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u0435\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0441\u0430\u043c\u0438:  <\/p>\n<pre><code class=\"haskell\">build checked add@(a:as) = build (checked ++ [a]) (as ++ (checkOne a checked add)) build checked [] = checked <\/code><\/pre>\n<p>  \u041c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d <code>a<\/code> \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u0447\u0430\u0441\u0442\u044c, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432\u0441\u0435 \u0435\u0433\u043e \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043e\u0441\u0442\u0430\u0442\u043a\u0438. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0438 \u043f\u0440\u0430\u0432\u0434\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u044b \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043f\u0435\u0440\u0432\u043e\u0439, \u0432 \u0441\u0438\u043b\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0439 \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0447\u0430\u0441\u0442\u044f\u043c\u0438. \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0438\u0441\u0430 \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430 \u0438\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0435\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u0447\u0430\u0441\u0442\u044c, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u2014 \u0432\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 <code>build<\/code>, \u0447\u0442\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>makeGroebner<\/code>.  <\/p>\n<pre><code class=\"haskell\">makeGroebner :: (Eq c, Fractional c, Num a, Ord a) =&gt;                 [Polynom c a] -&gt; [Polynom c a] makeGroebner (b:bs) = build [b] bs     where build checked add@(a:as) = build (checked ++ [a]) (as ++ (checkOne a checked add))           build checked [] = checked <\/code><\/pre>\n<p>  <\/p>\n<h4>6 \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<p>  <a name=\"a0000000007\"><\/a>\u0412\u0441\u0435 \u044d\u0442\u0438 \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0431\u0435\u0437 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u043a\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0451\u0445 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u2014 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043a\u0430\u0440\u0442\u0435. \u0417\u0430\u043f\u0438\u0448\u0435\u043c \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/dd5\/2fe\/f0e\/dd52fef0ea14831a01ae59d73f25f7c5.png\"\/>. <\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u043a\u043e\u0431\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/fd6\/8cb\/598\/fd68cb59823fda21c39a625c559b386e.png\"\/> <\/p>\n<p>  \u041f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u0431\u0430\u0437\u0438\u0441 \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430 (\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0442\u0438\u043f <code>Rational<\/code> \u0434\u043b\u044f \u043f\u0443\u0449\u0435\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438):  <\/p>\n<pre> *Main&gt; let f1 = P [M 1 [2,0], M (-2) [1,0], M 1 [0,2], M (-26) [0,1], M 70 [0,0]] :: Polynom Rational Int *Main&gt; let f2 = P [M 1 [2,0], M (-22) [1,0], M 1 [0,2], M (-16) [0,1], M 160 [0,0]] :: Polynom Rational Int *Main&gt; let f3 = P [M 1 [2,0], M (-20) [1,0], M 1 [0,2], M (-2) [0,1], M 76 [0,0]] :: Polynom Rational Int *Main&gt; putStr $ unlines $ map show $ makeGroebner [f1,f2,f3] x1^2 + (-2) % 1x1 + x2^2 + (-26) % 1x2 + 70 % 1 x1^2 + (-22) % 1x1 + x2^2 + (-16) % 1x2 + 160 % 1 x1^2 + (-20) % 1x1 + x2^2 + (-2) % 1x2 + 76 % 1 (-20) % 1x1 + 10 % 1x2 + 90 % 1 15 % 1x2 + (-75) % 1 <\/pre>\n<p>  \u0427\u0443\u0434\u0435\u0441\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u0432\u0430 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0445 \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u0430\u044e\u0442 \u043e\u0442\u0432\u0435\u0442 \u2014 \u0442\u043e\u0447\u043a\u0430 (7,5). \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043e\u043d\u0430 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044f\u0445. \u0418\u0442\u0430\u043a, \u043c\u044b \u0441\u0432\u0435\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0440\u0451\u0445 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 \u043a \u0434\u0432\u0443\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u043c. \u0411\u0430\u0437\u0438\u0441\u044b \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430 \u2014 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<h4>7 \u0412\u043e\u043f\u0440\u043e\u0441\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  <a name=\"a0000000008\"><\/a>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u044d\u0442\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u0435\u0449\u0451 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c. <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cdf\/a37\/89d\/cdfa3789d7be91d89914ad01759e88d6.png\"\/>-\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u044b \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u0435\u0445 \u043f\u0430\u0440 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432, \u0441\u0442\u0430\u0440\u0448\u0438\u0435 \u0447\u043b\u0435\u043d\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u0445 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043e\u0431\u0449\u0435\u0435 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c. \u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0445 \u043f\u0440\u043e \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u00ab\u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u044b \u0438\u043c\u0435\u044e\u0442 <i>\u0437\u0430\u0446\u0435\u043f\u043b\u0435\u043d\u0438\u0435<\/i>\u00bb. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0442\u0430\u043a\u0443\u044e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e \u0432 \u043d\u0430\u0448\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>makeGroebner<\/code>.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0431\u0430\u0437\u0438\u0441 \u043f\u043e\u043f\u0430\u043b \u043f\u043e\u043b\u0438\u043d\u043e\u043c, \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u043b\u0435\u043d \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u043b\u0435\u043d \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0430 \u0438\u0437 \u0431\u0430\u0437\u0438\u0441\u0430, \u0442\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c. \u0411\u0430\u0437\u0438\u0441, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u043b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0442\u0430\u043a\u0438\u0445 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <i>\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c<\/i> \u0431\u0430\u0437\u0438\u0441\u043e\u043c \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u043b\u0438\u043d\u043e\u043c, <i>\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439<\/i> \u0447\u043b\u0435\u043d \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u043b\u0435\u043d \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0430. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u044d\u0442\u043e\u0442 \u043f\u043e\u043b\u0438\u043d\u043e\u043c \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439. \u0411\u0430\u0437\u0438\u0441, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u044b \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <i>\u0440\u0435\u0434\u0443\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c<\/i>. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0439\u0442\u0435 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e \u0438 \u0440\u0435\u0434\u0443\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u0438\u0441\u0430.<\/p>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0445\u043e\u0447\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u0434\u043e \u043a\u043e\u043d\u0446\u0430. \u042f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u043c\u043e\u0451 \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0443\u043c\u0431\u0443\u0440\u043d\u044b\u043c, \u0430 \u043a\u043e\u0434 \u043d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c (\u0438, \u043c\u043e\u0436\u0435\u0442, \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c), \u043d\u043e \u044f \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b \u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0431\u0430\u0437\u0438\u0441\u0430\u043c\u0438 \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430. \u041c\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u043e, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043c\u043e\u0438\u043c \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043c \u0432 \u0445\u043e\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445.<\/p>\n<p>  \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432 \u0432\u0438\u0434\u0435 <a href=\"https:\/\/gist.github.com\/maksbotan\/5414897\">gist<\/a>.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/177237\/\"> http:\/\/habrahabr.ru\/post\/177237\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u043b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0431\u0430\u0437\u0438\u0441\u0430\u043c\u0438 \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430, \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Haskell. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043c\u043e\u0438 \u0438\u0434\u0435\u0438 \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438. \u042f \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u0435\u043e\u0440\u0438\u044e, \u0442\u0430\u043a \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044e \u0441\u0442\u043e\u0438\u0442 \u0431\u044b\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c \u0441 \u043f\u043e\u043d\u044f\u0442\u0438\u044f\u043c\u0438 \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u044c\u0446\u0430, \u0438\u0434\u0435\u0430\u043b\u0430 \u043a\u043e\u043b\u044c\u0446\u0430 \u0438 \u0431\u0430\u0437\u0438\u0441\u0430 \u0438\u0434\u0435\u0430\u043b\u0430. \u0421\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u043e\u0442 <a href=\"http:\/\/www.mccme.ru\/free-books\/dubna\/arjantsev.pdf\">\u044d\u0442\u0443<\/a> \u043a\u043d\u0438\u0433\u0443 \u041c\u0426\u041d\u041c\u041e, \u0432 \u043d\u0435\u0439 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0430 \u0432\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0442\u0435\u043e\u0440\u0438\u044f.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 \u0431\u0430\u0437\u0438\u0441\u044b \u0413\u0440\u0451\u0431\u043d\u0435\u0440\u0430 \u0438\u0434\u0435\u0430\u043b\u043e\u0432 \u043a\u043e\u043b\u0435\u0446 \u043c\u043d\u043e\u0433\u043e\u0447\u043b\u0435\u043d\u043e\u0432 \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u042d\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 \u0438 \u0434\u0430\u0451\u0442 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043b\u044f \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u044d\u0442\u0438 \u0438\u0434\u0435\u0438.<\/p>\n<p>  \u0421\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u0451\u0442 \u044d\u0442\u0430 \u0442\u0435\u043e\u0440\u0438\u044f \u2014 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0448\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u0432\u044b\u0441\u0448\u0435\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u043e\u0439 \u0438\u043b\u0438 \u0441 Haskell, \u044f \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0432\u0430\u043c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u0438 \u0441\u0430\u043c\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u044b \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u043c \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u0443, \u0430 \u0432\u0441\u044f \u0442\u0435\u043e\u0440\u0438\u044f \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f. \u041c\u043e\u0436\u043d\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0451, \u0447\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0432\u044b\u0441\u0448\u0435\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u043e\u0439, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u043e, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442. <\/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-177237","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/177237","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=177237"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/177237\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=177237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=177237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=177237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}