{"id":1914,"date":"2017-06-28T08:36:57","date_gmt":"2017-06-28T05:36:57","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=1914"},"modified":"2017-06-29T23:57:23","modified_gmt":"2017-06-29T20:57:23","slug":"ml2","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=1914","title":{"rendered":"ML2"},"content":{"rendered":"<h3><strong>\u0417\u0430\u0434\u0430\u0447\u0430<\/strong><\/h3>\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] \u0438\u00a0[latex]y[\/latex]. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0[latex]\\frac{|x|-|y|}{|x|+|y|}[\/latex].<\/p>\n<h3><strong>\u0422\u0435\u0441\u0442\u044b<\/strong><\/h3>\n<table style=\"height: 139px;width: 338px\">\n<tbody>\n<tr>\n<td style=\"width: 30px\">\u2116<\/td>\n<td style=\"width: 148.031px\">\u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<td style=\"width: 168.969px\">\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30px\">\u00a01<\/td>\n<td style=\"width: 148.031px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a03 \u00a0 \u00a0 \u00a0 \u00a07<\/td>\n<td style=\"width: 168.969px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -0.4<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30px\">\u00a02<\/td>\n<td style=\"width: 148.031px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -5 \u00a0 \u00a0 \u00a0-2<\/td>\n<td style=\"width: 168.969px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a00.4285<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30px\">\u00a03<\/td>\n<td style=\"width: 148.031px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -6 \u00a0 \u00a0 \u00a0 4<\/td>\n<td style=\"width: 168.969px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a00.2<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30px\">\u00a04<\/td>\n<td style=\"width: 148.031px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a02 \u00a0 \u00a0 \u00a0 -3<\/td>\n<td style=\"width: 168.969px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -0.2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong><\/h3>\n<pre class=\"lang:java decode:true\">class FirstLab\r\n{\r\n\tpublic static void main (String[] args)\r\n\t{\r\n\t\tdouble x, y, solution;\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\tx = input.nextDouble();\r\n\t\ty = input.nextDouble();\r\n\t\t\r\n\t\tsolution = (Math.abs(x) - Math.abs(y)) \/ (Math.abs(x) + Math.abs(y));\r\n\t\t\r\n\t\tSystem.out.println(solution);\r\n\t}\r\n}<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 &#8212;\u00a0<a href=\"http:\/\/ideone.com\/h12CNL\">http:\/\/ideone.com\/h12CNL<\/a><\/p>\n<h3><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f\u00a0<\/strong><\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0438\u043f <span class=\"lang:java decode:true crayon-inline\">double<\/span> \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <span class=\"lang:java decode:true crayon-inline\">x, y<\/span> \u0438\u00a0<span class=\"lang:java decode:true crayon-inline\">solution<\/span>. \u041f\u043e\u0441\u043b\u0435, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435\u00a0<span class=\"lang:java decode:true  crayon-inline \">x<\/span>\u00a0\u0438\u00a0<span class=\"lang:java decode:true  crayon-inline \">y<\/span>\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0437 \u043f\u043e\u0442\u043e\u043a\u0430 \u0432\u0432\u043e\u0434\u0430. \u0414\u0430\u043b\u0435\u0435, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u00a0<span class=\"lang:java decode:true  crayon-inline \">abs()<\/span>\u00a0\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <span class=\"lang:java decode:true  crayon-inline \">Math<\/span>.\u00a0\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u043d\u0435\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <span class=\"lang:java decode:true  crayon-inline \">solution<\/span>,\u00a0\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \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] \u0438\u00a0[latex]y[\/latex]. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u00a0[latex]\\frac{|x|-|y|}{|x|+|y|}[\/latex]. \u0422\u0435\u0441\u0442\u044b \u2116 \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u00a01 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a03 \u00a0 \u00a0 \u00a0 \u00a07 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -0.4 \u00a02 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -5 \u00a0 \u00a0 \u00a0-2 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a00.4285 \u00a03 \u00a0 \u00a0 \u00a0 \u00a0 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=1914\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":93,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[41,134,69],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1914"}],"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\/93"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1914"}],"version-history":[{"count":28,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1914\/revisions"}],"predecessor-version":[{"id":2095,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1914\/revisions\/2095"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}