<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uni-mal</author_name>
  <author_url>https://blog.hatena.ne.jp/uni-mal/</author_url>
  <blog_title>Unityでインディゲームを作る！</blog_title>
  <blog_url>https://indie-game-creation-with-unity.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>コンピュータ内部、具体的にはCPUでは、足し算だけで四則演算の他の計算も行っています。つまり、2×3だろうが9÷3だろうが5-1だろうが、全ては二進数の加算として表現され、そして計算処理されているということです。 a - bはbの補数を足す、a × bはaがb個あり、その総和だし、a ÷ bはaからbが何回引き算できるか、なので、つまり負の数の足し算を複数回行うということになります。 というわけで、確かに足し算だけで、四則演算の全てを行うことが可能だと分かります。CPUが延々と足し算を行い続けている、と想像すると少し不思議な気持ちになりますね。 プログラミングをする上で、CPU上では足し算で他…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Findie-game-creation-with-unity.hatenablog.com%2Fentry%2Fpower-by-add-with-python&quot; title=&quot;足し算だけで掛け算および、べき乗算を計算することを考える、コードを書く [ Python ] - Unityでインディゲームを作る！&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/uni-mal/20211004/20211004162218.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-04 16:56:56</published>
  <title>足し算だけで掛け算および、べき乗算を計算することを考える、コードを書く [ Python ]</title>
  <type>rich</type>
  <url>https://indie-game-creation-with-unity.hatenablog.com/entry/power-by-add-with-python</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
