<?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>数学</anon>
    <anon>プログラミング</anon>
    <anon>C++</anon>
  </categories>
  <description>大きな整数の掛け算にはFFTを使うとよいのだそうだ。多項式の掛け算を考えればよい。 f(x) = a0 + a1x + ... + amxm g(x) = b0 + b1x + ... + bnxn 各項の係数は、畳込みで計算できる。畳込みはフーリエ変換すると単なる掛け算に変わる。これをまた逆変換する。計算量は、項数をnとすると、ふつうに掛け算すればO(n2)。フーリエ変換にFFTを使うと、O(nlogn)程度（本当は違うらしいが、実用的には問題ないだろう）なので、こちらのほうが速くなる。しかし、整数のフーリエ変換はどのようにしたらいいのだろうか。 そう思って検索してみたら、やっぱり実数計算し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090302%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-03-02 00:00:00</published>
  <title>整数のフーリエ変換（1）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20090302/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
