{"id":327065,"date":"2022-01-10T08:44:50","date_gmt":"2022-01-10T08:44:50","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=327065"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=327065","title":{"rendered":"<span>\u041a\u0430\u043a \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0443\u044e<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\" class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0410\u041f\u0414 \u0441\u0443\u0434\u044f \u043f\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u043a\u0435. \u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0438 \u0437\u0430\u0447\u0435\u043c \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c. \u041a\u043e\u0440\u043e\u0442\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0443\u044e \u0432\u0441\u0435, \u043a\u0442\u043e \u0435\u0451 \u043a\u0430\u043a-\u0442\u043e \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 (\u0430 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u0438\u0435) \u043f\u043e\u043c\u043d\u044f\u0442 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043a\u0430\u043a &#171;\u0434\u0440\u0443\u0433\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a&#187;. \u042d\u0442\u043e &#171;\u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f&#187;, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e. \u041c\u044b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u043c\u0441\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u043e\u0439 \u043f\u043e\u0442\u043e\u0447\u0435\u0447\u043d\u043e. \u0410 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e &#8212; \u043d\u0435 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u043e\u0447\u043a\u0430\u0445. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0443 \u043c\u044b \u0438 \u043f\u0440\u043e\u044f\u0432\u0438\u043c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435. \u041a\u041e\u041d\u0415\u0426 \u0410\u041f\u0414<\/p>\n<p>\u0412\u0422\u041e\u0420\u041e\u0419 \u0410\u041f\u0414 \u043e \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u0435\u043b\u0435 \u0441\u0435\u043a\u0443\u0449\u0438\u0445 \u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 \u043f\u0438\u0442\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u043c\u044b \u0441\u043c. \u0432 \u0434\u043b\u0438\u043d\u043d\u043e\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043f\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0451\u0439 \u0432\u043e\u0442 \u0442\u0443\u0442: <a href=\"https:\/\/habr.com\/ru\/post\/599051\/#comment_23894499\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/599051\/#comment_23894499<\/a> . \u041a\u041e\u041d\u0415\u0426 \u0412\u0422\u041e\u0420\u041e\u0413\u041e \u0410\u041f\u0414<\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043e\u043f\u0446\u0438\u0439 \u043f\u0438\u0442\u043e\u043d\u0430. \u0412 \u043f\u0438\u0442\u043e\u043d\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0434\u0443\u043b\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 math. \u041e\u0442 \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>shape(), color(), speed(), radians() &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0449\u0435\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>xcor(), ycor() &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u043e\u043e\u0431\u0449\u0430\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>goto() &#8212; \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438 \u0432 \u0442\u043e\u0447\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>setheading() &#8212; \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0432\u044b \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>done() &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u044d\u043a\u0440\u0430\u043d\u0430 (\u043d\u0443\u0436\u043d\u0430 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0432 \u0442\u0440\u0435\u0437\u0432\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0432\u0440\u043e\u0434\u0435 VSCode. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0432 IDLE, \u043e\u043d\u0430 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430)<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0437\u0430\u043c\u0435\u0442\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0435 \u0443 \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438 \u0432 \u043f\u0438\u043a\u0441\u0435\u043b\u044f\u0445. \u0415\u0441\u043b\u0438 \u043e\u043d\u0430 \u043f\u043e\u0431\u0435\u0436\u0438\u0442 \u043f\u043e \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u0435 &#8212; \u0443\u0431\u0435\u0436\u0438\u0442 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u0437\u0430 \u043a\u0440\u0430\u0439 \u043b\u0438\u0441\u0442\u043a\u0430. \u0422\u0430\u043a \u0447\u0442\u043e \u0432\u0432\u0435\u0434\u0451\u043c \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u0435\u0434\u0438\u043d\u0438\u0446\u0443 UNIT = 100 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0443 \u0438 \u0432\u043e\u0442 \u044d\u0442\u043e \u0432\u043e\u0442 \u0432\u0441\u0451 \u043e\u0442\u043d\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0432 \u043d\u0430\u0448\u0438\u0445 \u044e\u043d\u0438\u0442\u0430\u0445.<\/p>\n<p>\u0418\u0437 \u043c\u043e\u0434\u0443\u043b\u044f math \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e atan() &#8212; \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441. \u041e\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0434\u0438\u0430\u043d\u043d\u0443\u044e \u043c\u0435\u0440\u0443 \u0443\u0433\u043b\u0430, \u043d\u0435 \u0433\u0440\u0430\u0434\u0443\u0441\u044b. \u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u044b \u043b\u0438\u0431\u043e \u0442\u0430\u043c \u0436\u0435 \u0431\u0435\u0440\u0451\u043c \u0447\u0438\u0441\u043b\u043e pi &#8212; \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u043c\u043e\u0434\u0443\u043b\u044f math, \u0442\u0438\u0445\u043e \u043d\u0430 \u043d\u0435\u0451 \u0434\u0435\u043b\u0438\u043c, \u0443\u043c\u043d\u043e\u0436\u0438\u0432 \u043f\u043e\u0442\u043e\u043c \u043d\u0430 180, \u043b\u0438\u0431\u043e \u043c\u044b \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 &#171;\u0440\u0430\u0434\u0438\u0430\u043d\u043d\u0430\u044f \u043c\u0435\u0440\u0430 \u0443\u0433\u043b\u0430&#187;, \u0432\u0435\u0440\u043d\u0435\u0435 &#8212; \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u0435\u0451. \u0412\u0430\u0448\u0438 \u0443\u0447\u0435\u043d\u0438\u043a\u0438, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u043e \u0440\u0430\u0434\u0438\u0430\u043d\u044b \u043d\u0435 \u0441\u043b\u044b\u0448\u0430\u043b\u0438.<\/p>\n<p>\u0410 &#171;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f&#187; \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; &#171;\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0443\u0433\u043b\u0430 \u043d\u0430\u043a\u043b\u043e\u043d\u0430 \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439&#187;, \u0432\u043e\u0442, \u0447\u0442\u043e \u043d\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f. \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043a\u0430\u043d\u0446\u0435\u043b\u044f\u0440\u0438\u0442, &#171;\u043d\u0430\u043d\u0438\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0434\u0435\u0436\u0435\u0439&#187; &#8212; &#171;\u0437\u0430\u043c. \u0433\u043b\u0430\u0432\u044b \u043e\u0442\u0434\u0435\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0446\u0435\u0445\u0430 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0438 (\u0438 \u0434\u0440.)&#187;. \u0411\u0443\u0434\u0435\u043c \u044d\u0442\u0443 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0446\u0430:<\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u0442\u044c \u0443 \u043d\u0430\u0441 \u0433\u0440\u0430\u0444\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 y = f(x)<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c \u043d\u0430 \u043d\u0451\u043c \u0442\u043e\u0447\u043a\u0430, (a, f(a))<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0442\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u0430 \u0447\u0435\u0440\u0435\u043f\u0430\u0445\u0430, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 (\u0447\u0435\u0440\u0435\u043f\u0430\u0445\u0430) \u0431\u0435\u0436\u0438\u0442 \u043f\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0443, \u0435\u0439 \u0432 \u044d\u0442\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u043d\u0430\u0434\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c&#8230; \u043f\u043e \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a \u0433\u0440\u0430\u0444\u0438\u043a\u0443, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a y = kx+b, \u0442\u043e \u044d\u0442\u043e k \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f: k = f'(a)<\/p>\n<\/li>\n<li>\n<p>\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0432\u044b \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438 \u0443\u043c\u0435\u0435\u0442 \u0432 \u0443\u0433\u043b\u044b, \u043d\u0435 \u0432 \u043f\u0440\u044f\u043c\u044b\u0435. \u0427\u0442\u043e\u0431\u044b \u0441\u043a\u0430\u0437\u0430\u0442\u044c &#171;\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438 \u0432 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0439&#187; \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u044f\u043c\u0443\u044e, \u0430 &#171;\u0443\u0433\u043e\u043b \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u044f\u043c\u043e\u0439, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0434\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0438 \u043b\u0443\u0447\u043e\u043c Ox&#187;. \u0418 \u0435\u0441\u043b\u0438 k \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 \u0432\u044b\u0448\u0435 &#8212; \u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0442\u043e\u0433\u043e \u0443\u0433\u043b\u0430, \u0442\u0443\u0442 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441 k: atan(f'(a))<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0432\u043e\u0442 \u0434\u043b\u044f \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u044b:<\/p>\n<pre><code class=\"python\">from turtle import Turtle, done from math import atan  UNIT = 100  alice = Turtle() alice.color('green') alice.shape('turtle') alice.speed(1) alice.radians()  for step in range(2 * UNIT):     x = alice.xcor() + 1     y = x**2 \/ UNIT     alice.goto(int(x), int(y))     k = 2*x \/ UNIT     alpha = atan(k)     alice.setheading(alpha)  done()<\/code><\/pre>\n<p>\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u044f \u0443\u0436\u0435 \u0434\u0435\u043b\u0430\u043b\u0430 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 +\/- \u0441\u0442\u0430\u0440\u0448\u0435\u043a\u043b\u0430\u0441\u0441\u043d\u0438\u043a\u0430\u043c\u0438. \u0412 \u0446\u0435\u043b\u043e\u043c \u043d\u0435\u043f\u043b\u043e\u0445\u043e: \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c, \u0438 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 (\u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0430\u043c\u0438). \u0412 \u0447\u0451\u043c \u0442\u0443\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u044f\u0441\u043d\u043e, \u0433\u0434\u0435 \u043c\u044b \u0442\u0443\u0442 \u0434\u0435\u043b\u0438\u043c \u043d\u0430 \u044e\u043d\u0438\u0442, \u043a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u044d\u0442\u0438 \u043c\u0435\u0441\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u044e\u043d\u0438\u0442\u0430\u043c\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u0433\u0440\u0430\u0444\u0438\u043a<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0432\u0441\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0438\u0437 \u0442\u043e\u0447\u043a\u0438 (0, 0)?<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0441\u0430\u0434\u0438\u0442\u044c \u044d\u0442\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0441 \u0434\u0436\u0430\u0432\u0430\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0438 \u0441\u0442\u0438\u043b\u044f\u043c\u0438?<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0440\u0451\u0445 div-\u043e\u0432: \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0441\u043e \u0441\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0443\u0433\u043b\u0430\u043c\u0438 \u0438 \u0433\u043b\u0430\u0437\u043a\u0430\u043c\u0438 (\u044d\u0442\u043e \u0434\u0432\u0430 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 div). \u0413\u043b\u0430\u0437\u043a\u0438 \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u044b, \u043d\u0430\u0434\u043e \u0438\u0445 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e \u043a\u0443\u0440\u0441\u0443. \u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e javascript:<\/p>\n<pre><code class=\"javascript\">&lt;!DOCTYPE html> &lt;html lang=\"en\"> &lt;head>     &lt;meta charset=\"UTF-8\">     &lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">     &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">     &lt;style>         body {             background: gray;         }         .beast {             position: absolute;             background: green;             width: 20px;             height: 20px;             border-radius: 50%;         }         .eye {             background: white;             width: 5px;             height: 5px;             border-radius: 2px;             transform: translateY(5px);         }     &lt;\/style> &lt;\/head> &lt;body>     &lt;div class=\"beast\">         &lt;div class=\"eye\">&lt;\/div>         &lt;div class=\"eye\">&lt;\/div>     &lt;\/div>      &lt;script>         const UNIT = 100                  const beast = document.getElementsByClassName('beast')[0]         let x = 0         let y = 0         let k = 0         let alpha = 0          let id = setInterval(             function() {                 x++                 y = x * x \/ UNIT                 beast.style.left = x + 'px'                 beast.style.top = y + 'px'                 k = 2 * x \/ UNIT                 alpha = Math.atan(k) * 180 \/ Math.PI + 180                 beast.style.transform = 'rotate(' + alpha + 'deg)'                 if (x > 2 * UNIT) clearInterval(id)             }, 50         )     &lt;\/script> &lt;\/body> &lt;\/html><\/code><\/pre>\n<p>\u0421 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043a\u043e\u0434 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0444\u0430\u0439\u043b\u044b. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438 \u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u0438\u0439 \u043a\u043e\u0434 \u0442\u043e\u0436\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f, \u0438 \u043c\u044b \u0434\u0435\u043b\u0438\u043b\u0438 \u0435\u0433\u043e: \u0444\u0430\u0439\u043b \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 + \u0444\u0430\u0439\u043b \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 + \u0444\u0430\u0439\u043b \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440. \u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043b\u044e\u0441 \u0435\u0449\u0451 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430: \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0438 \u0441\u0442\u0438\u043b\u0438.<\/p>\n<p>\u0411\u043e\u043d\u0443\u0441\u043e\u043c \u0441\u0442\u0430\u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u044d\u0442\u043e\u043c \u0436\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435 \u043f\u0440\u043e\u0439\u0442\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435. \u0418\u043b\u0438 \u0434\u0430\u0436\u0435 \u0443\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b. \u0412\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0432\u043e\u043f\u043b\u043e\u0449\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u043e\u0439. \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u044e\u0437\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0410 \u0432\u0430\u0448\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438 \u043e\u0431\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u043e\u0442 \u0432\u0438\u0434\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u044b\u0439 \u0441 \u0432\u043e\u0441\u044c\u043c\u0438\u043a\u043b\u0430\u0441\u0441\u043d\u0438\u043a\u043e\u043c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u0433\u043e\u0434\u0430 (\u043f\u0430\u0440\u0435\u043d\u044c &#8212; \u0441\u044b\u043d \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430, \u0438 \u0443\u0432\u043b\u0435\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u0432\u043d\u043e). \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439, \u0440\u0438\u0441\u043e\u0432\u0430\u043b\u043a\u0430 \u0438 \u043f\u0430\u043f\u043a\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438: \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>main.py<\/p>\n<pre><code class=\"python\">from painter import Painter from calculators.calculatorSquare import CalculatorSquare  painter = Painter() calculator = CalculatorSquare()  for x in range(200):     calculator.nextStep()     y = calculator.getY()     alpha = calculator.getAngleInRadians()     painter.showState(x, y, alpha)  painter.freeze()<\/code><\/pre>\n<p>painter.py<\/p>\n<pre><code class=\"python\">class Painter:      def __init__(self):         from turtle import Turtle, Screen         self.__beast = Turtle()         self.__beast.shape('turtle')         self.__beast.speed(10)         self.__beast.radians()      def showState(self, x, y, alpha):         self.__beast.goto(x,y)         self.__beast.setheading(alpha)      def freeze(self):         from turtle import done         done()<\/code><\/pre>\n<p>\u0438 \u043f\u0430\u043f\u043a\u0430 calculators \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 calculator.py<\/p>\n<pre><code class=\"python\">from math import atan  class Calculator:      def __init__(self):         self._UNIT = 100         self._x = 0         self._y = 0         self._alpha = 0      def nextStep(self):         self._x += 1      def getY(self) -> float:         pass      def getDerivative(self) -> float:         pass      def getAngleInRadians(self) -> float:         return atan(self.getDerivative()) <\/code><\/pre>\n<p>\u0438 calculatorSquare.py<\/p>\n<pre><code class=\"python\">from .calculator import Calculator  class CalculatorSquare(Calculator):      def getY(self):         return self._x ** 2 \/ self._UNIT        def getDerivative(self):         return self._x * 2 \/ self._UNIT<\/code><\/pre>\n<\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/599051\/\"> https:\/\/habr.com\/ru\/post\/599051\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\" class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0410\u041f\u0414 \u0441\u0443\u0434\u044f \u043f\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u043a\u0435. \u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0438 \u0437\u0430\u0447\u0435\u043c \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c. \u041a\u043e\u0440\u043e\u0442\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0443\u044e \u0432\u0441\u0435, \u043a\u0442\u043e \u0435\u0451 \u043a\u0430\u043a-\u0442\u043e \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 (\u0430 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u0438\u0435) \u043f\u043e\u043c\u043d\u044f\u0442 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043a\u0430\u043a &#171;\u0434\u0440\u0443\u0433\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a&#187;. \u042d\u0442\u043e &#171;\u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f&#187;, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e. \u041c\u044b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u043c\u0441\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u043e\u0439 \u043f\u043e\u0442\u043e\u0447\u0435\u0447\u043d\u043e. \u0410 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e &#8212; \u043d\u0435 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u043e\u0447\u043a\u0430\u0445. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0443 \u043c\u044b \u0438 \u043f\u0440\u043e\u044f\u0432\u0438\u043c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435. \u041a\u041e\u041d\u0415\u0426 \u0410\u041f\u0414<\/p>\n<p>\u0412\u0422\u041e\u0420\u041e\u0419 \u0410\u041f\u0414 \u043e \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u0435\u043b\u0435 \u0441\u0435\u043a\u0443\u0449\u0438\u0445 \u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 \u043f\u0438\u0442\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u043c\u044b \u0441\u043c. \u0432 \u0434\u043b\u0438\u043d\u043d\u043e\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043f\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0451\u0439 \u0432\u043e\u0442 \u0442\u0443\u0442: <a href=\"https:\/\/habr.com\/ru\/post\/599051\/#comment_23894499\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/599051\/#comment_23894499<\/a> . \u041a\u041e\u041d\u0415\u0426 \u0412\u0422\u041e\u0420\u041e\u0413\u041e \u0410\u041f\u0414<\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043e\u043f\u0446\u0438\u0439 \u043f\u0438\u0442\u043e\u043d\u0430. \u0412 \u043f\u0438\u0442\u043e\u043d\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0434\u0443\u043b\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 math. \u041e\u0442 \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>shape(), color(), speed(), radians() &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0449\u0435\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>xcor(), ycor() &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u043e\u043e\u0431\u0449\u0430\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>goto() &#8212; \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438 \u0432 \u0442\u043e\u0447\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>setheading() &#8212; \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0432\u044b \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>done() &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u044d\u043a\u0440\u0430\u043d\u0430 (\u043d\u0443\u0436\u043d\u0430 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0432 \u0442\u0440\u0435\u0437\u0432\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0432\u0440\u043e\u0434\u0435 VSCode. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0432 IDLE, \u043e\u043d\u0430 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430)<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0437\u0430\u043c\u0435\u0442\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0435 \u0443 \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438 \u0432 \u043f\u0438\u043a\u0441\u0435\u043b\u044f\u0445. \u0415\u0441\u043b\u0438 \u043e\u043d\u0430 \u043f\u043e\u0431\u0435\u0436\u0438\u0442 \u043f\u043e \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u0435 &#8212; \u0443\u0431\u0435\u0436\u0438\u0442 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u0437\u0430 \u043a\u0440\u0430\u0439 \u043b\u0438\u0441\u0442\u043a\u0430. \u0422\u0430\u043a \u0447\u0442\u043e \u0432\u0432\u0435\u0434\u0451\u043c \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u0435\u0434\u0438\u043d\u0438\u0446\u0443 UNIT = 100 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0443 \u0438 \u0432\u043e\u0442 \u044d\u0442\u043e \u0432\u043e\u0442 \u0432\u0441\u0451 \u043e\u0442\u043d\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0432 \u043d\u0430\u0448\u0438\u0445 \u044e\u043d\u0438\u0442\u0430\u0445.<\/p>\n<p>\u0418\u0437 \u043c\u043e\u0434\u0443\u043b\u044f math \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e atan() &#8212; \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441. \u041e\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0434\u0438\u0430\u043d\u043d\u0443\u044e \u043c\u0435\u0440\u0443 \u0443\u0433\u043b\u0430, \u043d\u0435 \u0433\u0440\u0430\u0434\u0443\u0441\u044b. \u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u044b \u043b\u0438\u0431\u043e \u0442\u0430\u043c \u0436\u0435 \u0431\u0435\u0440\u0451\u043c \u0447\u0438\u0441\u043b\u043e pi &#8212; \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u043c\u043e\u0434\u0443\u043b\u044f math, \u0442\u0438\u0445\u043e \u043d\u0430 \u043d\u0435\u0451 \u0434\u0435\u043b\u0438\u043c, \u0443\u043c\u043d\u043e\u0436\u0438\u0432 \u043f\u043e\u0442\u043e\u043c \u043d\u0430 180, \u043b\u0438\u0431\u043e \u043c\u044b \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 &#171;\u0440\u0430\u0434\u0438\u0430\u043d\u043d\u0430\u044f \u043c\u0435\u0440\u0430 \u0443\u0433\u043b\u0430&#187;, \u0432\u0435\u0440\u043d\u0435\u0435 &#8212; \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u0435\u0451. \u0412\u0430\u0448\u0438 \u0443\u0447\u0435\u043d\u0438\u043a\u0438, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u043e \u0440\u0430\u0434\u0438\u0430\u043d\u044b \u043d\u0435 \u0441\u043b\u044b\u0448\u0430\u043b\u0438.<\/p>\n<p>\u0410 &#171;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f&#187; \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; &#171;\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0443\u0433\u043b\u0430 \u043d\u0430\u043a\u043b\u043e\u043d\u0430 \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439&#187;, \u0432\u043e\u0442, \u0447\u0442\u043e \u043d\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f. \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043a\u0430\u043d\u0446\u0435\u043b\u044f\u0440\u0438\u0442, &#171;\u043d\u0430\u043d\u0438\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0434\u0435\u0436\u0435\u0439&#187; &#8212; &#171;\u0437\u0430\u043c. \u0433\u043b\u0430\u0432\u044b \u043e\u0442\u0434\u0435\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0446\u0435\u0445\u0430 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0438 (\u0438 \u0434\u0440.)&#187;. \u0411\u0443\u0434\u0435\u043c \u044d\u0442\u0443 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0446\u0430:<\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u0442\u044c \u0443 \u043d\u0430\u0441 \u0433\u0440\u0430\u0444\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 y = f(x)<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c \u043d\u0430 \u043d\u0451\u043c \u0442\u043e\u0447\u043a\u0430, (a, f(a))<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0442\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u0430 \u0447\u0435\u0440\u0435\u043f\u0430\u0445\u0430, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 (\u0447\u0435\u0440\u0435\u043f\u0430\u0445\u0430) \u0431\u0435\u0436\u0438\u0442 \u043f\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0443, \u0435\u0439 \u0432 \u044d\u0442\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u043d\u0430\u0434\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c&#8230; \u043f\u043e \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a \u0433\u0440\u0430\u0444\u0438\u043a\u0443, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a y = kx+b, \u0442\u043e \u044d\u0442\u043e k \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0430\u044f: k = f'(a)<\/p>\n<\/li>\n<li>\n<p>\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0432\u044b \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438 \u0443\u043c\u0435\u0435\u0442 \u0432 \u0443\u0433\u043b\u044b, \u043d\u0435 \u0432 \u043f\u0440\u044f\u043c\u044b\u0435. \u0427\u0442\u043e\u0431\u044b \u0441\u043a\u0430\u0437\u0430\u0442\u044c &#171;\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438 \u0432 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0439&#187; \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u044f\u043c\u0443\u044e, \u0430 &#171;\u0443\u0433\u043e\u043b \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u044f\u043c\u043e\u0439, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0434\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0438 \u043b\u0443\u0447\u043e\u043c Ox&#187;. \u0418 \u0435\u0441\u043b\u0438 k \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 \u0432\u044b\u0448\u0435 &#8212; \u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0442\u043e\u0433\u043e \u0443\u0433\u043b\u0430, \u0442\u0443\u0442 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441 k: atan(f'(a))<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0432\u043e\u0442 \u0434\u043b\u044f \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u044b:<\/p>\n<pre><code class=\"python\">from turtle import Turtle, done from math import atan  UNIT = 100  alice = Turtle() alice.color('green') alice.shape('turtle') alice.speed(1) alice.radians()  for step in range(2 * UNIT):     x = alice.xcor() + 1     y = x**2 \/ UNIT     alice.goto(int(x), int(y))     k = 2*x \/ UNIT     alpha = atan(k)     alice.setheading(alpha)  done()<\/code><\/pre>\n<p>\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u044f \u0443\u0436\u0435 \u0434\u0435\u043b\u0430\u043b\u0430 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 +\/- \u0441\u0442\u0430\u0440\u0448\u0435\u043a\u043b\u0430\u0441\u0441\u043d\u0438\u043a\u0430\u043c\u0438. \u0412 \u0446\u0435\u043b\u043e\u043c \u043d\u0435\u043f\u043b\u043e\u0445\u043e: \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c, \u0438 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 (\u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0430\u043c\u0438). \u0412 \u0447\u0451\u043c \u0442\u0443\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u044f\u0441\u043d\u043e, \u0433\u0434\u0435 \u043c\u044b \u0442\u0443\u0442 \u0434\u0435\u043b\u0438\u043c \u043d\u0430 \u044e\u043d\u0438\u0442, \u043a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u044d\u0442\u0438 \u043c\u0435\u0441\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u044e\u043d\u0438\u0442\u0430\u043c\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u0433\u0440\u0430\u0444\u0438\u043a<\/p>\n<\/li>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0432\u0441\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0438\u0437 \u0442\u043e\u0447\u043a\u0438 (0, 0)?<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0441\u0430\u0434\u0438\u0442\u044c \u044d\u0442\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0441 \u0434\u0436\u0430\u0432\u0430\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0438 \u0441\u0442\u0438\u043b\u044f\u043c\u0438?<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0440\u0451\u0445 div-\u043e\u0432: \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0441\u043e \u0441\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0443\u0433\u043b\u0430\u043c\u0438 \u0438 \u0433\u043b\u0430\u0437\u043a\u0430\u043c\u0438 (\u044d\u0442\u043e \u0434\u0432\u0430 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 div). \u0413\u043b\u0430\u0437\u043a\u0438 \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u044b, \u043d\u0430\u0434\u043e \u0438\u0445 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e \u043a\u0443\u0440\u0441\u0443. \u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e javascript:<\/p>\n<pre><code class=\"javascript\">&lt;!DOCTYPE html> &lt;html lang=\"en\"> &lt;head>     &lt;meta charset=\"UTF-8\">     &lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">     &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">     &lt;style>         body {             background: gray;         }         .beast {             position: absolute;             background: green;             width: 20px;             height: 20px;             border-radius: 50%;         }         .eye {             background: white;             width: 5px;             height: 5px;             border-radius: 2px;             transform: translateY(5px);         }     &lt;\/style> &lt;\/head> &lt;body>     &lt;div class=\"beast\">         &lt;div class=\"eye\">&lt;\/div>         &lt;div class=\"eye\">&lt;\/div>     &lt;\/div>      &lt;script>         const UNIT = 100                  const beast = document.getElementsByClassName('beast')[0]         let x = 0         let y = 0         let k = 0         let alpha = 0          let id = setInterval(             function() {                 x++                 y = x * x \/ UNIT                 beast.style.left = x + 'px'                 beast.style.top = y + 'px'                 k = 2 * x \/ UNIT                 alpha = Math.atan(k) * 180 \/ Math.PI + 180                 beast.style.transform = 'rotate(' + alpha + 'deg)'                 if (x > 2 * UNIT) clearInterval(id)             }, 50         )     &lt;\/script> &lt;\/body> &lt;\/html><\/code><\/pre>\n<p>\u0421 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043a\u043e\u0434 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0444\u0430\u0439\u043b\u044b. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438 \u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u0438\u0439 \u043a\u043e\u0434 \u0442\u043e\u0436\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f, \u0438 \u043c\u044b \u0434\u0435\u043b\u0438\u043b\u0438 \u0435\u0433\u043e: \u0444\u0430\u0439\u043b \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 + \u0444\u0430\u0439\u043b \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 + \u0444\u0430\u0439\u043b \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440. \u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043b\u044e\u0441 \u0435\u0449\u0451 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430: \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0438 \u0441\u0442\u0438\u043b\u0438.<\/p>\n<p>\u0411\u043e\u043d\u0443\u0441\u043e\u043c \u0441\u0442\u0430\u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u044d\u0442\u043e\u043c \u0436\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435 \u043f\u0440\u043e\u0439\u0442\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435. \u0418\u043b\u0438 \u0434\u0430\u0436\u0435 \u0443\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b. \u0412\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0432\u043e\u043f\u043b\u043e\u0449\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u043e\u0439. \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u044e\u0437\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0410 \u0432\u0430\u0448\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438 \u043e\u0431\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u043e\u0442 \u0432\u0438\u0434\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u044b\u0439 \u0441 \u0432\u043e\u0441\u044c\u043c\u0438\u043a\u043b\u0430\u0441\u0441\u043d\u0438\u043a\u043e\u043c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u0433\u043e\u0434\u0430 (\u043f\u0430\u0440\u0435\u043d\u044c &#8212; \u0441\u044b\u043d \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430, \u0438 \u0443\u0432\u043b\u0435\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u0432\u043d\u043e). \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439, \u0440\u0438\u0441\u043e\u0432\u0430\u043b\u043a\u0430 \u0438 \u043f\u0430\u043f\u043a\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438: \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>main.py<\/p>\n<pre><code class=\"python\">from painter import Painter from calculators.calculatorSquare import CalculatorSquare  painter = Painter() calculator = CalculatorSquare()  for x in range(200):     calculator.nextStep()     y = calculator.getY()     alpha = calculator.getAngleInRadians()     painter.showState(x, y, alpha)  painter.freeze()<\/code><\/pre>\n<p>painter.py<\/p>\n<pre><code class=\"python\">class Painter:      def __init__(self):         from turtle import Turtle, Screen         self.__beast = Turtle()         self.__beast.shape('turtle')         self.__beast.speed(10)         self.__beast.radians()      def showState(self, x, y, alpha):         self.__beast.goto(x,y)         self.__beast.setheading(alpha)      def freeze(self):         from turtle import done         done()<\/code><\/pre>\n<p>\u0438 \u043f\u0430\u043f\u043a\u0430 calculators \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 calculator.py<\/p>\n<pre><code class=\"python\">from math import atan  class Calculator:      def __init__(self):         self._UNIT = 100         self._x = 0         self._y = 0         self._alpha = 0      def nextStep(self):         self._x += 1      def getY(self) -> float:         pass      def getDerivative(self) -> float:         pass      def getAngleInRadians(self) -> float:         return atan(self.getDerivative()) <\/code><\/pre>\n<p>\u0438 calculatorSquare.py<\/p>\n<pre><code class=\"python\">from .calculator import Calculator  class CalculatorSquare(Calculator):      def getY(self):         return self._x ** 2 \/ self._UNIT        def getDerivative(self):         return self._x * 2 \/ self._UNIT<\/code><\/pre>\n<\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/599051\/\"> https:\/\/habr.com\/ru\/post\/599051\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-327065","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/327065","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=327065"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/327065\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}