{"provider_url":"https://hatena.blog","height":"190","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/f/fornext1119/20131205/20131205073130.gif","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffornext1119.hatenablog.com%2Fentry%2F20131207%2Fp3\" title=\"Go\u8a00\u8a9e\u3067\u95a2\u6570\u306e\u8fd1\u4f3c(\u30e9\u30b0\u30e9\u30f3\u30b8\u30e5\u88dc\u9593) - ONLY DO WHAT ONLY YOU CAN DO\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"fornext1119","blog_title":"ONLY DO WHAT ONLY YOU CAN DO","author_url":"https://blog.hatena.ne.jp/fornext1119/","provider_name":"Hatena Blog","categories":["Go","\u6570\u5024\u8a08\u7b97","\u88dc\u9593","\u30e9\u30b0\u30e9\u30f3\u30b8\u30e5\u88dc\u9593"],"published":"2013-12-07 00:00:00","title":"Go\u8a00\u8a9e\u3067\u95a2\u6570\u306e\u8fd1\u4f3c(\u30e9\u30b0\u30e9\u30f3\u30b8\u30e5\u88dc\u9593)","url":"https://fornext1119.hatenablog.com/entry/20131207/p3","blog_url":"https://fornext1119.hatenablog.com/","version":"1.0","description":"\u3092\u30e9\u30b0\u30e9\u30f3\u30b8\u30e5\u88dc\u9593\u3067\u8fd1\u4f3c\u3059\u308bn+1\u500b\u306e\u70b9 (x0, y0), (x1, y1) \u2026 (xn, yn) \u304c\u4e0e\u3048\u3089\u308c\u3066\u3044\u308b\u3068\u304d, \u3053\u308c\u3089\u3059\u3079\u3066\u306e\u70b9\u3092\u901a\u308b n\u6b21\u5f0f\u306f\u6b21\u306e\u3088\u3046\u306b\u8868\u3059\u3053\u3068\u304c\u3067\u304d\u308b. \u3053\u306e\u5f0f\u3092\u4f7f\u3063\u3066, \u4e0e\u3048\u3089\u308c\u305f\u70b9\u4ee5\u5916\u306e\u70b9\u306e\u5024\u3092\u6c42\u3081\u308b. package main import \"fmt\" import \"math\" const N = 5 // \u30c7\u30fc\u30bf\u70b9\u306e\u6570 func main() { var x [N]float64 var y [N]float64 // 0.25\u523b\u307f\u3067 -0.5\u301c0.5 \u307e\u3067, \uff15\u70b9\u3060\u3051\u5024\u3092\u30bb\u30c3\u30c8 for i := 0; i < N; i++ { var d floa\u2026","width":"100%"}