<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chakoku</author_name>
  <author_url>https://blog.hatena.ne.jp/chakoku/</author_url>
  <blog_title>chakokuのブログ(rev4)</blog_title>
  <blog_url>https://chakoku.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>多分Scipyとかにあるんだろうけど、Quotanion(四元数)の演算をプログラムでできるようにPythonでクラスを定義してみた*1。 証明とか手で計算していると間違いまくるので、簡単な式変換ならプログラムにやってもらおうという。。 演算子のオーバーロード（？）等を活用すると、q1.mul(q2)とせずとも、q1 * q2 とクールに書けるんだろうけど、そのあたり不勉強なので、愚直にメソッドを呼んで計算させる。 注意：強烈なバグが残っている #!/usr/bin/python3 # # class Quotanion: def __init__(this,a,b,c,d): this.te…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchakoku.hatenablog.com%2Fentry%2F2021%2F08%2F21%2F160200&quot; title=&quot;Pythonでquotanionを扱えるようにクラスを定義してみる - chakokuのブログ(rev4)&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>2021-08-21 16:02:00</published>
  <title>Pythonでquotanionを扱えるようにクラスを定義してみる</title>
  <type>rich</type>
  <url>https://chakoku.hatenablog.com/entry/2021/08/21/160200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
