{"id":1984,"date":"2017-06-29T03:54:59","date_gmt":"2017-06-29T00:54:59","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=1984"},"modified":"2017-07-01T20:32:20","modified_gmt":"2017-07-01T17:32:20","slug":"%d0%b0116%d0%b3","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=1984","title":{"rendered":"\u0410116\u0433"},"content":{"rendered":"<h3><strong>\u0417\u0430\u0434\u0430\u0447\u0430<\/strong><\/h3>\n<p>\u0414\u0430\u043d\u044b \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e [latex]n[\/latex] \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0[latex]x[\/latex]. \u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c\u00a0[latex]\\prod\\limits_{k = 1}^n (1+\\frac{\\sin(kx)}{k!})[\/latex].<\/p>\n<h3><strong>\u0422\u0435\u0441\u0442\u044b<\/strong><\/h3>\n<table style=\"height: 143px;width: 337px\">\n<tbody>\n<tr>\n<td style=\"width: 31px\">\u00a0\u2116<\/td>\n<td style=\"width: 66px\">\u00a0 \u00a0 \u00a0n<\/td>\n<td style=\"width: 62px\">\u00a0 \u00a0 \u00a0 x<\/td>\n<td style=\"width: 194px\">\u00a0 \u00a0 \u00a0 \u00a0 \u041f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 31px\">\u00a0 1<\/td>\n<td style=\"width: 66px\">\u00a0 \u00a0 \u00a04<\/td>\n<td style=\"width: 62px\">\u00a0 \u00a03.22<\/td>\n<td style=\"width: 194px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a00.9673<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 31px\">\u00a0 2<\/td>\n<td style=\"width: 66px\">\u00a0 \u00a0 11<\/td>\n<td style=\"width: 62px\">\u00a0 214.3<\/td>\n<td style=\"width: 194px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a02.8177<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 31px\">\u00a0 3<\/td>\n<td style=\"width: 66px\">\u00a0 \u00a0 \u00a01<\/td>\n<td style=\"width: 62px\">\u00a0 \u00a0 \u00a014<\/td>\n<td style=\"width: 194px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01.9906<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 31px\">\u00a0 4<\/td>\n<td style=\"width: 66px\">\u00a0 \u00a0 \u00a07<\/td>\n<td style=\"width: 62px\">\u00a0 \u00a00.76<\/td>\n<td style=\"width: 194px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a02.8456<\/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 ThirdLab\r\n{\r\n\tpublic static void main (String[] args)\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tdouble x, mult = 1;\r\n\t\tint n, k, fact = 1;\r\n\t\t\r\n\t\tn = input.nextInt();\r\n\t\tx = input.nextDouble();\r\n\t\t\r\n\t\tfor(k = 1; k &lt;= n; k++)\r\n\t\t{\r\n\t\t\tfact *= k;\r\n\t\t\tmult *= 1 + (Math.sin(k*x)\/fact);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.printf(\"%.4f\", mult);\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; <a href=\"http:\/\/ideone.com\/3Wzs38\">Ideone<\/a>.<\/p>\n<h3><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f<\/strong><\/h3>\n<p>\u0414\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a\u0440\u043e\u043c\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e\u00a0<span class=\"lang:java decode:true crayon-inline \">x<\/span>\u00a0 \u0438 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u00a0<span class=\"lang:java decode:true crayon-inline \">n<\/span>\u00a0 \u0432\u0432\u0435\u0434\u0435\u043c \u0442\u0430\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:\u00a0<span class=\"lang:java decode:true crayon-inline \">mult<\/span>\u00a0 &#8212; \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432 \u0446\u0438\u043a\u043b\u0435,\u00a0<span class=\"lang:java decode:true crayon-inline \">fact<\/span>\u00a0 &#8212; \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b\u0430 [latex]k[\/latex].<\/p>\n<p>\u0418\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 \">n<\/span>\u00a0 \u0438\u00a0<span class=\"lang:java decode:true crayon-inline\">x<\/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, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0446\u0438\u043a\u043b \u043f\u043e\u00a0[latex]k[\/latex] \u043e\u0442 1 \u0434\u043e\u00a0[latex]n[\/latex], \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c\u0441\u044f \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441\u0430\u043c\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u041f\u0440\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <span class=\"lang:java decode:true crayon-inline \">sin()<\/span>\u00a0 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <span class=\"lang:java decode:true crayon-inline\">Math<\/span>. \u041f\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044e \u0446\u0438\u043a\u043b\u0430, \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043e \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0414\u0430\u043d\u044b \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e [latex]n[\/latex] \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0[latex]x[\/latex]. \u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c\u00a0[latex]\\prod\\limits_{k = 1}^n (1+\\frac{\\sin(kx)}{k!})[\/latex]. \u0422\u0435\u0441\u0442\u044b \u00a0\u2116 \u00a0 \u00a0 \u00a0n \u00a0 \u00a0 \u00a0 x \u00a0 \u00a0 \u00a0 \u00a0 \u041f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u00a0 1 \u00a0 \u00a0 \u00a04 \u00a0 \u00a03.22 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a00.9673 \u00a0 2 \u00a0 \u00a0 11 \u00a0 214.3 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=1984\" 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":[6],"tags":[41,220,146,219,75],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1984"}],"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=1984"}],"version-history":[{"count":18,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1984\/revisions"}],"predecessor-version":[{"id":2234,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/1984\/revisions\/2234"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}