<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>水曜日に困っていたところ。 割合の合計して1にならない - Seeking for my unique color. コメントで有理数を使うとよいと教えてもらった。boostのほうは分数の形で渡さないといけないので、今回のにはちょっと使えなさそう。ということで、こちらのを使わせてもらうことに。 Spaghetti Source - 有理数 こいつで実験してみると /Users/syou6162/cpp% ./a.out The sum is 1.0 9.9999999999991e-0119 となり、通った。ただ、vectorの要素数を多くするとオーバーフローが起こってしまうので、うまくいかな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20091031%2F1256994221&quot; title=&quot;有理数を使って、ベクトルの正規化 - yasuhisa&amp;#39;s blog&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-10-31 22:03:41</published>
  <title>有理数を使って、ベクトルの正規化</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/20091031/1256994221</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
