<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>MasaHero</author_name>
  <author_url>https://blog.hatena.ne.jp/MasaHero/</author_url>
  <blog_title>MasaHero’s blog</blog_title>
  <blog_url>https://masahero.hatenablog.jp/</blog_url>
  <categories>
    <anon>大学</anon>
    <anon>PC</anon>
    <anon>memo</anon>
  </categories>
  <description>ある区間内に解が存在することが明白でかつその区間で単調増加または単調減少の場合は、その関数はソート済みの配列と見なせるのでバイナリサーチの要領で解を探索する。 具体的には区間(a,b)でf(a)*f(b) c=(a+b)/2; eps=1.0e-6; //許容誤差 while(abs(f(c))&gt;eps){ if(abs(f(a))&gt;abs(f(b))){ a=c; }else if(abs(f(a))&lt;abs(f(b))){ b=c; }else{ break; } c=(a+b)/2; } ここでabs(x)はxの絶対値を返す。解はcに格納される。事前に単調増加か単調減少かがわかっているの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasahero.hatenablog.jp%2Fentry%2F20061120%2Fp2&quot; title=&quot;アルゴリズムメモ - MasaHero’s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-11-20 00:00:01</published>
  <title>アルゴリズムメモ</title>
  <type>rich</type>
  <url>https://masahero.hatenablog.jp/entry/20061120/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
