<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>GPGPU</anon>
    <anon>CUDA</anon>
  </categories>
  <description>ネタがないので、浮動小数点数の問題をみてみる。 n個の質点が互いに重力による相互作用を及ぼしあう問題を考える。なるべく多くの質点を用いたいが、ここでは4096個の質点の計算をする。また、これらはトーラス面上にあるとする。1×1の正方形を用意し、上下左右を接合する。周期境界になっていると言ってもいい。質点は正方形からはみ出すと、座標に1を足すか引くかして正方形に収まるようにする。また、質点同士の距離はなるべく近くなるように計算する。すなわち、(0.1, 0.1)と(0.9, 0.9)の距離は、√(0.22+0.22)とする。計算しやすいように、質点の質量は1、重力定数も1とする。4096個のfl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090120%2Fp1&quot; title=&quot;多体問題（1） - inamori’s diary&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>2009-01-20 00:00:00</published>
  <title>多体問題（1）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20090120/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
