<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uncorrelated</author_name>
  <author_url>https://blog.hatena.ne.jp/uncorrelated/</author_url>
  <blog_title> 餡子付゛録゛</blog_title>
  <blog_url>https://uncorrelated.hatenablog.com/</blog_url>
  <categories>
    <anon>R言語</anon>
  </categories>
  <description>文系の学生などで特に目的無くプログラミングを覚えたい人には、Rが最適です。統計解析に使わなくても、ちょっと計算した気になるプログラミングの練習をしてみましょう。 1. よくある近似解を求める 関数f(x)=0があるとして、テーラー展開をしてみます。f(x)=f(x0)+f'(x0)(x-x0)+o(x-x0)=0になり、o(x-x0)は十分小さいと無視すると、x=x0-f(x0)/f'(x0)と整理できます（Wikipedia）。ここでx2+x-5=0のときのxをRを使って求めてみましょう。 # 方程式を設定する f # 一階微分を求める df # 初期値を定義 x # 近似計算を実行 x p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funcorrelated.hatenablog.com%2Fentry%2F20111227%2F1325014295&quot; title=&quot;Rでニュートン・ラフソン法 -  餡子付゛録゛&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>http://cdn-ak.f.st-hatena.com/images/fotolife/u/uncorrelated/20120109/20120109074301.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-12-27 04:31:35</published>
  <title>Rでニュートン・ラフソン法</title>
  <type>rich</type>
  <url>https://uncorrelated.hatenablog.com/entry/20111227/1325014295</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
