{"id":334413,"date":"2022-06-13T15:00:51","date_gmt":"2022-06-13T15:00:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=334413"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=334413","title":{"rendered":"<span>\u041a\u0440\u0438\u0432\u044b\u0435 \u0438 \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0447.2<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<br \/>\u0418\u0442\u0430\u043a, \u044d\u0442\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0442\u0435\u043c\u043e\u0439 &#8212; \u043a\u0440\u0438\u0432\u044b\u0435, \u0438\u0445 \u0440\u0430\u0437\u0431\u043e\u0440.<\/p>\n<hr\/>\n<h2>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/h2>\n<p>\u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044f \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0434\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043a\u0440\u0438\u0432\u043e\u0439. \u041e\u0434\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u043e\u0442\u0440\u0435\u0437\u043a\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0442\u043e\u0447\u043a\u0430\u043c\u0438, \u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0435\u0449\u0435 \u0438 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u0442\u043e\u0447\u043a\u0438. \u0414\u0440\u0443\u0433\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0432\u0441\u0435\u043c \u043e\u0442\u0440\u0435\u0437\u043a\u0435 \u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438. \u0413\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u044d\u0442\u0443 \u043a\u0440\u0438\u0432\u0443\u044e \u0446\u0435\u043b\u044b\u043c \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e\u043c \u043a\u0440\u0438\u0432\u044b\u0445. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"y\\left(x\\right)=\\frac{\\sum_{i=1}^{n}y_{i}\\cdot k_{i}}{\\sum_{i=1}^{n}k_{i}},\" alt=\"y\\left(x\\right)=\\frac{\\sum_{i=1}^{n}y_{i}\\cdot k_{i}}{\\sum_{i=1}^{n}k_{i}},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e2e\/b88\/2ca\/e2eb882cac056e7b7438b854a4de23e8.svg\" width=\"174\" height=\"54\"\/><\/p>\n<p>\u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b. \u041d\u043e \u0440\u0430\u0437 \u044d\u0442\u043e \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e, \u0442\u043e \u043e\u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430. \u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"f\\left(\\frac{x-x_{i}}{x_{n}-x_{1}}\\right),\" alt=\"f\\left(\\frac{x-x_{i}}{x_{n}-x_{1}}\\right),\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7e6\/85d\/9ed\/7e685d9edfe4a20b779e5d56d43fac62.svg\" width=\"124\" height=\"50\"\/><\/p>\n<p>\u0433\u0434\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0442 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"0\" alt=\"0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c95\/db3\/003\/c95db30035f31b2fba40bfa5e7e0ae87.svg\" width=\"10\" height=\"17\"\/> \u0434\u043e\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"1\" alt=\"1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ab8\/371\/74b\/ab837174b3abdf920aff86a949507fbd.svg\" width=\"10\" height=\"17\"\/> \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0435\u0433\u043e. \u041f\u0440\u0438\u0447\u0435\u043c \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"0\" alt=\"0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/45b\/4b2\/635\/45b4b2635b3466e30a91ed1d8c48ffec.svg\" width=\"10\" height=\"17\"\/> \u0434\u043e\u00a0<img class=\"formula inline\" source=\"a>0&#8243; alt=&#187;a>0&#8243; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3b0\/127\/b67\/3b0127b679e0254f020ceabd353cf16a.svg&#187; width=&#187;46&#8243; height=&#187;17&#8243;\/>(\u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u0439\u0434\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435). \u041f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0442\u0430\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x, \" alt=\"x, \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4d7\/eb0\/068\/4d7eb006826648b016b18e6c5329c653.svg\" width=\"17\" height=\"15\"\/> <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x^{n},\" alt=\"x^{n},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/721\/692\/6d3\/7216926d36966d8836da12caba760ae3.svg\" width=\"27\" height=\"21\"\/> <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\" \\sin\\left(x\\right),\" alt=\" \\sin\\left(x\\right),\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6b8\/dd3\/9db\/6b8dd39dbd656b021b6de08b74513fe5.svg\" width=\"56\" height=\"22\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"n^{x},\" alt=\"n^{x},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/04d\/a59\/ad0\/04da59ad031e4061b41222b258a959da.svg\" width=\"27\" height=\"21\"\/><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"\\tan\\left(x\\right),\" alt=\"\\tan\\left(x\\right),\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9b7\/7e8\/2ad\/9b77e82ad825496eb52cdfe3ccf7d778.svg\" width=\"60\" height=\"22\"\/> <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"\\sqrt{x}\" alt=\"\\sqrt{x}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/44f\/583\/7d5\/44f5837d5526800fbb61346124913aba.svg\" width=\"28\" height=\"24\"\/> \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u043e\u0432.<\/p>\n<p>\u0414\u043b\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"k\" alt=\"k\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6ed\/8ec\/fcc\/6ed8ecfcc2ea244e4cc472f456543b87.svg\" width=\"10\" height=\"17\"\/>\u00a0\u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b. \u0414\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0421\u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0443 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"\\textstyle\\frac{x-x_{i}}{x_{n}-x_{1}}\" alt=\"\\textstyle\\frac{x-x_{i}}{x_{n}-x_{1}}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ab6\/046\/f73\/ab6046f73829cd31bb68e4633ab00c9d.svg\" width=\"47\" height=\"30\"\/> \u043d\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"  D_{i},\" alt=\"  D_{i},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/216\/12c\/86f\/21612c86f29babb664a6f6112ee2631e.svg\" width=\"28\" height=\"20\"\/> \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u043d\u0435 \u043c\u0435\u0448\u0430\u043b\u0430\u0441\u044c \u044d\u0442\u0430 \u0434\u0440\u043e\u0431\u044c \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c. \u0422\u043e\u0433\u0434\u0430\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"k\" alt=\"k\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dd2\/c1f\/384\/dd2c1f38469256f234b787f061d23bbf.svg\" width=\"10\" height=\"17\"\/>\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u043a\u0430\u043a <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\frac{1}{f\\left(D_{i}\\right)},\" alt=\"\\frac{1}{f\\left(D_{i}\\right)},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/21e\/5c9\/2f8\/21e5c92f810d27ed5dc625528272c782.svg\" width=\"65\" height=\"48\"\/><\/p>\n<p>\u0447\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432 \u0443\u0437\u043b\u0430\u0445 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 \u043a\u0430\u043a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\prod_{j=1,\\ j \\neq i}^{n}f\\left(D_{j}\\right),\" alt=\"\\prod_{j=1,\\ j \\neq i}^{n}f\\left(D_{j}\\right),\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7e8\/1d0\/bff\/7e81d0bff5922f6a66ddacbc2a4689c1.svg\" width=\"119\" height=\"60\"\/><\/p>\n<p>\u0442\u043e\u0433\u0434\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0439\u0442\u0438 \u043a \u0442\u0430\u043a\u0438\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u0430\u043c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c, \u0432 \u043a\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0440\u0438 \u043c\u0435\u043d\u044c\u0448\u0435\u043c <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"D_{i}\" alt=\"D_{i}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/18c\/c5d\/302\/18cc5d302eef1b4afa99887f9572f44b.svg\" width=\"23\" height=\"20\"\/>. \u041f\u0435\u0440\u0432\u043e\u0435 &#8212; \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044c. \u0412\u0442\u043e\u0440\u043e\u0435 &#8212; \u043f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"D\" alt=\"D\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/248\/545\/69a\/24854569a74a7c285029a17fce7ed2c9.svg\" width=\"16\" height=\"17\"\/>\u00a0\u0432\u0441\u0435\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u043e\u0447\u0435\u043a, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"D_{i}\" alt=\"D_{i}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7ce\/bc2\/fe5\/7cebc2fe5f51b33660223c15f254ff91.svg\" width=\"23\" height=\"20\"\/>\u00a0\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n<p>\u0412 \u043e\u0431\u043e\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445 \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438. \u041e\u0434\u043d\u0430 \u2013 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0442\u043e\u0447\u0435\u043a, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u043b\u0438\u043d\u0435\u0439\u043d\u0443\u044e \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044e. \u0414\u0440\u0443\u0433\u0430\u044f \u2013 \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u0435\u043a, \u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u0435, \u043b\u0443\u0447\u0448\u0435. <\/p>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f &#8212; \u043c\u043e\u0434\u0443\u043b\u044c\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"D,\" alt=\"D,\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/433\/e59\/840\/433e598405259c461c3673b05aec8bcf.svg\" width=\"22\" height=\"20\"\/> \u043e\u043d \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0434\u043b\u044f \u043e\u0431\u043e\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432. \u0412\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f &#8212;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\frac{1}{f\\left(D_{i}\\right)\\cdot\\operatorname{sgn}\\left(\\operatorname{mod}\\left(i,\\ 2\\right)\\cdot2-1\\right)}\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \u0438 \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\prod_{j=1,\\ j \\neq i}^{n}f\\left(D_{j}\\right)\\cdot\\operatorname{sgn}\\left(i-j\\right),\" alt=\"\\frac{1}{f\\left(D_{i}\\right)\\cdot\\operatorname{sgn}\\left(\\operatorname{mod}\\left(i,\\ 2\\right)\\cdot2-1\\right)}\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \u0438 \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\prod_{j=1,\\ j \\neq i}^{n}f\\left(D_{j}\\right)\\cdot\\operatorname{sgn}\\left(i-j\\right),\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/392\/010\/b4c\/392010b4c943a40a9c1fda933d3088b1.svg\" width=\"593\" height=\"60\"\/><\/p>\n<p>\u0434\u043b\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0431\u0435\u0437 \u0443\u0437\u043b\u043e\u0432 \u0438 \u0441 \u0443\u0437\u043b\u0430\u043c\u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0421\u0442\u043e\u0438\u0442 \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"f\\ \" alt=\"f\\ \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/128\/83b\/c08\/12883bc083dddcf6ece805f370a01dd4.svg\" width=\"16\" height=\"21\"\/>\u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043d\u0435\u0447\u0435\u0442\u043d\u043e\u0439, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0435\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"-a\" alt=\"-a\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ea0\/7ea\/cf8\/ea07eacf8aebbce118c757787825ea97.svg\" width=\"26\" height=\"16\"\/> \u0434\u043e\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a,\" alt=\"a,\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/18d\/50e\/b79\/18d50eb79b1a591a7342cd95f7400e2d.svg\" width=\"16\" height=\"15\"\/> \u043b\u0438\u0431\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u0437\u043d\u0430\u043a \u0437\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u043d\u0435\u0435 \u043c\u043e\u0434\u0443\u043b\u044c.\u00a0<\/p>\n<hr\/>\n<h2>\u041a\u0432\u0430\u0434\u0440\u0430\u0442<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/19b\/f46\/8b7\/19bf468b73b0f9b397aba661de25639b.png\" alt=\"\u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u0432\u0430\u0434\u0440\u0430\u0442\" title=\"\u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u0432\u0430\u0434\u0440\u0430\u0442\" width=\"1108\" height=\"862\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/19b\/f46\/8b7\/19bf468b73b0f9b397aba661de25639b.png\"\/><figcaption>\u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u0432\u0430\u0434\u0440\u0430\u0442<\/figcaption><\/figure>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"k\" alt=\"k\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2d6\/aad\/012\/2d6aad0124a262cd17f5c794936ed704.svg\" width=\"10\" height=\"17\"\/> \u0434\u043e \u0432\u0438\u0434\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"\\textstyle\\frac{1}{\\left(x-x_{i}\\right)^{2}},\" alt=\"\\textstyle\\frac{1}{\\left(x-x_{i}\\right)^{2}},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8b5\/5e9\/797\/8b55e9797bb49565d0b23c047d40dcfd.svg\" width=\"61\" height=\"35\"\/> \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044c \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e\u00a0\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0438 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0443 \u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044f \u0438 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044f \u0434\u0440\u043e\u0431\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0422\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u043e\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7f5\/240\/ea9\/7f5240ea97c68301083b015480914b21.svg\" width=\"11\" height=\"12\"\/> \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442, \u0442\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e. \u041f\u0440\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u043a\u043e\u043b\u043e \u0442\u043e\u0447\u0435\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"y\" alt=\"y\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/26f\/2e3\/b22\/26f2e3b222e554f0a89ebda2ac36489e.svg\" width=\"10\" height=\"16\"\/> \u0442\u043e\u0447\u043a\u0438.\u00a0<\/p>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"2\" alt=\"2\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/151\/e06\/aa6\/151e06aa6733ce9b1b5b8093a3c81ca6.svg\" width=\"10\" height=\"17\"\/> \u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043d\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435\u0446\u0435\u043b\u043e\u0435, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c. \u0422\u0430\u043a\u0436\u0435 \u044f \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0432\u044b\u0448\u0435\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3,\" alt=\"3,\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2df\/c0d\/e82\/2dfc0de82ca3fd7097a7f68d9924c859.svg\" width=\"15\" height=\"20\"\/> \u0432\u0435\u0434\u044c \u0434\u0430\u0436\u0435 \u0442\u043e\u0433\u0434\u0430 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u0436\u0430\u0442\u0430 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u0442\u043e\u0447\u0435\u043a \u043e\u043a\u043e\u043b\u043e \u043d\u0438\u0445.\u00a0<\/p>\n<pre><code class=\"cs\">public static float power(Vector2[] points, float x, float n) {   float b = 0; float y = 0; for (int i = 0; i &lt; points.Length; i++) {     if (points[i].x == x)       return points[i].y; float k = 1 \/ Mathf.Pow(Mathf.Abs(points[i].x - x), n); y += points[i].y * k; b += k; } return y \/ b; }<\/code><\/pre>\n<hr\/>\n<h2>\u0421\u0438\u043d\u0443\u0441\/\u041a\u043e\u0441\u0438\u043d\u0443\u0441<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/14b\/ad0\/b00\/14bad0b00d8850c27e75f4381c725325.png\" alt=\"\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0441\u0438\u043d\u0443\u0441, a=0.7, b=0.9\" title=\"\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0441\u0438\u043d\u0443\u0441, a=0.7, b=0.9\" width=\"1108\" height=\"862\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/14b\/ad0\/b00\/14bad0b00d8850c27e75f4381c725325.png\"\/><figcaption>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0441\u0438\u043d\u0443\u0441, a=0.7, b=0.9<\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0438. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u0438\u043d\u0443\u0441\u0430 \u0438 \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430. \u041e\u043d\u0438 \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u044b \u043d\u0430 \u043f\u043e\u043b\u0443\u043f\u0435\u0440\u0438\u043e\u0434, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u043e\u0431\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430. \u0418\u0442\u0430\u043a, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"0\" alt=\"0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fad\/50b\/870\/fad50b870bce1f3928faf4ce7d32b3e7.svg\" width=\"10\" height=\"17\"\/> \u0434\u043e\u00a0<img class=\"formula inline\" source=\"a>0&#8243; alt=&#187;a>0&#8243; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/91d\/334\/3a5\/91d3343a51d18d7fedff57c968fe8f09.svg&#187; width=&#187;46&#8243; height=&#187;17&#8243;\/>. \u0414\u043b\u044f \u0441\u0438\u043d\u0443\u0441\u0430 \u0438 \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430 \u044d\u0442\u043e, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\frac{\\sin\\left(x\\pi-\\frac{\\pi}{2}\\right)+1}{2}\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\  \u0438 \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\frac{1-\\cos\\left(x\\pi\\right)}{2}.\" alt=\"\\frac{\\sin\\left(x\\pi-\\frac{\\pi}{2}\\right)+1}{2}\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\  \u0438 \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\frac{1-\\cos\\left(x\\pi\\right)}{2}.\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/61a\/087\/89a\/61a08789aa4f5d2d214918df90d0dcef.svg\" width=\"385\" height=\"50\"\/><\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430 \u043a\u043e\u0440\u043e\u0447\u0435, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u0430 \u0441\u0438\u043d\u0443\u0441\u0443, \u044f \u0431\u0443\u0434\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u044e. \u0421\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u0430 \u0434\u043b\u044f \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430, \u043d\u043e \u043e\u043d\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u041c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0434\u0432\u0438\u0433 \u0438 \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u043e\u0441\u0438 \u0430\u0431\u0441\u0446\u0438\u0441\u0441. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0449\u0435 \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x=0\" alt=\"x=0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e07\/8f9\/efb\/e078f9efb4846228a154fd9a7f881f56.svg\" width=\"47\" height=\"17\"\/> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u0442\u043e\u0436\u0435 \u0440\u0430\u0432\u043d\u043e\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"0.\" alt=\"0.\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/517\/949\/3bb\/5179493bb7eb462455ff0d8c373b305e.svg\" width=\"15\" height=\"17\"\/> \u0422\u043e\u0433\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a\" alt=\"a\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/acd\/597\/2db\/acd5972dbbe2388a6200607ea84b29b2.svg\" width=\"10\" height=\"12\"\/> \u0438\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"b\\ \" alt=\"b\\ \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c48\/be0\/157\/c48be01572100374c02cb1f3f1793401.svg\" width=\"13\" height=\"17\"\/>\u0434\u043b\u044f \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u0434\u0432\u0438\u0433\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\cos\\left(x\\cdot a\\cdot\\pi-b\\cdot\\pi\\right)-\\cos\\left(b\\cdot\\pi\\right)\\ .\" alt=\"\\cos\\left(x\\cdot a\\cdot\\pi-b\\cdot\\pi\\right)-\\cos\\left(b\\cdot\\pi\\right)\\ .\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/398\/571\/f01\/398571f01f80ae320416d4207da4fcef.svg\" width=\"270\" height=\"22\"\/><\/p>\n<p>\u041c\u044b \u0432\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u043a\u043e\u0441\u0438\u043d\u0443\u0441 \u0441\u0434\u0432\u0438\u0433\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x=0,\" alt=\"x=0,\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3c2\/ebe\/7dc\/3c2ebe7dc5782432b23b5c3c9d96cb50.svg\" width=\"53\" height=\"20\"\/> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u043e\u0436\u0435 \u0431\u044b\u043b\u043e \u0440\u0430\u0432\u043d\u043e <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"0.\" alt=\"0.\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/604\/97e\/1aa\/60497e1aa060f436758efb61ab77195b.svg\" width=\"15\" height=\"17\"\/> \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0442\u043e\u0436\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u2013 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a\\in\\left(0;1\\right], b\\in\\left[a;1\\right].\" alt=\"a\\in\\left(0;1\\right], b\\in\\left[a;1\\right].\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5c3\/373\/8c5\/5c33738c5bdc72a4532fa91053f923fa.svg\" width=\"168\" height=\"22\"\/> \u042d\u0442\u043e \u0432\u044b\u0437\u0432\u0430\u043d\u043e \u0442\u0435\u043c, \u0447\u0442\u043e \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"1, \" alt=\"1, \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e04\/a1d\/248\/e04a1d248b1a294cfd31439332105971.svg\" width=\"15\" height=\"20\"\/> \u0438\u043d\u0430\u0447\u0435 \u043f\u0435\u0440\u0438\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"1\" alt=\"1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e09\/dbc\/367\/e09dbc367c0ceda3e6c648e3bb132271.svg\" width=\"10\" height=\"17\"\/>.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"f\" alt=\"f\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6dd\/1ab\/a5c\/6dd1aba5c5b350e2bf3a00f4684243ff.svg\" width=\"11\" height=\"21\"\/> \u043d\u0443\u0436\u043d\u043e <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/853\/f06\/9e3\/853f069e3bb65c536c49577412fa3e9e.svg\" width=\"11\" height=\"12\"\/> \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"D_{i}.\" alt=\"D_{i}.\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aaa\/c2a\/f7d\/aaac2af7d8dd9a769ac8f21ffcd18696.svg\" width=\"28\" height=\"20\"\/><\/p>\n<pre><code class=\"cs\">public static float cosine(Vector2[] points, float x, float k1, float k2) {   float b = 0; float y = 0; for (int i = 0; i &lt; points.Length; i++) {     if (points[i].x == x)       return points[i].y; float k = 1 \/ (Mathf.Cos((points[i].x - x) \/ (points[points.Length-1].x - points[0].x) * k1 * Mathf.PI - k2 * Mathf.PI) - Mathf.Cos(k2 * Mathf.PI)); y += points[i].y * k; b += k; } return y \/ b; }<\/code><\/pre>\n<hr\/>\n<h2>\u042d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dbd\/10a\/c29\/dbd10ac295622f8177219f4dd6d0a933.png\" alt=\"\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430\" title=\"\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430\" width=\"1108\" height=\"862\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dbd\/10a\/c29\/dbd10ac295622f8177219f4dd6d0a933.png\"\/><figcaption>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430<\/figcaption><\/figure>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b &#8212; \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"n^{x},\" alt=\"n^{x},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/24a\/992\/ee4\/24a992ee48b6b1212c3ef9ad31fbb31e.svg\" width=\"27\" height=\"21\"\/> \u043d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"e^{x}\" alt=\"e^{x}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/abe\/562\/945\/abe56294580a359c28bbe9239a9bd963.svg\" width=\"19\" height=\"18\"\/> \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u044e\u0442 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438, \u0442\u043e \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u041f\u0440\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x=0,\\ e^{x}=1\" alt=\"x=0,\\ e^{x}=1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/223\/62f\/cea\/22362fceac899396e6057b0ec6fadfe4.svg\" width=\"116\" height=\"21\"\/>\u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0432\u0438\u0434\u0435\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"e^{x}-1,\" alt=\"e^{x}-1,\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/48e\/16e\/bdd\/48e16ebdd4541f2a7d32c811c9ef1fe7.svg\" width=\"58\" height=\"21\"\/> \u0447\u0442\u043e \u0432\u0435\u0440\u043d\u043e \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f.\u00a0<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/531\/878\/6b6\/5318786b6be15d4890bcb50cf7bb7344.png\" alt=\"\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430, a=1, b=10, c=1\" title=\"\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430, a=1, b=10, c=1\" width=\"1108\" height=\"862\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/531\/878\/6b6\/5318786b6be15d4890bcb50cf7bb7344.png\"\/><figcaption>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430, a=1, b=10, c=1<\/figcaption><\/figure>\n<\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c &#8212; \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u044b \u0438 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0430\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x^{x}-1\" alt=\"x^{x}-1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ef3\/5a4\/058\/ef35a405897a894cf4adbf0096c4e50a.svg\" width=\"55\" height=\"19\"\/>\u0438 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u0438<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b4e\/ece\/96c\/b4eece96ce1dd713fe8a17945ff7dfc2.svg\" width=\"11\" height=\"12\"\/>&#171;\u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442&#187; \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0432\u0435\u0434\u044c \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"n\" alt=\"n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ab5\/9d3\/1ad\/ab59d31ad356e7d607f70e432e6a5dc9.svg\" width=\"12\" height=\"12\"\/>\u0437\u0430\u0432\u0438\u0441\u0435\u043b\u043e, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0438\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/615\/b02\/30d\/615b0230dbadc2d42df0ef5a3f0c0824.svg\" width=\"11\" height=\"12\"\/>\u0438\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x^{n}.\" alt=\"x^{n}.\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e25\/d52\/759\/e25d5275938982fc0af07c66a0be4fd6.svg\" width=\"27\" height=\"18\"\/>\u041f\u0440\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x\\rightarrow n^{\\frac{1}{1-n}}\" alt=\"x\\rightarrow n^{\\frac{1}{1-n}}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/83b\/06e\/557\/83b06e557f89ba703a72ca71e4ee8db6.svg\" width=\"81\" height=\"26\"\/> \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0430\u044f, \u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d49\/563\/24b\/d4956324b1d9c5e652f96dd2d8d7df6b.svg\" width=\"11\" height=\"12\"\/> \u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0432\u043f\u0440\u0430\u0432\u043e, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0441 \u043a \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044e.\u00a0\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0443\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\left(x+a\\right)^{b\\cdot x+c},\" alt=\"\\left(x+a\\right)^{b\\cdot x+c},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/992\/278\/b76\/992278b76b3d6d8fc9cb5466e1e1ade5.svg\" width=\"103\" height=\"26\"\/><\/p>\n<p>\u0433\u0434\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a\" alt=\"a\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/15c\/d1f\/c4a\/15cd1fc4a32b66af78f51472da54bdcb.svg\" width=\"10\" height=\"12\"\/> \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043d\u043e \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"b\\ \" alt=\"b\\ \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dd9\/0a6\/1c5\/dd90a61c52e8580ae88ee27f3c242188.svg\" width=\"13\" height=\"17\"\/>\u0442\u043e\u0436\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0438 \u0433\u043b\u0430\u0434\u043a\u043e. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"c\\ \" alt=\"c\\ \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/706\/169\/fa6\/706169fa6a9540f7c20830f6d5caed17.svg\" width=\"13\" height=\"12\"\/>\u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u043f\u0440\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"c&lt;\\approx0.2\" alt=\"c&lt;\\approx0.2\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f2f\/ba7\/9d3\/f2fba79d3bf5e1907c31e6eb916ccbb4.svg\" width=\"75\" height=\"17\"\/> \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.<\/p>\n<pre><code class=\"cs\">public static float exponent(Vector2[] points, float x, float n) {   float b = 0; float y = 0; for (int i = 0; i &lt; points.Length; i++) {     if (points[i].x == x)       return points[i].y; float k = 1 \/ Mathf.Pow(n, Mathf.Abs(x - points[i].x) \/ (points[points.Length-1].x - points[0].x)); y += points[i].y * k; b += k; } return y \/ b; }<\/code><\/pre>\n<hr\/>\n<h2>\u0422\u0430\u043d\u0433\u0435\u043d\u0441<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c41\/110\/5f7\/c411105f7af4a59329279f73525dfcc0.png\" alt=\"\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0442\u0430\u043d\u0433\u0435\u043d\u0441, a=1, b=0.7\" title=\"\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0442\u0430\u043d\u0433\u0435\u043d\u0441, a=1, b=0.7\" width=\"1108\" height=\"862\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c41\/110\/5f7\/c411105f7af4a59329279f73525dfcc0.png\"\/><figcaption>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0442\u0430\u043d\u0433\u0435\u043d\u0441, a=1, b=0.7<\/figcaption><\/figure>\n<p>\u0422\u0430\u043d\u0433\u0435\u043d\u0441 &#8212; \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"\\cot\\left(x\\right)=-\\tan\\left(x-\\textstyle\\frac{\\pi}{2}\\right)\" alt=\"\\cot\\left(x\\right)=-\\tan\\left(x-\\textstyle\\frac{\\pi}{2}\\right)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8b7\/829\/5da\/8b78295da3143122428da501ab620c29.svg\" width=\"193\" height=\"27\"\/>. \u041c\u0438\u043d\u0443\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f, \u0430 \u0441\u0434\u0432\u0438\u0433 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c. \u0418\u0442\u0430\u043a, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0441\u0434\u0432\u0438\u0433\u0430 \u0438 \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u044f, \u043a\u0430\u043a \u0438 \u0443 \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0438\u0434 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"\\tan\\left(a\\cdot x\\cdot\\pi+b\\cdot\\pi\\right)-\\tan\\left(b\\cdot\\pi\\right),\" alt=\"\\tan\\left(a\\cdot x\\cdot\\pi+b\\cdot\\pi\\right)-\\tan\\left(b\\cdot\\pi\\right),\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/773\/1a5\/8aa\/7731a58aa280304972bf4db11c1fea56.svg\" width=\"269\" height=\"22\"\/><\/p>\n<p>\u0433\u0434\u0435 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a\" alt=\"a\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9be\/f47\/09f\/9bef4709f6777cc1d261baec665a32a0.svg\" width=\"10\" height=\"12\"\/> \u2013 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u044f, \u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"b\\ \" alt=\"b\\ \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/37e\/e9f\/6fe\/37ee9f6fe0be53353bb2a7b4b173a8d3.svg\" width=\"13\" height=\"17\"\/>\u2013 \u0441\u0434\u0432\u0438\u0433\u0430. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a\\in\\left(0;\\textstyle\\frac{1}{2}\\right),\" alt=\"a\\in\\left(0;\\textstyle\\frac{1}{2}\\right),\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5f2\/f2c\/283\/5f2f2c2832f6b9dc8bc780d307ac88ae.svg\" width=\"93\" height=\"28\"\/> \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"b\\in\\left(-\\textstyle\\frac{1}{2};\\textstyle\\frac{1}{2}-a\\right).\" alt=\"b\\in\\left(-\\textstyle\\frac{1}{2};\\textstyle\\frac{1}{2}-a\\right).\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/112\/d32\/8e7\/112d328e7ee86d2954b5e40f819b5796.svg\" width=\"145\" height=\"28\"\/> \u042d\u0442\u043e \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d\u043e \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a=0\" alt=\"a=0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a47\/f8a\/6a9\/a47f8a6a9f59cdc7dee5120d0fc8f454.svg\" width=\"46\" height=\"17\"\/> \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x.\" alt=\"x.\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c46\/b6c\/e89\/c46b6ce8974079853d81d3b6c928c37e.svg\" width=\"17\" height=\"12\"\/> \u0415\u0441\u043b\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a\\leq\\textstyle\\frac{1}{2},\" alt=\"a\\leq\\textstyle\\frac{1}{2},\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/51d\/37b\/ddc\/51d37bddc9df0ae57e329cbe325d2df7.svg\" width=\"56\" height=\"28\"\/> \u0442\u043e \u043f\u0435\u0440\u0438\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u0435\u043d <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"1.\" alt=\"1.\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/598\/c79\/ee3\/598c79ee39323767f7846361b22cafce.svg\" width=\"15\" height=\"17\"\/> \u041f\u0440\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"a&lt;0, \" alt=\"a&lt;0, \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cd0\/0e6\/ebf\/cd00e6ebf0e92b66ef7cdbfe0318481c.svg\" width=\"52\" height=\"20\"\/>  \u0437\u043d\u0430\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430. \u0415\u0441\u043b\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"b&lt;-\\textstyle\\frac{1}{2}, \" alt=\"b&lt;-\\textstyle\\frac{1}{2}, \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/136\/019\/b19\/136019b192d59cb2d5a8da9874726e8b.svg\" width=\"69\" height=\"28\"\/> \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 &#8212; <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"1.\" alt=\"1.\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aaa\/a02\/c68\/aaaa02c686d43649d73999f48521bf24.svg\" width=\"15\" height=\"17\"\/> \u0415\u0441\u043b\u0438 <img class=\"formula inline\" source=\"b>\\textstyle\\frac{1}{2} &#8212; a,&#187; alt=&#187;b>\\textstyle\\frac{1}{2} &#8212; a,&#187; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/58f\/419\/404\/58f419404178adcbcb3aa1d9f75a9432.svg&#187; width=&#187;88&#8243; height=&#187;28&#8243;\/> \u0442\u043e \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c. \u0413\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d\u044b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438. <\/p>\n<pre><code class=\"cs\">public static float tangent(Vector2[] points, float x, float k1, float k2) {   float b = 0; float y = 0; for (int i = 0; i &lt; points.Length; i++) {     if (points[i].x == x)       return points[i].y; float k = 1 \/ (Mathf.Tan((points[i].x - x) \/ (points[points.Length-1].x - points[0].x) * k1 * Mathf.PI + k2 * Mathf.PI) - Mathf.Tan(k2 * Mathf.PI)); y += points[i].y * k; b += k; } return y \/ b; }<\/code><\/pre>\n<hr\/>\n<h2>\u0418\u0442\u043e\u0433\u0438<\/h2>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0438 \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u2013 \u0432\u0441\u0435 \u044d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 \u043c\u043e\u0438\u0445 \u043a\u0440\u0438\u0432\u044b\u0445. \u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0447\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u044c. \u0415\u0449\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u0440\u0438\u0432\u0443\u044e \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cs\">public struct Interpolation {   public static float simple(Vector2[] points, float x, bool v2 = true)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y;       if (v2)       k = 1 \/ ((points[i].x - x) * (i % 2 == 0 ? 1 : -1));       else       k = 1 \/ Mathf.Abs(points[i].x - x);       y += points[i].y * k;       b += k;     }     return y \/ b;   }      public static float power(Vector2[] points, float x, float k1,  float k2, float k3, float k4, bool v2 = false)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y; float f = Mathf.Pow(k1 * Mathf.Abs(x - points[i].x) \/  (points[points.Length-1].x - points[0].x) + k2, k3 * Mathf.Abs(x - points[i].x) \/  (points[points.Length-1].x - points[0].x) + k4);       if (v2)         k = 1 \/ (Mathf.Sign(x - points[i].x) * (i % 2 == 0 ? 1 : -1) * f);       else         k = 1 \/ f;       y += points[i].y * k;       b += k;     }     return y \/ b;   }      public static float cosine(Vector2[] points, float x, float k1,  float k2, bool v2 = false)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y;       float f = (Mathf.Cos((points[i].x - x) \/  (points[points.Length-1].x - points[0].x) *  k1 * Mathf.PI - k2 * Mathf.PI) - Mathf.Cos(k2 * Mathf.PI));       if (v2)         k = 1 \/ (Mathf.Sign(x - points[i].x) * (i % 2 == 0 ? 1 : -1) * f);       else         k = 1 \/ f;       y += points[i].y * k;       b += k;     }     return y \/ b;   }      public static float tangent(Vector2[] points, float x, float k1,  float k2, bool v2 = false)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y;       float f = (Mathf.Tan((points[i].x - x) \/  (points[points.Length-1].x - points[0].x) *  k1 * Mathf.PI + k2 * Mathf.PI) - Mathf.Tan(k2 * Mathf.PI));       if (v2)         k = 1 \/ (Mathf.Sign(x - points[i].x) * (i % 2 == 0 ? 1 : -1) * f);       else         k = 1 \/ f;       y += points[i].y * k;       b += k;     }     return y \/ b;   }      public delegate float function(float f);      public static float delegat(Vector2[] points, float x, function func, bool v2 = true)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y;       float f = func((points[i].x - x) \/ (points[points.Length-1].x - points[0].x));       if (v2)         k = 1 \/ (Mathf.Sign(x - points[i].x) * (i % 2 == 0 ? 1 : -1) * f);       else         k = 1 \/ f;       y += points[i].y * k;       b += k;     }     return y \/ b;   } }<\/code><\/pre>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u044f \u0432\u0430\u043c \u0447\u0435\u043c-\u0442\u043e \u043f\u043e\u043c\u043e\u0433, \u0438 \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0443)<\/p>\n<p>\u0412\u0435\u0441\u044c \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043a\u043e\u0434 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Unity, \u0434\u043b\u044f \u0447\u0438\u0441\u0442\u043e\u0433\u043e c# \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b Vector3 \u0438 Vector2, \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c float \u043d\u0430 double \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/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\/671078\/\"> https:\/\/habr.com\/ru\/post\/671078\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<br \/>\u0418\u0442\u0430\u043a, \u044d\u0442\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0442\u0435\u043c\u043e\u0439 &#8212; \u043a\u0440\u0438\u0432\u044b\u0435, \u0438\u0445 \u0440\u0430\u0437\u0431\u043e\u0440.<\/p>\n<hr\/>\n<h2>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/h2>\n<p>\u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044f \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0434\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043a\u0440\u0438\u0432\u043e\u0439. \u041e\u0434\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u043e\u0442\u0440\u0435\u0437\u043a\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0442\u043e\u0447\u043a\u0430\u043c\u0438, \u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0435\u0449\u0435 \u0438 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u0442\u043e\u0447\u043a\u0438. \u0414\u0440\u0443\u0433\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0432\u0441\u0435\u043c \u043e\u0442\u0440\u0435\u0437\u043a\u0435 \u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438. \u0413\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u044d\u0442\u0443 \u043a\u0440\u0438\u0432\u0443\u044e \u0446\u0435\u043b\u044b\u043c \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e\u043c \u043a\u0440\u0438\u0432\u044b\u0445. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b\u00a0<\/p>\n<p>\u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b. \u041d\u043e \u0440\u0430\u0437 \u044d\u0442\u043e \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e, \u0442\u043e \u043e\u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430. \u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435<\/p>\n<p>\u0433\u0434\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0442  \u0434\u043e\u00a0 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0435\u0433\u043e. \u041f\u0440\u0438\u0447\u0435\u043c \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442  \u0434\u043e\u00a00&#8243; alt=&#187;a>0&#8243; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3b0\/127\/b67\/3b0127b679e0254f020ceabd353cf16a.svg&#187; width=&#187;46&#8243; height=&#187;17&#8243;\/>(\u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u0439\u0434\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435). \u041f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0442\u0430\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c     \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u043f\u043e\u043b\u0438\u043d\u043e\u043c\u043e\u0432.<\/p>\n<p>\u0414\u043b\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430 \u00a0\u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b. \u0414\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0421\u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0443  \u043d\u0430  \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u043d\u0435 \u043c\u0435\u0448\u0430\u043b\u0430\u0441\u044c \u044d\u0442\u0430 \u0434\u0440\u043e\u0431\u044c \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c. \u0422\u043e\u0433\u0434\u0430\u00a0\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u043a\u0430\u043a <\/p>\n<p>\u0447\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432 \u0443\u0437\u043b\u0430\u0445 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 \u043a\u0430\u043a<\/p>\n<p>\u0442\u043e\u0433\u0434\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0439\u0442\u0438 \u043a \u0442\u0430\u043a\u0438\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u0430\u043c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c, \u0432 \u043a\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0440\u0438 \u043c\u0435\u043d\u044c\u0448\u0435\u043c . \u041f\u0435\u0440\u0432\u043e\u0435 &#8212; \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044c. \u0412\u0442\u043e\u0440\u043e\u0435 &#8212; \u043f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u00a0\u0432\u0441\u0435\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u043e\u0447\u0435\u043a, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u00a0\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n<p>\u0412 \u043e\u0431\u043e\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445 \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438. \u041e\u0434\u043d\u0430 \u2013 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0442\u043e\u0447\u0435\u043a, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u043b\u0438\u043d\u0435\u0439\u043d\u0443\u044e \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044e. \u0414\u0440\u0443\u0433\u0430\u044f \u2013 \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u0435\u043a, \u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u0435, \u043b\u0443\u0447\u0448\u0435. <\/p>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f &#8212; \u043c\u043e\u0434\u0443\u043b\u044c\u00a0 \u043e\u043d \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0434\u043b\u044f \u043e\u0431\u043e\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432. \u0412\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f &#8212;<\/p>\n<p>\u0434\u043b\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0431\u0435\u0437 \u0443\u0437\u043b\u043e\u0432 \u0438 \u0441 \u0443\u0437\u043b\u0430\u043c\u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0421\u0442\u043e\u0438\u0442 \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043d\u0435\u0447\u0435\u0442\u043d\u043e\u0439, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0435\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442  \u0434\u043e\u00a0 \u043b\u0438\u0431\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u0437\u043d\u0430\u043a \u0437\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u043d\u0435\u0435 \u043c\u043e\u0434\u0443\u043b\u044c.\u00a0<\/p>\n<hr\/>\n<h2>\u041a\u0432\u0430\u0434\u0440\u0430\u0442<\/h2>\n<figure class=\"full-width\"><figcaption>\u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u0432\u0430\u0434\u0440\u0430\u0442<\/figcaption><\/figure>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0 \u0434\u043e \u0432\u0438\u0434\u0430  \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044c \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e\u00a0\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0438 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0443 \u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044f \u0438 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044f \u0434\u0440\u043e\u0431\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0422\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u043e\u00a0 \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442, \u0442\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e. \u041f\u0440\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u043a\u043e\u043b\u043e \u0442\u043e\u0447\u0435\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f  \u0442\u043e\u0447\u043a\u0438.\u00a0<\/p>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e\u00a0 \u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043d\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435\u0446\u0435\u043b\u043e\u0435, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c. \u0422\u0430\u043a\u0436\u0435 \u044f \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0432\u044b\u0448\u0435\u00a0 \u0432\u0435\u0434\u044c \u0434\u0430\u0436\u0435 \u0442\u043e\u0433\u0434\u0430 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u0436\u0430\u0442\u0430 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u0442\u043e\u0447\u0435\u043a \u043e\u043a\u043e\u043b\u043e \u043d\u0438\u0445.\u00a0<\/p>\n<pre><code class=\"cs\">public static float power(Vector2[] points, float x, float n) {   float b = 0; float y = 0; for (int i = 0; i &lt; points.Length; i++) {     if (points[i].x == x)       return points[i].y; float k = 1 \/ Mathf.Pow(Mathf.Abs(points[i].x - x), n); y += points[i].y * k; b += k; } return y \/ b; }<\/code><\/pre>\n<hr\/>\n<h2>\u0421\u0438\u043d\u0443\u0441\/\u041a\u043e\u0441\u0438\u043d\u0443\u0441<\/h2>\n<figure class=\"full-width\"><figcaption>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0441\u0438\u043d\u0443\u0441, a=0.7, b=0.9<\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0438. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u0438\u043d\u0443\u0441\u0430 \u0438 \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430. \u041e\u043d\u0438 \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u044b \u043d\u0430 \u043f\u043e\u043b\u0443\u043f\u0435\u0440\u0438\u043e\u0434, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u043e\u0431\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430. \u0418\u0442\u0430\u043a, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442  \u0434\u043e\u00a00&#8243; alt=&#187;a>0&#8243; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/91d\/334\/3a5\/91d3343a51d18d7fedff57c968fe8f09.svg&#187; width=&#187;46&#8243; height=&#187;17&#8243;\/>. \u0414\u043b\u044f \u0441\u0438\u043d\u0443\u0441\u0430 \u0438 \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430 \u044d\u0442\u043e, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430 \u043a\u043e\u0440\u043e\u0447\u0435, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u0430 \u0441\u0438\u043d\u0443\u0441\u0443, \u044f \u0431\u0443\u0434\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u044e. \u0421\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u0430 \u0434\u043b\u044f \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430, \u043d\u043e \u043e\u043d\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u041c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0434\u0432\u0438\u0433 \u0438 \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u043e\u0441\u0438 \u0430\u0431\u0441\u0446\u0438\u0441\u0441. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0449\u0435 \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u00a0 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u0442\u043e\u0436\u0435 \u0440\u0430\u0432\u043d\u043e\u00a0 \u0422\u043e\u0433\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438  \u0438\u00a0\u0434\u043b\u044f \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u0434\u0432\u0438\u0433\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a<\/p>\n<p>\u041c\u044b \u0432\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u043a\u043e\u0441\u0438\u043d\u0443\u0441 \u0441\u0434\u0432\u0438\u0433\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438  \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u043e\u0436\u0435 \u0431\u044b\u043b\u043e \u0440\u0430\u0432\u043d\u043e  \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0442\u043e\u0436\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u2013  \u042d\u0442\u043e \u0432\u044b\u0437\u0432\u0430\u043d\u043e \u0442\u0435\u043c, \u0447\u0442\u043e \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435  \u0438\u043d\u0430\u0447\u0435 \u043f\u0435\u0440\u0438\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 .<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438  \u043d\u0443\u0436\u043d\u043e  \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 <\/p>\n<pre><code class=\"cs\">public static float cosine(Vector2[] points, float x, float k1, float k2) {   float b = 0; float y = 0; for (int i = 0; i &lt; points.Length; i++) {     if (points[i].x == x)       return points[i].y; float k = 1 \/ (Mathf.Cos((points[i].x - x) \/ (points[points.Length-1].x - points[0].x) * k1 * Mathf.PI - k2 * Mathf.PI) - Mathf.Cos(k2 * Mathf.PI)); y += points[i].y * k; b += k; } return y \/ b; }<\/code><\/pre>\n<hr\/>\n<h2>\u042d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430<\/h2>\n<figure class=\"full-width\"><figcaption>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430<\/figcaption><\/figure>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b &#8212; \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00a0 \u043d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u00a0 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u044e\u0442 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438, \u0442\u043e \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u041f\u0440\u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0432\u0438\u0434\u0435\u00a0 \u0447\u0442\u043e \u0432\u0435\u0440\u043d\u043e \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f.\u00a0<\/p>\n<figure class=\"full-width\"><figcaption>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430, a=1, b=10, c=1<\/figcaption><\/figure>\n<\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c &#8212; \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u0431\u043e\u043b\u044b \u0438 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u044b. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0430\u00a0\u0438 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u0438&#187;\u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442&#187; \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0432\u0435\u0434\u044c \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u00a0\u0437\u0430\u0432\u0438\u0441\u0435\u043b\u043e, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0438\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443\u00a0\u0438\u00a0\u041f\u0440\u0438  \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0430\u044f, \u0430  \u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0432\u043f\u0440\u0430\u0432\u043e, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0441 \u043a \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044e.\u00a0\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0443\u00a0<\/p>\n<p>\u0433\u0434\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440  \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043d\u043e \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0442\u043e\u0436\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0438 \u0433\u043b\u0430\u0434\u043a\u043e. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u043f\u0440\u0438  \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.<\/p>\n<pre><code class=\"cs\">public static float exponent(Vector2[] points, float x, float n) {   float b = 0; float y = 0; for (int i = 0; i &lt; points.Length; i++) {     if (points[i].x == x)       return points[i].y; float k = 1 \/ Mathf.Pow(n, Mathf.Abs(x - points[i].x) \/ (points[points.Length-1].x - points[0].x)); y += points[i].y * k; b += k; } return y \/ b; }<\/code><\/pre>\n<hr\/>\n<h2>\u0422\u0430\u043d\u0433\u0435\u043d\u0441<\/h2>\n<figure class=\"full-width\"><figcaption>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0442\u0430\u043d\u0433\u0435\u043d\u0441, a=1, b=0.7<\/figcaption><\/figure>\n<p>\u0422\u0430\u043d\u0433\u0435\u043d\u0441 &#8212; \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 . \u041c\u0438\u043d\u0443\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f, \u0430 \u0441\u0434\u0432\u0438\u0433 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c. \u0418\u0442\u0430\u043a, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0441\u0434\u0432\u0438\u0433\u0430 \u0438 \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u044f, \u043a\u0430\u043a \u0438 \u0443 \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u0430. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0438\u0434 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>\u0433\u0434\u0435  \u2013 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0440\u0430\u0441\u0442\u044f\u0436\u0435\u043d\u0438\u044f, \u0430 \u2013 \u0441\u0434\u0432\u0438\u0433\u0430. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440  \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440  \u042d\u0442\u043e \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d\u043e \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u0440\u0438  \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f  \u0415\u0441\u043b\u0438  \u0442\u043e \u043f\u0435\u0440\u0438\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u0435\u043d  \u041f\u0440\u0438   \u0437\u043d\u0430\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430. \u0415\u0441\u043b\u0438  \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 &#8212;  \u0415\u0441\u043b\u0438 \\textstyle\\frac{1}{2} &#8212; a,&#187; alt=&#187;b>\\textstyle\\frac{1}{2} &#8212; a,&#187; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/58f\/419\/404\/58f419404178adcbcb3aa1d9f75a9432.svg&#187; width=&#187;88&#8243; height=&#187;28&#8243;\/> \u0442\u043e \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c. \u0413\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d\u044b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438. <\/p>\n<pre><code class=\"cs\">public static float tangent(Vector2[] points, float x, float k1, float k2) {   float b = 0; float y = 0; for (int i = 0; i &lt; points.Length; i++) {     if (points[i].x == x)       return points[i].y; float k = 1 \/ (Mathf.Tan((points[i].x - x) \/ (points[points.Length-1].x - points[0].x) * k1 * Mathf.PI + k2 * Mathf.PI) - Mathf.Tan(k2 * Mathf.PI)); y += points[i].y * k; b += k; } return y \/ b; }<\/code><\/pre>\n<hr\/>\n<h2>\u0418\u0442\u043e\u0433\u0438<\/h2>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0438 \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u2013 \u0432\u0441\u0435 \u044d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 \u043c\u043e\u0438\u0445 \u043a\u0440\u0438\u0432\u044b\u0445. \u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0447\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u044c. \u0415\u0449\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u0440\u0438\u0432\u0443\u044e \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cs\">public struct Interpolation {   public static float simple(Vector2[] points, float x, bool v2 = true)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y;       if (v2)       k = 1 \/ ((points[i].x - x) * (i % 2 == 0 ? 1 : -1));       else       k = 1 \/ Mathf.Abs(points[i].x - x);       y += points[i].y * k;       b += k;     }     return y \/ b;   }      public static float power(Vector2[] points, float x, float k1,  float k2, float k3, float k4, bool v2 = false)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y; float f = Mathf.Pow(k1 * Mathf.Abs(x - points[i].x) \/  (points[points.Length-1].x - points[0].x) + k2, k3 * Mathf.Abs(x - points[i].x) \/  (points[points.Length-1].x - points[0].x) + k4);       if (v2)         k = 1 \/ (Mathf.Sign(x - points[i].x) * (i % 2 == 0 ? 1 : -1) * f);       else         k = 1 \/ f;       y += points[i].y * k;       b += k;     }     return y \/ b;   }      public static float cosine(Vector2[] points, float x, float k1,  float k2, bool v2 = false)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y;       float f = (Mathf.Cos((points[i].x - x) \/  (points[points.Length-1].x - points[0].x) *  k1 * Mathf.PI - k2 * Mathf.PI) - Mathf.Cos(k2 * Mathf.PI));       if (v2)         k = 1 \/ (Mathf.Sign(x - points[i].x) * (i % 2 == 0 ? 1 : -1) * f);       else         k = 1 \/ f;       y += points[i].y * k;       b += k;     }     return y \/ b;   }      public static float tangent(Vector2[] points, float x, float k1,  float k2, bool v2 = false)   {     float b = 0;     float y = 0;     for (int i = 0; i &lt; points.Length; i++)     {       float k = 0;       if (points[i].x == x)         return points[i].y;       float f = (Mathf.Tan((points[i].x - x) \/  (points[points.Length-1].x - points[0].x) *  k1 * Mathf.PI + k2 * Mathf.PI) - Mathf.Tan(k2 * Mathf.PI));       if (v2)         k = 1 \/ (Mathf.Sign(x - points[i].x) * (i % 2 == 0 ? 1 : -1) * f);       else         k = 1 \/ f;       y += points[i].y * k;       b += k;     }     return y \/ b;   }      public delegate float function(float f);      public static float delegat(Vector2[] points, float x, function func, bool v2 = true)   {     float b = 0;     float<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-334413","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/334413","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=334413"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/334413\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=334413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=334413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=334413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}