<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fornext1119</author_name>
  <author_url>https://blog.hatena.ne.jp/fornext1119/</author_url>
  <blog_title>ONLY DO WHAT ONLY YOU CAN DO</blog_title>
  <blog_url>https://fornext1119.hatenablog.com/</blog_url>
  <categories>
    <anon>Objective-C</anon>
    <anon>数値計算</anon>
    <anon>積分</anon>
    <anon>台形則</anon>
    <anon>π</anon>
  </categories>
  <description>πの求め方 積分(台形則) #import &lt;Foundation/Foundation.h&gt; #import &lt;math.h&gt; double f(double x) { return 4 / (1 + x * x); } int main() { const double a = 0; const double b = 1; // 台形則で積分 int n = 2; int i, j; for (j = 1; j &lt;= 10; j++) { double h = (b - a) / n; double s = 0; double x = a; for (i = 1; i &lt;= n - 1; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffornext1119.hatenablog.com%2Fentry%2F20131127%2Fp3&quot; title=&quot; Objective-C で 積分(台形則)して π を求める - ONLY DO WHAT ONLY YOU CAN DO&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/f/fornext1119/20131127/20131127113041.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-11-27 00:00:00</published>
  <title> Objective-C で 積分(台形則)して π を求める</title>
  <type>rich</type>
  <url>https://fornext1119.hatenablog.com/entry/20131127/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
