<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>MikuHatsune</author_name>
  <author_url>https://blog.hatena.ne.jp/MikuHatsune/</author_url>
  <blog_title>驚異のアニヲタ社会復帰の予備</blog_title>
  <blog_url>https://mikuhatsune.hatenadiary.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>cpp</anon>
    <anon>Rpackage</anon>
    <anon>形・動き</anon>
    <anon>数学</anon>
  </categories>
  <description>四元数の内積が欲しかったのでメモ。 四元数は2つの虚数単位, , (), と4つの実数, , , を用いて と書ける。これを実数部分(スカラー部)と虚部(ベクトル部)に分けて とも書く。 いま、ふたつの四元数, について、積は となる。 計算して確かめる。三角形の面積も計算してみる。 set.seed(1234) xyz &lt;- matrix(runif(6), 3) q12 &lt;- as.quaternion(rbind(0, xyz)) # xyz での内積 xyz[,1] %*% xyz[,2] # 四元数での内積 prod(Re(q12)) - Re(q12[1] * q12[2]) # …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmikuhatsune.hatenadiary.com%2Fentry%2F20160509%2F1462753938&quot; title=&quot;四元数の演算 - 驚異のアニヲタ社会復帰の予備&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>2016-05-09 09:32:18</published>
  <title>四元数の演算</title>
  <type>rich</type>
  <url>https://mikuhatsune.hatenadiary.com/entry/20160509/1462753938</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
