<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ha-tan</author_name>
  <author_url>https://blog.hatena.ne.jp/ha-tan/</author_url>
  <blog_title>趣味的にっき</blog_title>
  <blog_url>https://ha-tan.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>ニュートン法で平方根を求める-数学アルゴリズム演習ノート-を参考にニュートン法で平方根を求めるプログラムを書いてみました。do {...} whileのループが、head $ dropWhileになりました。 module Main (main) where sqr :: Double -&gt; Double sqr c = let x = head $ dropWhile (\ x -&gt; x * x &lt; c) [1.0, 2.0 ..] in foldr (\ _ x -&gt; (x + c / x) / 2.0) x [1 .. 10] main :: IO () main = do print …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20061010%2F1160480039&quot; title=&quot; ニュートン法で平方根を求める - 趣味的にっき&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-10-10 20:33:59</published>
  <title> ニュートン法で平方根を求める</title>
  <type>rich</type>
  <url>https://ha-tan.hatenadiary.org/entry/20061010/1160480039</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
