<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubytips86</author_name>
  <author_url>https://blog.hatena.ne.jp/rubytips86/</author_url>
  <blog_title>Ruby Tips!</blog_title>
  <blog_url>https://rubytips86.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Rubyでべき乗を求めるにはNumeric#**を使う。 p 2 ** 8 #=&gt; 256 複素数を表すComplexや、行列を表すMatrixクラスに対しても**が利用できる。 require 'complex' p Complex(1, 2) ** Complex(3, 4) #=&gt; (0.129009594074467+0.03392409290517014i) require 'matrix' m = Matrix[ [1, 2, 3], [4, 5, 6], [7, 8, 9] ] p m ** 2 #=&gt; Matrix[[30, 36, 42], [66, 81, 96], [10…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F03%2F31%2F145747&quot; title=&quot;べき乗を求める - Ruby Tips!&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>2014-03-31 14:57:47</published>
  <title>べき乗を求める</title>
  <type>rich</type>
  <url>https://rubytips86.hatenablog.com/entry/2014/03/31/145747</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
