<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taq2777</author_name>
  <author_url>https://blog.hatena.ne.jp/taq2777/</author_url>
  <blog_title>プログラミングの備忘録</blog_title>
  <blog_url>https://taq.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Processing</anon>
  </categories>
  <description>こんにちは。 今回はprocessingに「万有引力の法則」を導入して、惑星の運動のシミュレーション的なものをつくっていこうと思います。 万有引力の法則は、「全てのものは引き合っている」という物理学者のアイザック・ニュートンで有名な法則で、 $$ F=G \frac{Mm}{r^{2}} $$ と表されます。ここで、$F$は物体間にはたらく引力、$G$は万有引力定数、$M, m$は物体の重さ、$r$は物体間の距離を表します。 ではprocessingに導入していきます。 まずは、太陽と地球にあたるものを描いてみます。（実際は直径は100倍くらい違いますし、距離も遠いですが、適当に） void …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaq.hatenadiary.jp%2Fentry%2F2021%2F10%2F22%2F210000&quot; title=&quot;processingの備忘録　-万有引力- - プログラミングの備忘録&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/t/taq2777/20211022/20211022203726.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-22 21:00:00</published>
  <title>processingの備忘録　-万有引力-</title>
  <type>rich</type>
  <url>https://taq.hatenadiary.jp/entry/2021/10/22/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
