<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ushiromiya3</author_name>
  <author_url>https://blog.hatena.ne.jp/ushiromiya3/</author_url>
  <blog_title>ぺんぎんさんのおうち</blog_title>
  <blog_url>https://ykm11.hatenablog.com/</blog_url>
  <categories>
    <anon>雑</anon>
  </categories>
  <description>２つの整数を掛け算するときに、たとえば98*37の計算なんかは筆算を使うだろう（これくらいなら暗算できなくもないが）。これが2乗のとき、98*98を計算する場合は筆算してもいいが、98*98 = (100-2)*(100-2)なので2乗の展開の公式を使うと100*100 - 2*100*2 + 2*2とでき、筆算を使わなくてもよさそうだ。しかし桁数が大きくなると紙の上で計算するのが大変なのでコンピュータに任せたくなる。コンピュータ上でも2乗（sqr(X)）は同じ数の掛け算（mul(X, X)）よりも効率よく計算できるので速いそうだ。 紙の上ではたしかに楽に計算できたが、コンピュータ上ではどうや…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fykm11.hatenablog.com%2Fentry%2F2019%2F12%2F22%2F184537&quot; title=&quot;2乗計算が速い理由 - ぺんぎんさんのおうち&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>https://cdn-ak.f.st-hatena.com/images/fotolife/u/ushiromiya3/20191222/20191222180130.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-22 18:45:37</published>
  <title>2乗計算が速い理由</title>
  <type>rich</type>
  <url>https://ykm11.hatenablog.com/entry/2019/12/22/184537</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
