{"provider_url":"https://hatena.blog","published":"2010-07-12 19:03:47","categories":["\u6570\u5024\u8a08\u7b97","C++"],"image_url":null,"width":"100%","title":"boost::lambda\u3092\u4f7f\u3063\u30662\u884c\u3067\u65b9\u7a0b\u5f0f\u306e\u89e3\u3092\u6c42\u3081\u308b","blog_url":"https://tips.hecomi.com/","author_url":"https://blog.hatena.ne.jp/hecomi/","blog_title":"\u51f9\u307fTips","author_name":"hecomi","url":"https://tips.hecomi.com/entry/20100712/1278929027","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftips.hecomi.com%2Fentry%2F20100712%2F1278929027\" title=\"boost::lambda\u3092\u4f7f\u3063\u30662\u884c\u3067\u65b9\u7a0b\u5f0f\u306e\u89e3\u3092\u6c42\u3081\u308b - \u51f9\u307fTips\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","version":"1.0","description":"\u65b9\u7a0b\u5f0f\u306e\u7b54\u3048\u7c21\u5358\u306b\u51fa\u306a\u3044\u304b\u306a\u30fc\u2026\uff0c\u3068\u8003\u3048\u3066\u308b\u3042\u306a\u305f\uff0eboost::lambda\u3092\u4f7f\u3048\u3070\u300c2\u884c\u300d\u3067\u89e3\u3051\u307e\u3059\uff0e boost::function<double(double)> f = _1*_1 - 3*_1 + 2; // f(x) = (x-1)(x-2) std::cout << root(0.6, 1.3, f) << std::endl; // 1 /* std::cout << root(1.3, 2.4, f) << std::endl; // 2 */ \u3048\u3048\uff01\uff1f\u3053\u308c\u3060\u3051\uff1f\u306a\u305e\u3068\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u304c\uff0c\u5b9f\u969b\u306b\u306f\u4e8c\u5206\u6cd5\u306b\u3088\u3063\u3066\u65b9\u7a0b\u5f0f\u306e\u89e3\u3092\u6c42\u3081\u308b\u95a2\u6570root\u3092\u4f5c\u3089\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u3067\uff0c\u3082\u3063\u3068\u9577\u2026","height":"190"}