{"id":3276,"date":"2017-11-26T18:23:26","date_gmt":"2017-11-26T15:23:26","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=3276"},"modified":"2017-12-06T00:31:16","modified_gmt":"2017-12-05T21:31:16","slug":"a60%d0%b3","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=3276","title":{"rendered":"A60\u0433"},"content":{"rendered":"<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430:<\/strong><br \/>\n\u041f\u0443\u0441\u0442\u044c\u00a0[latex]D[\/latex]\u00a0\u2014 \u0437\u0430\u0448\u0442\u0440\u0438\u0445\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438 \u0438 \u043f\u0443\u0441\u0442\u044c\u00a0[latex]u[\/latex] \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e [latex]x[\/latex]\u00a0\u0438\u00a0[latex]y[\/latex]\u00a0<span id=\"MathJax-Element-3-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">y<\/span><\/span>\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: [latex] u=\\begin{cases}x^(2)-1;\\text{if}(x,y)\\in D \\\\\\sqrt{\\left| x-1\\right|};\\text{ another case }\\end{cases}[\/latex] (\u0437\u0430\u043f\u0438\u0441\u044c[latex](x,y)\\in D[\/latex]\n\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0442\u043e\u0447\u043a\u0430 \u0441 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 [latex]x,y[\/latex]\u00a0\u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 [latex]D[\/latex]).<\/p>\n<p>\u0414\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]x[\/latex]\u00a0\u0438 [latex]y[\/latex]<span id=\"MathJax-Element-9-Frame\" class=\"MathJax_SVG\" style=\"border: 0px;font-family: inherit;font-size: 13px;font-style: normal;font-weight: normal;margin: 0px;padding: 0px;vertical-align: baseline;line-height: normal;text-indent: 0px;text-align: left;letter-spacing: normal;float: none;direction: ltr;max-width: none;max-height: none;min-width: 0px;min-height: 0px\" role=\"presentation\"><span class=\"MJX_Assistive_MathML\" role=\"presentation\">.<\/span><\/span>\u00a0\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c [latex]u.[\/latex]\n<p><a href=\"https:\/\/i2.wp.com\/cpp.mazurok.com\/wp-content\/uploads\/2016\/10\/A60%D0%B3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-16503\" src=\"https:\/\/i2.wp.com\/cpp.mazurok.com\/wp-content\/uploads\/2016\/10\/A60%D0%B3.png?resize=300%2C235\" alt=\"a60%d0%b3\" width=\"300\" height=\"235\" \/><\/a><br \/>\n<strong>\u0422\u0435\u0441\u0442\u044b:<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>\u2116<\/th>\n<th>\u0412\u0425\u041e\u0414<\/th>\n<th><\/th>\n<th>\u0412\u042b\u0425\u041e\u0414<\/th>\n<\/tr>\n<tr>\n<th><\/th>\n<th>[latex]x[\/latex]<\/th>\n<th>[latex]y[\/latex]<\/th>\n<th>[latex]u[\/latex]<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>0.3<\/td>\n<td>0.3<\/td>\n<td>0.836660<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>0.000000<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<td>1.000000<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>-1.000000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u041a\u043e\u0434:<\/strong><\/p>\n<pre class=\"lang:java decode:true\">import java.util.*;\r\n\r\npublic class dash {\r\n\r\n    public static void main(String[] args) {\r\n        Scanner in = new Scanner(System.in);\r\n        System.out.printf(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 x: \");\r\n        float x = in.nextFloat();\r\n        System.out.printf(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 y: \");\r\n        float y = in.nextFloat();\r\n        float a=x*x+y*y;\r\n\r\n        if((y&lt;0)||(a&gt;1)||((x&gt;0)&amp;&amp;(a&lt;0.3)))\r\n        {\r\n            System.out.format(\"u=%f\", Math.sqrt(Math.abs(x-1)));\r\n        } else\r\n        {\r\n            System.out.format(\"u=%f\",x*x-1);\r\n        }\r\n    }\r\n}<\/pre>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong><br \/>\n\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043f\u043e\u043b\u0443\u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438 [latex]y&lt;0.[\/latex]\u00a0\u0417\u0430\u0442\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0435 \u043b\u0435\u0436\u0438\u0442 \u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u043d\u0435 \u043f\u043e\u043b\u0443\u043a\u0440\u0443\u0433\u0430, \u0440\u0430\u0434\u0438\u0443\u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0430\u0432\u0435\u043d 1 . \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043b\u0438 \u0442\u043e\u0447\u043a\u0430 \u0432 \u0432\u044b\u0440\u0435\u0437\u0430\u043d\u043d\u043e\u0439 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0438\u043d\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u043a\u0440\u0443\u0433\u0430, \u0440\u0430\u0434\u0438\u0443\u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0430\u0432\u0435\u043d 0.3.<\/p>\n<p>\u0412\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 <a href=\"https:\/\/ideone.com\/zcl6e5\">Ideone.com<\/a><\/p>\n<p><a href=\"http:\/\/cpp.mazurok.com\/a60%D0%B3\/\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: \u041f\u0443\u0441\u0442\u044c\u00a0[latex]D[\/latex]\u00a0\u2014 \u0437\u0430\u0448\u0442\u0440\u0438\u0445\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438 \u0438 \u043f\u0443\u0441\u0442\u044c\u00a0[latex]u[\/latex] \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e [latex]x[\/latex]\u00a0\u0438\u00a0[latex]y[\/latex]\u00a0y\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: [latex] u=\\begin{cases}x^(2)-1;\\text{if}(x,y)\\in D \\\\\\sqrt{\\left| x-1\\right|};\\text{ another case }\\end{cases}[\/latex] (\u0437\u0430\u043f\u0438\u0441\u044c[latex](x,y)\\in D[\/latex] \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0442\u043e\u0447\u043a\u0430 \u0441 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 [latex]x,y[\/latex]\u00a0\u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 [latex]D[\/latex]). \u0414\u0430\u043d\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 [latex]x[\/latex]\u00a0\u0438 [latex]y[\/latex].\u00a0\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c [latex]u.[\/latex] \u0422\u0435\u0441\u0442\u044b: \u2116 \u0412\u0425\u041e\u0414 \u0412\u042b\u0425\u041e\u0414 [latex]x[\/latex] [latex]y[\/latex] [latex]u[\/latex] 1 0.3 0.3 0.836660 2 1 1 0.000000 3 2 2 1.000000 4 0 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=3276\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":101,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[321,320,314,41,242,134],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3276"}],"collection":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/users\/101"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3276"}],"version-history":[{"count":2,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3276\/revisions"}],"predecessor-version":[{"id":3289,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/3276\/revisions\/3289"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}