{"id":1488,"date":"2021-10-10T11:56:43","date_gmt":"2021-10-10T02:56:43","guid":{"rendered":"http:\/\/www.miyamoto-lab.com\/?p=1488"},"modified":"2021-10-10T14:01:10","modified_gmt":"2021-10-10T05:01:10","slug":"u9sdfgsdf","status":"publish","type":"post","link":"https:\/\/www.miyamoto-lab.com\/ja\/2021\/10\/10\/u9sdfgsdf\/","title":{"rendered":"6-1. \u7df4\u7fd2\u554f\u984c\u3053\u305f\u3048"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\uff13\u6b21\u65b9\u7a0b\u5f0f $2x^3+10x^2-2x=10$\u306e\u89e3\u3092\u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3067\u6c42\u3081\u3066\u307f\u308b\u3002$(x+1)(x-1)(2x+10)=0$\u3068\u3067\u304d\u308b\u3053\u3068\u304b\u3089\u89e3\u306f3\u3064\u3042\u308b\u304c\u3001\u3053\u3053\u3067\u306f\u6b63\u306e\u3082\u306e\u306b\u3064\u3044\u3066\u3001\u521d\u671f\u502410\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3059\u308b\u3002\u5c0e\u95a2\u6570 $6x^2+20x-2$ \u3092\u5229\u7528\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-c\" data-lang=\"C\"><code>#include &lt;stdio.h&gt;\n#include &lt;math.h&gt;\n#define eps 1.0e-15\n#define xinit 10.0\ndouble f(double x){\n  return 2*x*x*x+10.0*x*x-2.0*x-10.0;\n}\ndouble fp(double x){\n  return 6.0*x*x+20.0*x-2.0;\n}\nint main(void){\n  double x0, x1, f0, fp0;\n  x0=xinit;\n  do {\n    f0=f(x0);fp0=fp(x0);\n    x1=x0-f0\/fp0;\n    x0=x1;\n    printf(&quot; %e %e \\n&quot;, x0, f0);        \n  }while(fabs(f0)&gt;eps);\n  printf(&quot;answer: %e \\n&quot;, x0);\n}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u306e\u53ce\u675f\u304c\u60aa\u304b\u3063\u305f\u308a\u3001\u4f3c\u305f\u3088\u3046\u306a\u5024\u306e\u89e3\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306a\u3069\u306f\u3001\u5c11\u3057\u5de5\u592b\u304c\u5fc5\u8981\u3068\u306a\u308b\uff08\u6e1b\u901f\u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3084\u30bb\u30ab\u30f3\u30c8\u6cd5\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u306a\u3069\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uff13\u6b21\u65b9\u7a0b\u5f0f $2x^3+10x^2-2x=10$\u306e\u89e3\u3092\u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3067\u6c42\u3081\u3066\u307f\u308b\u3002$(x+1)(x-1)(2x+10)=0$\u3068\u3067\u304d\u308b\u3053\u3068\u304b\u3089\u89e3\u306f3\u3064\u3042\u308b\u304c\u3001\u3053\u3053\u3067\u306f\u6b63\u306e\u3082\u306e\u306b\u3064\u3044\u3066\u3001\u521d\u671f\u502410\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"http:\/\/www.miyamoto-lab.com\/?p=1488","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1488","post","type-post","status-publish","format-standard","hentry","category-uncategorized","ja"],"_links":{"self":[{"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/posts\/1488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/comments?post=1488"}],"version-history":[{"count":4,"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/posts\/1488\/revisions"}],"predecessor-version":[{"id":1540,"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/posts\/1488\/revisions\/1540"}],"wp:attachment":[{"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/media?parent=1488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/categories?post=1488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miyamoto-lab.com\/wp-json\/wp\/v2\/tags?post=1488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}